Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145300 - media-libs/libsdl-1.2.11 fails to compile with gcc 4.1.1; linker/relocation error
Summary: media-libs/libsdl-1.2.11 fails to compile with gcc 4.1.1; linker/relocation e...
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-27 18:54 UTC by Petter Häggholm
Modified: 2006-08-28 16:59 UTC (History)
0 users

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


Attachments
config.log (config.log,169.57 KB, text/plain)
2006-08-28 00:52 UTC, Petter Häggholm
Details
output of `emerge libsdl >& log` (emerge_libsdl_log.txt,68.15 KB, text/plain)
2006-08-28 00:53 UTC, Petter Häggholm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petter Häggholm 2006-08-27 18:54:42 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: build/.libs/SDL_blit_A.o: relocation R_X86_64_PC32 against `BlitRGBtoRGBPixelAlphaMMX3DNOW' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make: *** [build/libSDL.la] Error 1

!!! ERROR: media-libs/libsdl-1.2.11 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  libsdl-1.2.11.ebuild, line 153:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

dreadfort ~ # emerge --info
Portage 2.1.1_rc1-r1 (default-linux/amd64/2005.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.16-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.4
Last Sync: Sun, 27 Aug 2006 23:20:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5, 2.4.3-r2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo http://prometheus.cs.wmich.edu/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://mirror.espri.arizona.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1,-z,now"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/liferea_overlay"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 7zip X a52 aac acpi alsa amr apache2 artworkextra avi berkdb bitmap-fonts branding bzip2 cairo cdinstall cdrom cli crypt cups cursors dba dbus dlloader doc dri dts dvd editor eds elibc_glibc emboss encode fam ffmpeg firefox flac foomaticdb fortran gcc64 gcj gdm gif glitz gnome gpm gstreamer gstreamer010 gtk gtk2 gtkhtml hal icons imlib initng_plugins_also initng_plugins_bash_launcher initng_plugins_chdir initng_plugins_chroot initng_plugins_conflict initng_plugins_cpout initng_plugins_critical initng_plugins_cron initng_plugins_daemon initng_plugins_dev initng_plugins_dllaunch initng_plugins_envparser initng_plugins_find initng_plugins_fstat initng_plugins_history initng_plugins_idleprobe initng_plugins_initctl initng_plugins_interactive initng_plugins_iparser initng_plugins_last initng_plugins_limit initng_plugins_logfile initng_plugins_netprobe initng_plugins_ngc4 initng_plugins_pause initng_plugins_pidfile initng_plugins_reload initng_plugins_renice initng_plugins_rlparser initng_plugins_simple_launcher initng_plugins_stcmd initng_plugins_stdout initng_plugins_suid initng_plugins_syncron initng_plugins_syslog initng_plugins_unneeded input_devices_evdev input_devices_keyboard input_devices_mouse iproute2 ipv6 isdnlog jpeg kdeenablefinal kernel_linux libnotify linguas_en linguas_en_GB linguas_en_US lm_sensors logitech-mouse logrotate lzw lzw-tiff mad math mikmod mozcalendar mozdevelop moznocompose moznoirc moznomail mozsvg mp3 mpeg nautilus ncurses network nls nptl nptlonly nsplugin nvidia offensive ogg oggvorbis opengl pam pcre pdf pdflib perl png pppd python qt-static quicktime readline reflection rtc sdl session spell spl ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU vcd video_cards_nvidia video_cards_vesa videos vorbis wma123 x264 xchat xchatdccserver xorg xpm xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2006-08-28 00:00:35 UTC
not entirely sure what's wrong on your system, but it isnt libsdl that's for sure

post the config.log and the output of `emerge libsdl >& log` as attachments
Comment 2 Petter Häggholm 2006-08-28 00:52:49 UTC
Created attachment 95256 [details]
config.log
Comment 3 Petter Häggholm 2006-08-28 00:53:22 UTC
Created attachment 95257 [details]
output of `emerge libsdl >& log`
Comment 4 Petter Häggholm 2006-08-28 16:36:50 UTC
See also bug #145426 -- it seems to be a similar failure.
Comment 5 Petter Häggholm 2006-08-28 16:59:14 UTC
Oh, the stupidity! Entirely my fault. When removing an array of dangerous CFLAGS in preparation for an `emerge -e world` a while ago, it seems I accidentally removed the optimisation flag. With -O2 it builds, and it'll probably make my system a wee bit more responsive ...