Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 706334 - =dev-lang/lua-5.1.5-r5 does not install liblua.so, breaks linkage of shared libraries against liblua
Summary: =dev-lang/lua-5.1.5-r5 does not install liblua.so, breaks linkage of shared l...
Status: RESOLVED DUPLICATE of bug 706378
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-25 16:44 UTC by Andrew Udvare
Modified: 2020-01-27 07:45 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,19.39 KB, text/plain)
2020-01-25 16:45 UTC, Andrew Udvare
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Udvare 2020-01-25 16:44:05 UTC
Updated my machine recently and ran haskell-updater to ensure integrity of Haskell packages. Pandoc is unable to build now.

Reproducible: Always

Steps to Reproduce:
1. emerge -uvDN @world
2. haskell-updater (may have to be run more than once)
3. emerge @preserved-rebuild
Actual Results:  
Fails to build.

[93 of 93] Compiling Text.Pandoc      ( src/Text/Pandoc.hs, dist/build/Text/Pandoc.o )
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-
linux-gnu/9.2.0/../../../../lib64/liblua.a(liolib.o): warning: relocation against `stdout@@GLIBC_2.2.5
' in read-only section `.text'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-
linux-gnu/9.2.0/../../../../lib64/liblua.a(lauxlib.o): relocation R_X86_64_PC32 against symbol `stderr
@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: bad
value
collect2: error: ld returned 1 exit status
`x86_64-pc-linux-gnu-gcc' failed in phase `Linker'. (Exit code: 1)

Expected Results:  
Should build.

$ emerge --info
Portage 2.3.85 (python 3.7.6-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-9.2.0, glibc-2.30-r3, 5.4.13-gentoo-limelight x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.13-gentoo-limelight-x86_64-Intel-R-_Core-TM-_i7-5930K_CPU_@_3.50GHz-with-gentoo-2.6
KiB Mem:    24492248 total,  10483180 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 25 Jan 2020 06:06:21 +0000
Head commit of repository gentoo: ee0b2f4eaac70e38045749f55a31f15e049ba0c4

Timestamp of repository atom: Sat, 04 Jan 2020 22:05:28 +0000
Head commit of repository atom: 8bc4175ae679e9b7c30b8c32d11135b201cf65dc

Head commit of repository tatsh-overlay: 8a4e090cb268b45cb0417d13143120566e91c270

Timestamp of repository torbrowser: Fri, 17 Jan 2020 06:09:41 +0000
Head commit of repository torbrowser: 03e0da2719de324fbd9d1e4fe57a36a76a6d2901

sh bash 5.0_p11
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r1::gentoo, 3.6.10::gentoo, 3.7.6::gentoo, 3.8.1::gentoo
dev-util/cmake:           3.16.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r2::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.2.0-r3::gentoo
sys-devel/gcc-config:     2.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: no

atom
    location: /var/db/repos/atom
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/atom.git
    masters: gentoo

tatsh-overlay
    location: /var/db/repos/tatsh
    sync-type: git
    sync-uri: https://github.com/Tatsh/tatsh-overlay.git
    masters: gentoo
    sync-git-verify-commit-signature: no

torbrowser
    location: /var/db/repos/torbrowser
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/torbrowser.git
    masters: gentoo

Installed sets: @admin, @bashcomp, @bitcoin, @cc65, @cdr, @charles, @chrome, @clang, @cups, @docker, @exfat, @firefox, @fonts, @gimp, @git, @grub, @i3, @ibus, @kde, @kernel, @libimobiledevice, @libreoffice, @media, @misc, @mlocate, @mupen64plus, @nim, @pass, @portage-utilities, @python, @rar, @shellcheck, @stepmania, @tmux, @vim, @virtualbox, @vlc, @wine, @x11, @x11-misc, @xirvik-vpn
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -ggdb"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 10 --load-average 10 --with-bdeps=y --quiet-build=y --complete-graph --verbose-conflicts --exclude=cross-i686-pc-mingw32/*"
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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ rsync://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ rsync://gentoo.mirrors.tds.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LANG="en_GB.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en_GB en"
MAKEOPTS="-j10 -l10"
PKGDIR="/var/cache/binpkgs"
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="X a52 aac acl acpi alsa amd64 avahi bash-completion bluetooth branding bzip2 cairo cdda cdio cdr cjk cli crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif ffmpeg flac fluidsynth fortran gdbm gif gles gles2 gpm heif iconv icu idn ipv6 jemalloc jpeg jumbo-build kde kipi kwallet lcms libnotify libtirpc lm_sensors lto lzma mad man mng mod mp3 mp4 mpeg multilib ncurses nls nptl nvenc ogg opengl openmp opus pam pango pcre pdf pgo phonon plasma png policykit ppds qml qt5 readline samba scanner seccomp spell split-usr ssl startup-notification svg syslog system-av1 system-cairo system-ffmpeg system-harfbuzz system-heimdal system-icu system-jpeg system-jsoncpp system-libevent system-libvpx system-llvm system-lua system-sqlite system-webp systemd tcpd tiff truetype udev udisks unicode upower usb vdpau vim-syntax vorbis vulkan webengine webp widgets wxwidgets x264 xattr xcb xcomposite xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev joystick" KERNEL="linux" L10N="en-GB en ja ko zh-CN zh-TW" 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="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7 python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia 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, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-text/pandoc-1.19.2.1-r1::gentoo was built with the following:
USE="https network-uri -doc -embed-data-files -hscolour -profile -test -trypandoc -weigh-pandoc" ABI_X86="(64)"
FEATURES="assume-digests distlocks binpkg-logs parallel-fetch unknown-features-warn fixlafiles news pid-sandbox strict-keepdir userpriv sandbox usersandbox protect-owned userfetch network-sandbox unmerge-orphans strict multilib-strict clean-logs preserve-libs merge-sync usersync xattr ebuild-locks binpkg-dostrip binpkg-docompress ipc-sandbox sfperms compressdebug splitdebug config-protect-if-modified unmerge-logs"
Comment 1 Andrew Udvare 2020-01-25 16:45:13 UTC
Created attachment 604340 [details]
build.log
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-01-26 22:56:01 UTC
I think the problem here is an attempt to use static liblua.a to produce loadable library (probably for template haskell?):

/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64/liblua.a(lauxlib.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2020-01-26 22:59:35 UTC
My guess is that liblua.so was removed, or we stopped building liblua.a with -fPIC. 2 more similar bugs:
- bug #706254
- bug #706540

williamh@g and robbat2@ (dev-lang/lua maintainers), that breakage looks quite widespread. Are you aware of recent changes?
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2020-01-26 23:03:22 UTC
Andrew Udvare, can you check if still happens for you on =dev-lang/lua-5.15-r4?

And can you post output of 'emerge --info dev-lang/lua'?
Comment 5 Andrew Udvare 2020-01-27 02:23:29 UTC
I downgraded Lua to 5.1.4-r4 and Pandoc built successfully.
Comment 6 Andrew Udvare 2020-01-27 03:57:53 UTC
Sorry I meant 5.1.5-r4.
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2020-01-27 07:24:08 UTC
(In reply to Andrew Udvare from comment #6)
> Sorry I meant 5.1.5-r4.

Oh, that makes sense. Probably an imprecise depend in hslua package. Which version did you have installed before that?
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2020-01-27 07:34:30 UTC
(In reply to Sergei Trofimovich from comment #3)
> My guess is that liblua.so was removed, or we stopped building liblua.a with
> -fPIC. 2 more similar bugs:
> - bug #706254
> - bug #706540
> 
> williamh@g and robbat2@ (dev-lang/lua maintainers), that breakage looks
> quite widespread. Are you aware of recent changes?
Yes, I masked -r5 pending further improvements.
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2020-01-27 07:43:36 UTC
*** Bug 706254 has been marked as a duplicate of this bug. ***
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2020-01-27 07:45:32 UTC

*** This bug has been marked as a duplicate of bug 706378 ***