Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680914 - Error relocating /usr/lib/libGL.so.1: XMaxRequestSize: initial-exec TLS resolves to dynamic definition in /usr/lib/libGL.so.1
Summary: Error relocating /usr/lib/libGL.so.1: XMaxRequestSize: initial-exec TLS resol...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: https://gitlab.freedesktop.org/mesa/m...
Whiteboard:
Keywords: Bug
Depends on:
Blocks:
 
Reported: 2019-03-19 01:43 UTC by Steve Arnold
Modified: 2023-01-28 20:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Arnold archtester gentoo-dev 2019-03-19 01:43:48 UTC
dev-qt plus simple Qt5 apps on GRS-built armv7a-musl-hardened profile previously built and ran fine, however, latest Xorg/mesa with PyQt5 app has problems:

Traceback (most recent call last):
  File "/usr/bin/orchardpos", line 11, in <module>
    load_entry_point('orchardpos==0.70.0', 'gui_scripts', 'orchardpos')()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 487, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2728, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2346, in load
    return self.resolve()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2352, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.6/site-packages/orchardpos/__main__.py", line 9, in <module>
    from PyQt5.QtGui import QFontDatabase, QFont
ImportError: Error relocating /usr/lib/libGL.so.1: XMaxRequestSize: initial-exec TLS resolves to dynamic definition in /usr/lib/libGL.so.1
Comment 1 Steve Arnold archtester gentoo-dev 2019-03-19 01:48:38 UTC
Looks like upstream bug with no firm resolution (see URL).

Portage 2.3.62 (python 3.6.5-final-0, default/linux/arm/17.0/musl/armv7a/hardened, gcc-8.2.0, musl-1.1.20-r1, 5.0.1-armv7-x3 armv7l)
=================================================================
System uname: Linux-5.0.1-armv7-x3-armv7l-ARMv7_Processor_rev_10_-v7l-with-gentoo-2.6
KiB Mem:     1023324 total,    463060 free
KiB Swap:    1023996 total,   1023996 free
Head commit of repository gentoo: 3fea4ee65f373e13d49b3e132bd26ec6019b4c00

Head commit of repository arm_support: 98d9a2298010574abd893ed428c89c7de298b8a9

Head commit of repository nerdboy: 6728e7d58145ab9f1ff298b341621102832131b7

sh bash 4.4_p23-r1
ld GNU gold (Gentoo 2.32 p1 2.32.0) 1.16
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::musl
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r4::gentoo, 2.32::gentoo
sys-devel/gcc:            8.2.0-r6::musl
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::musl (virtual/os-headers)
sys-libs/musl:            1.1.20-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://git.gentoo.org/repo/gentoo.git
    priority: -1000

arm_support
    location: /usr/local/arm
    sync-type: git
    sync-uri: https://github.com/sarnold/arm.git
    masters: gentoo
    priority: 50

musl
    location: /var/lib/layman/musl
    masters: gentoo
    priority: 50

nerdboy
    location: /usr/local/portage-overlay
    sync-type: git
    sync-uri: https://github.com/sarnold/portage-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-unknown-linux-musleabihf"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-unknown-linux-musleabihf"
CONFIG_PROTECT="/etc /etc/grs/systems.conf /opt/tripos-5.14.2.20002/triPOS.config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/conf.d/confd /etc/conf.d/potion-proxy /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d/potion-proxy /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="charset.alias /usr/share/man"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST="sftp://armv7a-packages-dev@updates.orchardos.com:26"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl arm bzip2 crypt cxx hardened iconv ipv6 ncurses nls nptl openmp pam pcre pic pie readline seccomp ssl ssp unicode xattr xtpax zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Steve Arnold archtester gentoo-dev 2019-03-19 16:42:48 UTC
After rebuilding the xorg/modules and dev-qt/PyQt5 with some opengl/gles/egl use flags I got a different error:

Traceback (most recent call last):
  File "/usr/bin/orchardpos", line 11, in <module>
    load_entry_point('orchardpos==0.70.0', 'gui_scripts', 'orchardpos')()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 487, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2728, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2346, in load
    return self.resolve()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2352, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.6/site-packages/orchardpos/__main__.py", line 9, in <module>
    from PyQt5.QtGui import QFontDatabase, QFont
ImportError: Error relocating /usr/lib/libGL.so.1: .LANCHOR1: symbol not found
Comment 3 Steve Arnold archtester gentoo-dev 2019-03-25 01:14:45 UTC
Turns out this error occurs without the musl mesa patches; with the patches vs. without:

with:

 0x00000013 (RELENT)                     8 (bytes)
 0x00000018 (BIND_NOW)                   
 0x6ffffffb (FLAGS_1)                    Flags: NOW

without:

 0x00000013 (RELENT)                     8 (bytes)
 0x0000001e (FLAGS)                      SYMBOLIC BIND_NOW STATIC_TLS
 0x6ffffffb (FLAGS_1)                    Flags: NOW

STATIC_TLS appears to be the cause.
Comment 4 Davide Pesavento gentoo-dev 2023-01-28 20:45:28 UTC
According to the upstream bug, this was fixed a while ago in mesa
  https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12722
and libglvnd
  https://gitlab.freedesktop.org/glvnd/libglvnd/-/merge_requests/249

In any case, doesn't look like a PyQt5 bug.

Reassigning, though it can probably be closed as OBSOLETE/UPSTREAM.