x86_64-pc-linux-gnu-gcc -shared .libs/sndfile.o .libs/common.o .libs/file_io.o .libs/command.o .libs/pcm.o .libs/ulaw.o .libs/alaw.o .libs/float32.o .libs/double64.o .libs/ima_adpcm.o .libs/ms_adpcm.o .libs/gsm610.o .libs/dwvw.o .libs/vox_adpcm.o .libs/interleave.o .libs/strings.o .libs/dither.o .libs/aiff.o .libs/au.o .libs/g72x.o .libs/avr.o .libs/caf.o .libs/ircam.o .libs/macbinary3.o .libs/macos.o .libs/mat4.o .libs/mat5.o .libs/nist.o .libs/paf.o .libs/pvf.o .libs/raw.o .libs/svx.o .libs/voc.o .libs/htk.o .libs/dwd.o .libs/ogg.o .libs/rx2.o .libs/sd2.o .libs/sds.o .libs/txw.o .libs/wve.o .libs/w64.o .libs/wav_w64.o .libs/wav.o .libs/xi.o .libs/flac.o -Wl,--whole-archive GSM610/.libs/libgsm.a G72x/.libs/libg72x.a -Wl,--no-whole-archive /usr/lib64/libFLAC.so -lm -march=athlon64 -Wl,--version-script=./Symbols.linux -Wl,-soname -Wl,libsndfile.so.1 -o .libs/libsndfile.so.1.0.15 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object. /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/flac.o: relocation R_X86_64_PC32 against `s2flac8_array' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[3]: *** [libsndfile.la] Error 1 make[3]: Leaving directory `/var/tmp/portage/libsndfile-1.0.15/work/libsndfile-1.0.15/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/libsndfile-1.0.15/work/libsndfile-1.0.15/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/libsndfile-1.0.15/work/libsndfile-1.0.15/src' make: *** [all-recursive] Error 1 !!! ERROR: media-libs/libsndfile-1.0.15 failed. Portage 2974-svn (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.15-gentoo-r7 x86_64) ================================================================= System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.0_pre16 dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe" DISTDIR="/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="autoconfig digest distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.linux.cz/pub/linux/gentoo http://mirror.gentoo.sk/pub http://distfiles.gentoo.org/" LANG="cs_CZ.UTF-8" LC_ALL="cs_CZ.UTF-8" LINGUAS="cs" MAKEOPTS="-j3" PKGDIR="/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/portage" PORTDIR_OVERLAY="/overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aac acpi alsa apm asf audiofile avi bash-completion bitmap-fonts bzip2 cdr cli css ctype cups dba dbus dga dio directfb dri dts dvd dvdr dvdread emboss encode fastbuild fbcon ffmpeg flac flash force-cgi-redirect fortran ftp gdbm gif gpm hal i8x0 icq id3 id3v2 imagemagick imlib ipv6 jabber javascript jpeg kde kdeenablefinal lame lcms lzw lzw-tiff mad matroska mbox memlimit mikmod mime mp3 mpeg mplayer ncurses nls nowebdav nptl nptlonly nvidia ogg oggvorbis openal opengl osc oscar pcre pdflib perl pic png posix ppds python qt quicktime readline scanner sdl session sftplogging simplexml skey soap sockets speex spl ssl subversion svg symlink theora tiff tokenizer truetype truetype-fonts type1-fonts unicode usb userlocales utf8 vorbis xine xml xml2 xpm xsl xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_cs userland_GNU video_cards_nvidia" Unset: ASFLAGS, CTARGET, LDFLAGS I think it's again caused by GCC 4.1. Tried to compile (link) that one with -fPIC, but result was same: # x86_64-pc-linux-gnu-gcc -fPIC -shared .libs/sndfile.o .libs/common.o .libs/file_io.o .libs/command.o .libs/pcm.o .libs/ulaw.o .libs/alaw.o .libs/float32.o .libs/double64.o .libs/ima_adpcm.o .libs/ms_adpcm.o .libs/gsm610.o .libs/dwvw.o .libs/vox_adpcm.o .libs/interleave.o .libs/strings.o .libs/dither.o .libs/aiff.o .libs/au.o .libs/g72x.o .libs/avr.o .libs/caf.o .libs/ircam.o .libs/macbinary3.o .libs/macos.o .libs/mat4.o .libs/mat5.o .libs/nist.o .libs/paf.o .libs/pvf.o .libs/raw.o .libs/svx.o .libs/voc.o .libs/htk.o .libs/dwd.o .libs/ogg.o .libs/rx2.o .libs/sd2.o .libs/sds.o .libs/txw.o .libs/wve.o .libs/w64.o .libs/wav_w64.o .libs/wav.o .libs/xi.o .libs/flac.o -Wl,--whole-archive GSM610/.libs/libgsm.a G72x/.libs/libg72x.a -Wl,--no-whole-archive /usr/lib64/libFLAC.so -lm -march=athlon64 -Wl,--version-script=./Symbols.linux -Wl,-soname -Wl,libsndfile.so.1 -o .libs/libsndfile.so.1.0.15 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object. /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/flac.o: relocation R_X86_64_PC32 against `s2flac8_array' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status
Can you provide a full emerge log? I can't reproduce it here.
Created attachment 83076 [details] Emerge log
Same issue with almost identical config here (gcc 4.1) - merges cleanly with gcc 3.4.5 however.
Please try with 1.0.15-r1, the problem seems to have been the -O0 used by configure to replace -O2, and I didn't hit because I'm using -Os. In 1.0.15-r1 should be ok.
Can confirm same issue with -r1, under gcc 4.1 and -O2 at least.
Yeah, still same...
emerge --info output please.
The bumped ebuild is identical to the old one in the Attic, and still uses the --disable-gcc-opt option (the one which replaces -O2 with -O0).
;_; why today I'm running the commands in the wrong order (I edited the 1.0.15 version and then removed it...).
Okay please try with -r2 that this time should be fixed... And for today I'll avoid other commits...
I think we can mark it as fixed now :-)