emerge of mplayer-1.0.20070622-r1 fails when compiling after a while on libswscale/libswscale.a(swscale.o) I'm using a hardened profile Reproducible: Always Steps to Reproduce: 1.emerge mplayer Actual Results: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: libswscale/libswscale.a(swscale.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC libswscale/libswscale.a: no se puede leer símbolos: Bad value collect2: ld devolvió el estado de salida 1 make: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: libswscale/libswscale.a(swscale.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC libswscale/libswscale.a: no se puede leer símbolos: Bad value collect2: ld devolvió el estado de salida 1 *** [mencoder] Error 1 # emerge --info Portage 2.1.3_rc6 (hardened/amd64, gcc-3.4.6, glibc-2.5-r3, 2.6.21-hardened-r3 x86_64) ================================================================= System uname: 2.6.21-hardened-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ Gentoo Base System release 1.12.10 Timestamp of tree: Mon, 02 Jul 2007 00:50:01 +0000 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=athlon64 -pipe -fforce-addr" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O3 -march=athlon64 -pipe -fforce-addr" DISTDIR="/var/gentoo/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://distfiles.gentoo.org" LANG="es_ES@euro" LC_ALL="es_ES@euro" LINGUAS="es" MAKEOPTS="-j3" PKGDIR="/var/gentoo/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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage-overlays/local" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X acl acpi alsa amd64 ao bash-completion berkdb bluetooth bzip2 cairo cdr cracklib crypt cups dedicated dga directfb dri dvd dvdr encode exif fbcon firefox gd geoip gif glut gpm gps gtk gtkhtml hardened imagemagick imap ipv6 jpeg jpeg2k justify lm_sensors logrotate mad maildir midi mp3 mpeg mplayer msn mysql ncurses nls nptl nptlonly nsplugin ogg openal opengl pam pdf pic plotutils png python readline skey sockets sox sqlite3 sse sse2 ssl startup-notification svg symlink tetex threads truetype urandom usb v4l videos vim-syntax vorbis xcomposite xface xml xorg xscreensaver xv xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Kindly set your locales to C when reporting bugs.
How can I set locales to C? new version 1.0.20070824 compiles without problems, you can close this bug
(In reply to comment #2) > How can I set locales to C? > > new version 1.0.20070824 compiles without problems, you can close this bug > bueno, gracias hermano.
*** Bug 191103 has been marked as a duplicate of this bug. ***
using 1.0_rc1_p20070824 did not fix the issue. see bug #191103 which is a reopen cloned of this one.
*** Bug 191651 has been marked as a duplicate of this bug. ***
Reopen.
The cpudetection use flag seems like to the be the problem here. Either USE="-cpudetection" emerge mplayer for temporary fix or for a perma solution set in your /etc/portage/package.use: media-video/mplayer -cpudetection. The hardened profile needs update to use.mask. Reproduceable on amd64 multilib. orson@localhost ~ $ emerge --info Portage 2.1.3.19 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.6.1-r0, 2.6.23-hardened-r4 x86_64) ================================================================= System uname: 2.6.23-hardened-r4 x86_64 AMD Sempron(tm) Processor 2600+ Timestamp of tree: Wed, 26 Dec 2007 11:00:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 3.2_p17 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -fforce-addr -fomit-frame-pointer -fmerge-all-constants -frename-registers -ffast-math" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -pipe -fforce-addr -fomit-frame-pointer -fmerge-all-constants -frename-registers -ffast-math" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://gentoo.mirrors.tds.net/gentoo " 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="amd64 crypt hardened justify midi minimal nptl nptlonly pam pic ssl urandom xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="none dummy nv" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
english version of the bug <command line>:2:1: warning: "__STDC_LIMIT_MACROS" redefined <command line>:1:1: warning: this is the location of the previous definition <command line>:8:1: warning: "__STDC_LIMIT_MACROS" redefined <command line>:2:1: warning: this is the location of the previous definition ar r libosdep.a timer-lx.o getch2.o mmap_anon.o shmem.o ar: creating libosdep.a true libosdep.a make[1]: Leaving directory `/var/tmp/portage/media-video/mplayer-1.0_rc1_p20070824/work/mplayer-20070824/osdep' x86_64-pc-linux-gnu-gcc -o mplayer mplayer.o m_property.o mp_fifo.o mp_msg.o mixer.o parser-mpcmd.o subopt-helper.o command.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o m_config.o m_option.$ /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: libswscale/libswscale.a(swscale.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a share$ libswscale/libswscale.a: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [mplayer] Error 1 * * ERROR: media-video/mplayer-1.0_rc1_p20070824 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * mplayer-1.0_rc1_p20070824.ebuild, line 447: Called die * The specific snippet of code: * emake || die "Failed to build MPlayer!" * The die message: * Failed to build MPlayer! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/media-video/mplayer-1.0_rc1_p20070824/temp/build.log'. * * Messages for package media-video/mplayer-1.0_rc1_p20070824: * * ERROR: media-video/mplayer-1.0_rc1_p20070824 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * mplayer-1.0_rc1_p20070824.ebuild, line 447: Called die * The specific snippet of code: * emake || die "Failed to build MPlayer!" * The die message: * Failed to build MPlayer! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/media-video/mplayer-1.0_rc1_p20070824/temp/build.log'. *
Created attachment 139510 [details] build.log USE="-cpudetection" could perhaps be a workaround for this special place, but i do get another error after that
On my system (~x86 P4), I tracked the problem via scanelf -qtT down to assembler code located within the functions rgb24tobgr24() and rgb24toyv12(), which in turn are located within file libswscale/rgb2rgb_template.c. If within these functions HAVE_MMX is undefed and thus the alternative C-implementation is enabled, the TEXTREL problem vanishes and the ffmpeg program works afterwards (although partly without MMX). Perhaps someone really experienced with pie and mmx assembly coding could take a look at rgb2rgb_template.c?
Try 20090731. Reopen if this is still a problem.
Still seeing this on -1.0_rc2_p20090731-r1: /usr/lib/gcc/x86_64-pc/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: liba52/resample.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC liba52/resample.o: could not read symbols: Bad value collect2: ld returned 1 exit status -linuxmake: *** [mplayer] Error 1 make: *** Waiting for unfinished jobs.... -gnu/4.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: liba52/resample.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC liba52/resample.o: could not read symbols: Bad value collect2: ld returned 1 exit status
Ewps forgot: Portage 2.2_rc38 (hardened/amd64/multilib, gcc-4.4.1, glibc-2.10.1-r0, 2.6.29-hardened-platypus-1 x86_64) ================================================================= System uname: Linux-2.6.29-hardened-platypus-1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T6400_@_2.00GHz-with-gentoo-2.0.1 Timestamp of tree: Fri, 21 Aug 2009 22:15:02 +0000 app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.6.2-r1, 3.1 dev-util/cmake: 2.6.4-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.0 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.8.5-r3, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -fomit-frame-pointer -march=core2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /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/udev/rules.d" CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=core2" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests autoconfig distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo http://open-systems.ufl.edu/mirrors/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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/layman/sunrise /usr/local/portage/layman/kutulu /usr/local/portage/layman/x11 /usr/local/portage/layman/lisp /usr/local/portage/layman/xake-toolchain /usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X acpi alsa amd64 automount bash-completion branding bzip2 cairo cdr consolekit cracklib crypt css cups dbus dell dri dvd ffmpeg firefox flac gnome gstreamer gtk gtk2 hal hardened java java6 jpeg justify laptop lm_sensors mmx mono mp3 multilib nautilus nls nptl nptlonly nsplugin offensive ogg opengl pam pic png python readline samba sse sse2 ssl sysfs tcpd threads tiff unicode urandom vim-syntax xml xorg xulrunner zlib" ALSA_CARDS="hda-intel" 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 synaptics" KERNEL="linux" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Please reopen - still seeing this: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: liba52/resample.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC liba52/resample.o: could not read symbols: Bad value collect2: ld returned 1 exit status
Known issues, use the -nopie spec for mplayer for now.
Reopen for correct solution.
*** This bug has been marked as a duplicate of bug 93862 ***