Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127503 - media-libs/libsndfile-1.0.15 - fPIC error
Summary: media-libs/libsndfile-1.0.15 - fPIC error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-24 23:04 UTC by David Watzke
Modified: 2006-03-26 00:24 UTC (History)
5 users (show)

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


Attachments
Emerge log (emerge.log,69.01 KB, text/plain)
2006-03-25 03:05 UTC, David Watzke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Watzke 2006-03-24 23:04:22 UTC
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
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-25 02:47:17 UTC
Can you provide a full emerge log? I can't reproduce it here.
Comment 2 David Watzke 2006-03-25 03:05:01 UTC
Created attachment 83076 [details]
Emerge log
Comment 3 Peter Read 2006-03-25 03:52:40 UTC
Same issue with almost identical config here (gcc 4.1) - merges cleanly with gcc 3.4.5 however.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-25 11:18:07 UTC
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.
Comment 5 Peter Read 2006-03-25 12:57:01 UTC
Can confirm same issue with -r1, under gcc 4.1 and -O2 at least.
Comment 6 David Watzke 2006-03-25 13:07:22 UTC
Yeah, still same...
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-25 13:07:55 UTC
emerge --info output please.
Comment 8 TGL 2006-03-25 13:16:09 UTC
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).
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-25 13:24:01 UTC
;_; why today I'm running the commands in the wrong order (I edited the 1.0.15 version and then removed it...).
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-25 13:29:03 UTC
Okay please try with -r2 that this time should be fixed...
And for today I'll avoid other commits...
Comment 11 David Watzke 2006-03-26 00:24:29 UTC
I think we can mark it as fixed now :-)