emerging 'media-libs/musicbrainz-2.1.1' on my new stage1 2005.0 amd64 install results in the following error: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/diskid.o: relocation R_X86_64_PC32 against `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[2]: *** [libmusicbrainz.la] Error 1 make[2]: Leaving directory `/var/tmp/portage/musicbrainz-2.1.1/work/libmusicbrainz-2.1.1/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/musicbrainz-2.1.1/work/libmusicbrainz-2.1.1' make: *** [all] Error 2 !!! ERROR: media-libs/musicbrainz-2.1.1 failed. !!! Function src_compile, Line 32, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1.emerge musicbrainz 2. 3. Actual Results: The error described above occured and the program failed to emerge. Expected Results: It should have correctly emerged, without error. Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 x86_64) ================================================================= System uname: 2.6.11-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 11 2005, 12:38:49)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.8.5-r3, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="" LC_ALL="" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="amd64 X acpi alsa avi berkdb bitmap-fonts cjk crypt curl dvd fam flac font-server fortran gif hal java jp2 jpeg kde kdeenablefinal kdexdeltas lm_sensors lzw lzw-tiff mad mp3 ncurses nls nptl ogg oggvorbis opengl pam perl png python qt readline ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis xine xml2 xpm xrandr xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Please attach your config.log from the build directory.
Created attachment 56450 [details] config.log from the build directory
Hi, the same error here (amd64, 2005.0 stage1) - any progress?
Maybe I'll just add a link for a hotfix dystopianray found: http://forums.gentoo.org/viewtopic-t-316156.html (don't use -fvisibility-inlines-hidden)
-fvisibility-inlines-hidden is an unsupported, remove it from your CXXFLAGS and it will work, thank you.
*** Bug 96915 has been marked as a duplicate of this bug. ***
To clarify things: this is not a library bug. The '-fPIC' bug is actually caused by '-fvisibility-inlines-hidden' bugs _both_ in gcc and libstdc++. Please, don't use this flag on AMD64 while this is not fixed (it seems to be a problem o PPC64 too). For more information, read http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664