Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296597 - dev-lang/perl-5.24.1 with sys-libs/glibc-2.25 and -mieee-fp: compile error multiple definition of `_LIB_VERSION' in /usr/lib64/libieee.a
Summary: dev-lang/perl-5.24.1 with sys-libs/glibc-2.25 and -mieee-fp: compile error mu...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.25
  Show dependency tree
 
Reported: 2009-12-12 10:27 UTC by Michael Weber (RETIRED)
Modified: 2017-10-20 10:28 UTC (History)
3 users (show)

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


Attachments
build.log with gcc-4.4.2 (build.log,44.58 KB, text/plain)
2009-12-12 10:27 UTC, Michael Weber (RETIRED)
Details
build.log with gcc-4.3.4 (build.log,44.44 KB, text/plain)
2009-12-12 10:28 UTC, Michael Weber (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weber (RETIRED) gentoo-dev 2009-12-12 10:27:08 UTC
The current stable dev-lang/perl-5.8.8-r8 does not compile on my glibc-2.11-r1 systems (one -march=core2 and one -march=amdfam10). Reinstall of dev-lang/perl-5.8.8-r5 does. The problem occurs with  sys-devel/gcc-4.3.4 and sys-devel/gcc-4.4.2.


I don't see a fix, yet.

Reproducible: Always

Steps to Reproduce:
1. have sys-libs/glibc-2.11-r1
2. FEATURES="-distcc" MAKEOPTS="-j1" emerge -av1 -j1 =dev-lang/perl-5.8.8-r8

Actual Results:  
rm -f libperl.a
/usr/bin/ar rcu libperl.a perl.o  gv.o toke.o perly.o op.o pad.o regcomp.o dump.o util.o mg.o reentr.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o locale.o pp_pack.o pp_sort.o
`sh  cflags "optimize='-march=core2 -mfpmath=sse -mieee-fp -O2 -pipe'" opmini.o` -fPIC -DPERL_EXTERNAL_GLOB opmini.c
          CCCMD =  x86_64-pc-linux-gnu-gcc -DPERL_CORE -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -march=core2 -mfpmath=sse -mieee-fp -O2 -pipe  -Wall
x86_64-pc-linux-gnu-gcc -march=core2 -mfpmath=sse -mieee-fp -O2 -pipe  -L/usr/local/lib64 -o miniperl \
            miniperlmain.o opmini.o libperl.a -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../lib64/libieee.a:(.data+0x0): multiple definition of `_LIB_VERSION'
libperl.a(pp.o):(.data+0x0): first defined here
collect2: ld returned 1 exit status

Expected Results:  
clean compile

michael@io ~ $ emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-io.0 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-io.0-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 12 Dec 2009 08:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mfpmath=sse -mieee-fp -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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 /etc/udev/rules.d"
CXXFLAGS="-march=core2 -mfpmath=sse -mieee-fp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 4"
FEATURES="ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://nash.fs.lmu.de/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--ipv6"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/sunrise /usr/local/portage/layman/xmw /usr/local/portage/layman/x11 /usr/local/portage/layman/gnome /usr/local/portage/layman/scarabeus"
SYNC="rsync://nash.fs.lmu.de/gentoo-portage/"
USE="X a52 aac aalib acl acpi alsa amd64 ao bash-completion berkdb bluetooth bzip2 cairo cdda cddb cdparanoia cdr cli consolekit cracklib crypt cups cxx dbus dga directfb djvu dri dts dv dvb dvd dvdr dvdread encode exif faac faad fbcon ffmpeg fftw flac fontconfig fortran gdbm gif gimp glut gnome gnome-keyring gnutls gphoto2 gpm gs gstreamer gtk hal iconv id3tag imagemagick introspection ipod ipv6 java java6 jbig joystick jpeg jpeg2k lame latex lcms libnotify libsamplerate lm_sensors lzma lzo mad mikmod mmap mmx mng modules mp3 mpeg mpi mplayer mudflap multilib mysql nas nautilus ncurses nls nptl nptlonly nsplugin ogg openal openexr opengl openmp pam pch pcmcia pcre pdf perl png policykit postgres pppd python qt3 qt4 quicktime raw readline reflection rle samba sdl session smp speex spell spl sqlite sse sse2 ssl subversion svg symlink sysfs syslog taglib tcl tcpd theora threads tiff tk truetype unicode usb vim-syntax vorbis wavpack webkit x264 xcb xine xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="intel-hda" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Michael Weber (RETIRED) gentoo-dev 2009-12-12 10:27:39 UTC
Created attachment 212770 [details]
build.log with gcc-4.4.2
Comment 2 Michael Weber (RETIRED) gentoo-dev 2009-12-12 10:28:49 UTC
Created attachment 212771 [details]
build.log with gcc-4.3.4
Comment 3 Pierre Asselin 2009-12-14 03:20:31 UTC
(In reply to comment #0)
> The current stable dev-lang/perl-5.8.8-r8 does not compile on my glibc-2.11-r1
> systems (one -march=core2 and one -march=amdfam10). Reinstall of
> dev-lang/perl-5.8.8-r5 does. The problem occurs with  sys-devel/gcc-4.3.4 and
> sys-devel/gcc-4.4.2.
> 
> 
> I don't see a fix, yet.

I have the same problem on *one* of two computers.
Workaround by surgery:

1. As root, cd to the portage build directory, should be
/var/tmp/portage/dev-lang/perl-5.8.8-r8/work/perl-5.8.8

2.  Edit the "config.h" and #undef LIBM_LIB_VERSION

3.  Run "make".

4. Run the command:
FEATURES=noauto ebuild /usr/portage/dev-lang/perl/perl-5.8.8-r8.ebuild test preinst install postinst

and if that works,

5.
FEATURES=noauto ebuild /usr/portage/dev-lang/perl/perl-5.8.8-r8.ebuild qmerge

Just to get people unstuck.  Needless to say this is not a fix.
The config.h explains what LIBM_LIB_VERSION is, and file pp.c does something with it
that looks wrong to me.

--PA
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-06-24 09:54:55 UTC
> CFLAGS="-march=core2 -mfpmath=sse -mieee-fp -O2 -pipe"

Why do you have -mieee-fp in CFLAGS ?
Comment 5 Michael Weber (RETIRED) gentoo-dev 2010-11-05 23:41:49 UTC
This is no longer an issue with the current stable perl and bleeding edge glibc

[ebuild   R   ] sys-libs/glibc-2.12.1-r3  USE="(multilib) nls -debug -gd -glibc-omitfp (-hardened) -profile (-selinux) -vanilla" 0 kB
[ebuild   R   ] dev-lang/perl-5.12.2-r2  USE="berkdb gdbm ithreads -build -debug -doc" 0 kB


Comment 6 Joshua Kinard gentoo-dev 2017-02-21 00:21:24 UTC
Re-opening, as this appears to be back in perl-5.24.1 and glibc-2.25.  I bumped into it while rebuilding my system after a hardware upgrade, and thre -mieee-fp into CFLAGS.

Per a message in the gcc-help archives, this appears to be a bug somewhere in glibc, so I am CC'ing toolchain:
https://gcc.gnu.org/ml/gcc-help/2012-09/msg00124.html


Build failure is:
x86_64-pc-linux-gnu-gcc -c -DPERL_CORE -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c89 -O2 -march=ivybridge -mtune=ivybridge -mfpmath=sse -mieee-fp -mmmx -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -maes -mavx -mcx16 -mf16c -mfsgsbase -mfxsr -mpclmul -mpopcnt -mrdrnd -msahf -mxsave -mxsaveopt -mvzeroupper -mavx256-split-unaligned-load -mavx256-split-unaligned-store -maccumulate-outgoing-args -fmodulo-sched -fmodulo-sched-allow-regmoves -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=10 -fuse-linker-plugin -fstack-check=no -fno-lto -fno-use-linker-plugin -Wall -Werror=declaration-after-statement -Wextra -Wc++-compat -Wwrite-strings -fPIC op.c
x86_64-pc-linux-gnu-gcc -c -DPERL_CORE -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c89 -O2 -march=ivybridge -mtune=ivybridge -mfpmath=sse -mieee-fp -mmmx -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -maes -mavx -mcx16 -mf16c -mfsgsbase -mfxsr -mpclmul -mpopcnt -mrdrnd -msahf -mxsave -mxsaveopt -mvzeroupper -mavx256-split-unaligned-load -mavx256-split-unaligned-store -maccumulate-outgoing-args -fmodulo-sched -fmodulo-sched-allow-regmoves -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=10 -fuse-linker-plugin -fstack-check=no -fno-lto -fno-use-linker-plugin -Wall -Werror=declaration-after-statement -Wextra -Wc++-compat -Wwrite-strings -fPIC perly.c
x86_64-pc-linux-gnu-gcc -O2 -march=ivybridge -mtune=ivybridge -mfpmath=sse -mieee-fp -mmmx -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -maes -mavx -mcx16 -mf16c -mfsgsbase -mfxsr -mpclmul -mpopcnt -mrdrnd -msahf -mxsave -mxsaveopt -mvzeroupper -mavx256-split-unaligned-load -mavx256-split-unaligned-store -maccumulate-outgoing-args -fmodulo-sched -fmodulo-sched-allow-regmoves -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=10 -fuse-linker-plugin -fstack-check=no -Wl,-O1 -Wl,--as-needed -Wl,-z,now -Wl,-z,relro -fno-lto -fno-use-linker-plugin -o miniperl \
    opmini.o perlmini.o  gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro_core.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o caretx.o dquote.o time64.o  miniperlmain.o  -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../lib64/libieee.a:(.data+0x0): multiple definition of `_LIB_VERSION'
pp.o:(.data+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [makefile:382: lib/buildcustomize.pl] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: dev-lang/perl-5.24.1::gentoo failed (compile phase):
 *   emake failed
Comment 7 Joshua Kinard gentoo-dev 2017-02-21 00:22:31 UTC
emerge --info:

Portage 2.3.3 (python 2.7.13-final-0, hardened/linux/amd64, gcc-6.3.0, glibc-2.25, 4.9.11 x86_64)
=================================================================
System uname: Linux-4.9.11-x86_64-Genuine_Intel-R-_CPU_@_3.40GHz-with-gentoo-2.3
KiB Mem:    32795564 total,  30448292 free
KiB Swap:    4209024 total,   4209024 free
Timestamp of repository gentoo: Mon, 20 Feb 2017 23:15:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.11-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://gentoo.cs.uni.edu/gentoo-portage
    priority: -1000

local
    location: /usr/portage/local
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=ivybridge -mtune=ivybridge -mfpmath=sse -mieee-fp  -mmmx -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2  -maes -mavx -mcx16 -mf16c -mfsgsbase -mfxsr  -mpclmul -mpopcnt -mrdrnd -msahf -mxsave -mxsaveopt  -mvzeroupper -mavx256-split-unaligned-load -mavx256-split-unaligned-store  -maccumulate-outgoing-args  -fmodulo-sched -fmodulo-sched-allow-regmoves  -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon  -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las  -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block  -ftree-vectorize -flto=10 -fuse-linker-plugin -fstack-check=no"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/init.d /etc/pam.d /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 -march=ivybridge -mtune=ivybridge -mfpmath=sse -mieee-fp  -mmmx -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2  -maes -mavx -mcx16 -mf16c -mfsgsbase -mfxsr  -mpclmul -mpopcnt -mrdrnd -msahf -mxsave -mxsaveopt  -mvzeroupper -mavx256-split-unaligned-load -mavx256-split-unaligned-store  -maccumulate-outgoing-args  -fmodulo-sched -fmodulo-sched-allow-regmoves  -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon  -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las  -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block  -ftree-vectorize -flto=10 -fuse-linker-plugin -fstack-check=no"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy cgroup compressdebug config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news preserve-libs protect-owned sandbox sfperms sign split-elog splitdebug unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="    http://gentoo.osuosl.org/    http://mirror.usu.edu/mirrors/gentoo/    http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ "
INSTALL_MASK="/usr/lib/systemd /etc/systemd"
LANG="en_US.iso885915"
LDFLAGS="-O2 -march=ivybridge -mtune=ivybridge -mfpmath=sse -mieee-fp  -mmmx -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2  -maes -mavx -mcx16 -mf16c -mfsgsbase -mfxsr  -mpclmul -mpopcnt -mrdrnd -msahf -mxsave -mxsaveopt  -mvzeroupper -mavx256-split-unaligned-load -mavx256-split-unaligned-store  -maccumulate-outgoing-args  -fmodulo-sched -fmodulo-sched-allow-regmoves  -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon  -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las  -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block  -ftree-vectorize -flto=10 -fuse-linker-plugin -fstack-check=no -Wl,-O1 -Wl,--as-needed -Wl,-z,now -Wl,-z,relro"
MAKEOPTS="-j14"
PKGDIR="/usr/portage/packages"
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="/ramfs"
USE="amd64 berkdb bzip2 cli cracklib crypt curl cxx dbus dri gd gdbm graphite hardened inotify ipv6 justify lto modules multilib ncurses nptl offensive openmp pam pax_kernel pcre pic pie readline rtc seccomp session sqlite ssl ssp tcpd unicode urandom xattr xml xtpax zlib" ABI_X86="64 32" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" 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" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="vesa vga fbdev ast" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 8 Joshua Kinard gentoo-dev 2017-02-21 02:51:48 UTC
glibc PR14582 indicates this was fixed in ~2013 by making _LIB_VERSION a weak symbol.  Might this be an issue in perl itself, then?  PEr the build error, it claims that the first definition is in Perl's pp.o object file during build.
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2017-03-24 19:25:20 UTC
(In reply to Joshua Kinard from comment #8)
> glibc PR14582 indicates this was fixed in ~2013 by making _LIB_VERSION a
> weak symbol.  Might this be an issue in perl itself, then?  PEr the build
> error, it claims that the first definition is in Perl's pp.o object file
> during build.

Bingo. From pp.c:

     42 /*
     43  * Some BSDs and Cygwin default to POSIX math instead of IEEE.
     44  * This switches them over to IEEE.
     45  */
     46 #if defined(LIBM_LIB_VERSION)
     47     _LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;
     48 #endif
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2017-03-24 19:57:40 UTC
[Removing from 5.24 stabilization blockers since this only affects masked glibc]
Comment 11 Andreas K. Hüttel archtester gentoo-dev 2017-03-24 21:50:15 UTC
(In reply to Joshua Kinard from comment #8)
> Might this be an issue in perl itself, then?  PEr the build
> error, it claims that the first definition is in Perl's pp.o object file
> during build.

It would probably be best if you could file a bug with Perl upstream (since so far I can't reproduce the problem).

See http://perldoc.perl.org/perlbug.html
(or, as documented there, send mail to perlbug@perl.org with all pertinent information)

Please add a link to the generated ticket here.
Comment 12 Joshua Kinard gentoo-dev 2017-03-25 03:28:43 UTC
(In reply to Andreas K. Hüttel from comment #11)
> (In reply to Joshua Kinard from comment #8)
> > Might this be an issue in perl itself, then?  PEr the build
> > error, it claims that the first definition is in Perl's pp.o object file
> > during build.
> 
> It would probably be best if you could file a bug with Perl upstream (since
> so far I can't reproduce the problem).
> 
> See http://perldoc.perl.org/perlbug.html
> (or, as documented there, send mail to perlbug@perl.org with all pertinent
> information)
> 
> Please add a link to the generated ticket here.

I'll do so this weekend.  As far as reproducing, have you tried gcc-6.3.0 w/ glibc-2.25 and manually adding -mieee-fp to CFLAGS and CXXFLAGS?  Might also try LDFLAGS as well, because I have LTO setup, and you have to include CFLAGS with LDFLAGS in an LTO build.  That is probably what's happening, because in an LTO setup, gcc does the linking and including -mieee-fp there is when it'll detect the multiple definitions on the resulting .o file.
Comment 13 Joshua Kinard gentoo-dev 2017-07-23 23:57:39 UTC
Didn't forget about this (for too long).  Used perlbug to generate a message and mailed it off manually.  The ticket assigned back is #131786.
Comment 14 Andreas K. Hüttel archtester gentoo-dev 2017-09-09 19:31:52 UTC
(In reply to Joshua Kinard from comment #13)
> Didn't forget about this (for too long).  Used perlbug to generate a message
> and mailed it off manually.  The ticket assigned back is #131786.

Did you have a chance to test the patch on the upstream report (which was committed to Perl master in the meantime)?
Comment 15 Andreas K. Hüttel archtester gentoo-dev 2017-09-09 19:52:40 UTC
https://perl5.git.perl.org/perl.git/commit/fa2e45943e2b6ce22cf70dba5b47afe73c8c7c80

^ The upstream blead commit
Comment 16 Andreas K. Hüttel archtester gentoo-dev 2017-10-04 09:14:26 UTC
Ping. Any luck testing?