Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126722 - app-arch/p7zip-4.33 compile fails: needs -fPIC
Summary: app-arch/p7zip-4.33 compile fails: needs -fPIC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 126932 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-18 14:10 UTC by Paul Taylor
Modified: 2009-01-25 19:28 UTC (History)
8 users (show)

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


Attachments
portage log (5545-p7zip-4.33.log,139.82 KB, text/plain)
2006-03-20 13:06 UTC, Sandro Bonazzola (RETIRED)
Details
patch to use amd64 makefile (p7zip.amd64.diff,590 bytes, patch)
2006-03-23 23:42 UTC, Mathieu Seigneurin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Taylor 2006-03-18 14:10:18 UTC
# emerge -u p7zip
[snip]
x86_64-pc-linux-gnu-g++ -march=athlon64 -O3 -ftracer -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX  -shared -o ../../../bin/Formats/7z.so  ../../../Common/MyWindows.o ../../../Common/Alloc.o ../../../Common/Vector.o ../../../Common/StringConvert.o ../../../Common/String.o ../../../Common/CRC.o ../../../Common/IntToString.o ../../../Common/StringToInt.o DllExports.o 7zDecode.o 7zEncode.o 7zExtract.o 7zFolderInStream.o 7zFolderOutStream.o 7zHandler.o 7zHandlerOut.o 7zHeader.o 7zIn.o 7zMethodID.o 7zMethods.o 7zOut.o 7zProperties.o 7zSpecStream.o 7zUpdate.o CodecsPath.o CoderLoader.o CoderMixer2.o CoderMixer2MT.o CrossThreadProgress.o FilterCoder.o InStreamWithCRC.o ItemNameUtils.o MultiStream.o StreamUtils.o OutStreamWithCRC.o InOutTempBuffer.o LimitedStreams.o LockedStream.o OutBuffer.o ProgressUtils.o StreamBinder.o StreamObjects.o DLL.o FileDir.o FileFind.o FileIO.o PropVariant.o Synchronization.o CopyCoder.o ../../../myWindows/wine_date_and_time.o ../../../myWindows/myModuleFileName.o -lpthread -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: ../../../Common/Vector.o: relocation R_X86_64_32S against `vtable for CBaseRecordVector' can not be used when making a shared object; recompile with -fPIC
../../../Common/Vector.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [../../../bin/Formats/7z.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/p7zip-4.33/work/p7zip_4.33/7zip/Archive/7z'
make: *** [7z] Error 2

!!! ERROR: app-arch/p7zip-4.33 failed.
Call stack:
  ebuild.sh, line 1557:   Called dyn_compile
  ebuild.sh, line 966:   Called src_compile

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


Compilation for x86 is fine.


#emerge --info
Portage 2.1_pre6-r3 (default-linux/amd64/2006.0, gcc-3.4.5, 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 3500+
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-r1
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="-march=athlon64 -O3 -ftracer -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/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -ftracer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer nostrip sfperms strict"
GENTOO_MIRRORS="http://bower/gentoo ftp://ftp.iinet.com.au/pub/Gentoo ftp://ftp.swin.edu.au/gentoo http://distfiles.gentoo.org/"
LANG="en_AU"
LC_ALL="en_AU"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://bower/gentoo-portage"
USE="amd64 X a52 aac alsa apache2 arts audiofile bash-completion berkdb bitmap-fonts bzip2 bzlib cdparanoia cdr cdrom chroot cli crypt ctype cups curl dba dpms dri dts dv dvb dvd dvdr dvdread eds emboss encode exif expat fame fastbuild fbcon ffmpeg flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimpprint gpm gps gstreamer gtk gtk2 hal idn ieee1394 imagemagick imap imlib ipv6 jack java jpeg jpeg2k junit kde lcms lirc lm_sensors lzo lzw lzw-tiff mad memlimit mmap mng mp3 mpeg mpeg4 musepack musicbrainz ncurses nls nptl nptlonly nvidia ogg oggvorbis openal opengl pam pcre pda pdflib perl pic png posix ppds python qt quicktime readline real sdk sdl session simplexml slang sndfile soap sockets speex spell spl sqlite ssl svg tcpd test theora threads tiff tokenizer truetype truetype-fonts type1-fonts usb userlocales vcd vorbis wmf xcomposite xml xml2 xpm xprint xscreensaver xsl xv xvid xvmc yv12 zlib elibc_glibc kernel_linux userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Guy 2006-03-18 16:41:42 UTC
I don't get the same error but p7zip fails for me as well.

.oOo.

x86_64-pc-linux-gnu-g++ -march=opteron -O2 -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -DEXCLUDE_COM -DNO_REGISTRY -DFORMAT_7Z -DFORMAT_BZIP2 -DFORMAT_ZIP -DFORMAT_TAR -DFORMAT_GZIP -DCOMPRESS_LZMA -DCOMPRESS_BCJ_X86 -DFORMAT_SPLIT -DFORMAT_Z -DCOMPRESS_BCJ2 -DCOMPRESS_COPY -DCOMPRESS_MF_MT -DCOMPRESS_PPMD -DCOMPRESS_DEFLATE -DCOMPRESS_DEFLATE64 -DCOMPRESS_IMPLODE -DCOMPRESS_BZIP2 -DCRYPTO_ZIP -DCRYPTO_7ZAES -DCRYPTO_AES  -o ../../../bin/7za  ../../../Common/MyWindows.o 7zAES.o 7zCompressionMode.o 7zDecode.o 7zEncode.o 7zExtract.o 7zFolderInStream.o 7zFolderOutStream.o 7zHandler.o 7zHandlerOut.o 7zHeader.o 7zIn.o 7zMethodID.o 7zOut.o 7zProperties.o 7zSpecStream.o 7zUpdate.o ../../../Common/AlignedBuffer.o ../../../Common/Alloc.o ../../../Common/CommandLineParser.o ../../../Common/ListFileUtils.o ../../../Common/StdInStream.o ../../../Common/StdOutStream.o ../../../Common/Wildcard.o ../../../Common/UTFConvert.o ../../../Common/Vector.o ../../../Common/StringConvert.o ../../../Common/String.o ../../../Common/CRC.o ../../../Common/IntToString.o ../../../Common/StringToInt.o ../../../Common/Random.o BZip2Decoder.o BZip2Encoder.o BZip2Handler.o BZip2HandlerOut.o BZip2Update.o BZip2CRC.o BranchCoder.o ConsoleClose.o CopyCoder.o DefaultName.o DeflateDecoder.o DeflateEncoder.o DummyOutStream.o ExtractingFilePath.o FileDir.o FileFind.o FileName.o FilePathAutoRename.o FileStreams.o FilterCoder.o GZipHandler.o GZipHandlerOut.o GZipHeader.o GZipIn.o GZipOut.o GZipUpdate.o HuffmanEncoder.o ImplodeDecoder.o ImplodeHuffmanDecoder.o InBuffer.o InStreamWithCRC.o ItemNameUtils.o LSBFDecoder.o LSBFEncoder.o LZInWindow.o LZMADecoder.o LZMAEncoder.o LZOutWindow.o LimitedStreams.o List.o LockedStream.o MT.o MainAr.o Main.o MultiStream.o MyAES.o OffsetStream.o StreamUtils.o OpenCallbackConsole.o OutBuffer.o OutStreamWithCRC.o PPMDDecoder.o PPMDEncoder.o PercentPrinter.o ProgressUtils.o PropIDUtils.o PropVariant.o PropVariantConversions.o RangeCoderBit.o SHA256.o SortUtils.o SplitHandler.o StreamBinder.o StreamObjects.o Synchronization.o TarHandler.o TarHandlerOut.o TarHeader.o TarIn.o TarOut.o TarUpdate.o TempFiles.o UpdateAction.o UpdateCallbackConsole.o UpdatePair.o UpdateProduce.o UserInputUtils.o ZipAddCommon.o ZipCipher.o ZipCrypto.o ZipHandlerOut.o ZipHeader.o ZipIn.o ZipItem.o ZipOut.o ZipUpdate.o aescrypt.o aeskey.o aestab.o x86.o x86_2.o ArchiveCommandLine.o ArchiverInfo.o CoderMixer2.o CoderMixer2MT.o CrossThreadProgress.o EnumDirItems.o Extract.o InOutTempBuffer.o OpenArchive.o Error.o ArchiveOpenCallback.o ExtractCallbackConsole.o ArchiveExtractCallback.o UpdateCallback.o Update.o ZipHandler.o FileIO.o ShrinkDecoder.o ZDecoder.o ZHandler.o BlockSort.o ../../../myWindows/myGetTickCount.o ../../../myWindows/wine_date_and_time.o ../../../myWindows/myModuleFileName.o ../../../myWindows/myAddExeFlag.o ../../../myWindows/mySplitCommandLine.o -lpthread
make[1]: Leaving directory `/var/tmp/portage/p7zip-4.33/work/p7zip_4.33/7zip/Bundles/Alone'

!!! ERROR: app-arch/p7zip-4.33 failed.
Call stack:
  ebuild.sh, line 1557:   Called dyn_compile
  ebuild.sh, line 966:   Called src_compile

.oOo.

Portage 2.1_pre6-r3 (default-linux/amd64/2005.0, gcc-3.4.5, glibc-2.4-r1, 2.6.15.6 x86_64)
=================================================================
System uname: 2.6.15.6 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 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-r1
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="-march=opteron -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.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/fax /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib accessibility acl acpi aim alsa apache2 arts audacious audiofile avi bash-completion berkdb bitmap-fonts bonobo browserplugin bzip2 cdda cddb cdparanoia cdr chroot crypt cups curl curlwrappers dbus dga dio directfb divx4linux dmx dri dv dvd dvdr dvdread eds emboss encode esd ethereal examples exif extrafilters fame fbcon ffmpeg firefox flac flash foomaticdb fortran gcj gd gd-external gdbm ggi gif gimp gimpprint glut gnome gnutils gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal hardenedphp icq idn imagemagick imap imlib infopipe ipv6 irc jabber java javascript jikes jpeg jpeg2k junit kde kerberos lcms ldap libcaca libedit libvisual libwww lm_sensors lzo lzw lzw-tiff mad matroska mikmod mime ming mjpeg mmap mng mozcalendar mozilla mozsvg mp3 mpeg musepack musicbrainz mysql mysqli nas ncurses nls nptl nptlonly nsplugin odbc offensive ogg oggvorbis openal opengl oscar pam pcre pda pdflib perl php png portaudio posix postgres ppds python qt quicktime readline real rtc ruby samba sasl scanner sdk sdl session shorten simplexml skins slang slp sndfile snmp soap sockets sox speex spell spl sqlite ssl svg tckltk tcltk tcpd tetex theora threads tidy tiff tokenizer transcode truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vcdimager vchroot verbose vhosts videos visualization vorbis wma wmf wxgtk1 xcomposite xface xine xinerama xml xml2 xmlrpc xmms xpm xprint xscreensaver xsl xv xvid yahoo zeo zlib elibc_glibc kernel_linux userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2006-03-19 04:06:15 UTC
(In reply to comment #1)

You didn't post an error message, all one can see from the output is that a parallel make happens. You have to scroll up until you see an error message. If it is the same as this one, don't bother posting it, we already know about it. If it's not, it's worth searching other bugs or filing a new one.
Comment 3 Duncan 2006-03-19 04:36:24 UTC
I was hit with this too, and found this bug previous to filing my own.

Duncan
Comment 4 David Pyke 2006-03-19 06:25:17 UTC
x86_64-pc-linux-gnu-g++ -O3 -march=athlon64 -pipe -msse3 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX  -shared -o ../../../bin/Fo rmats/7z.so -Wl,-O1 -Wl,-Bdirect ../../../Common/MyWindows.o ../../../Common/All oc.o ../../../Common/Vector.o ../../../Common/StringConvert.o ../../../Common/St ring.o ../../../Common/CRC.o ../../../Common/IntToString.o ../../../Common/Strin gToInt.o DllExports.o 7zDecode.o 7zEncode.o 7zExtract.o 7zFolderInStream.o 7zFol derOutStream.o 7zHandler.o 7zHandlerOut.o 7zHeader.o 7zIn.o 7zMethodID.o 7zMetho ds.o 7zOut.o 7zProperties.o 7zSpecStream.o 7zUpdate.o CodecsPath.o CoderLoader.o  CoderMixer2.o CoderMixer2MT.o CrossThreadProgress.o FilterCoder.o InStreamWithC RC.o ItemNameUtils.o MultiStream.o StreamUtils.o OutStreamWithCRC.o InOutTempBuf fer.o LimitedStreams.o LockedStream.o OutBuffer.o ProgressUtils.o StreamBinder.o  StreamObjects.o DLL.o FileDir.o FileFind.o FileIO.o PropVariant.o Synchronizati on.o CopyCoder.o ../../../myWindows/wine_date_and_time.o ../../../myWindows/myMo duleFileName.o -lpthread -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: . ./../../Common/MyWindows.o: relocation R_X86_64_32 against `__gxx_personality_v0 ' can not be used when making a shared object; recompile with -fPIC
../../../Common/MyWindows.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [../../../bin/Formats/7z.so] Error 1
make[1]: Leaving directory `/mnt/windows/tmp/portage/p7zip-4.33/work/p7zip_4.33/ 7zip/Archive/7z'
make: *** [7z] Error 2
make: *** Waiting for unfinished jobs....

Portage 2.1_pre6-r3 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-rc6 x86_64)
=================================================================
System uname: 2.6.16-rc6 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.6.14
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
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-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=athlon64 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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="-O3 -march=athlon64 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo"
LDFLAGS="-Wl,-O1 -Wl,-Bdirect"
MAKEOPTS="-j3"
PKGDIR="/mnt/windows/pkgdir"
PORTAGE_TMPDIR="/mnt/windows/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac acpi alsa apache2 audiofile avi berkdb bidi binfilter bitmap-fonts blas bzip2 cairo ccache cdparanoia cdr cli crosscompile crypt ctype cups curl dba dbus dlloader dri dts dvd dvdr dvdread emboss emul-linux-x86 encode esd expat fastbuild fbcon ffmpeg firefox flac foomaticdb force-cgi-redirect fortran ftp gcj gd gdbm gif gimpprint glibc-omitfp glut gnome gnome-print gpm gstreamer gtk gtk2 gtkhtml guile hal hpn icq idn ieee1394 imagemagick imlib java jpeg lapack lcms live lm_sensors logrotate lzo lzw mad maildir matroska mbox mdb memlimit mime mng motif mp3 mpeg mpm-worker msn mysql nas ncurses network nforce2 nls nptl nptlonly nsplugin nvidia offensive ogg opengl oscar pam pcre pdf perl php plotutils png posix ppds python qt quicktime readline real rtc samba sdl session simplexml smp sndfile snmp soap sockets sou sox speex spell spl ssl svg swat tcltk tcpd theora threads tidy tiff tokenizer truetype truetype-fonts type1-fonts usb v4l vcd videos vorbis wifi wxwindows xanim xine xml xml2 xmms xpm xprint xsl xv xvid xvmc zlib elibc_glibc input_devices_evdev input_devices_mouse input_devices_keyboard kernel_linux userland_GNU video_cards_nv video_cards_vesa video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LINGUAS
Comment 5 Guy 2006-03-19 11:00:28 UTC
(In reply to comment #2)
> (In reply to comment #1)
> 
> You didn't post an error message, all one can see from the output is that a
> parallel make happens. You have to scroll up until you see an error message. If
> it is the same as this one, don't bother posting it, we already know about it.
> If it's not, it's worth searching other bugs or filing a new one.
> 

Sorry about that. I thought I had scrolled up far enough to find any error message but didn't see one. I grepped through the log this time and it's the same -fPIC error.
Comment 6 Malcolm Lashley (RETIRED) gentoo-dev 2006-03-20 04:29:14 UTC
*** Bug 126932 has been marked as a duplicate of this bug. ***
Comment 7 Sandro Bonazzola (RETIRED) gentoo-dev 2006-03-20 13:05:00 UTC
confirmed here. full compile log as attachment. the error here:
x86_64-pc-linux-gnu-g++ -march=athlon64 -Os -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX  -shared -o ../../../bin/Formats/7z.so  ../../../Common/MyWindows.o ../../../Common/Alloc.o ../../../Common/Vector.o ../../../Common/StringConvert.o ../../../Common/String.o ../../../Common/CRC.o ../../../Common/IntToString.o ../../../Common/StringToInt.o DllExports.o 7zDecode.o 7zEncode.o 7zExtract.o 7zFolderInStream.o 7zFolderOutStream.o 7zHandler.o 7zHandlerOut.o 7zHeader.o 7zIn.o 7zMethodID.o 7zMethods.o 7zOut.o 7zProperties.o 7zSpecStream.o 7zUpdate.o CodecsPath.o CoderLoader.o CoderMixer2.o CoderMixer2MT.o CrossThreadProgress.o FilterCoder.o InStreamWithCRC.o ItemNameUtils.o MultiStream.o StreamUtils.o OutStreamWithCRC.o InOutTempBuffer.o LimitedStreams.o LockedStream.o OutBuffer.o ProgressUtils.o StreamBinder.o StreamObjects.o DLL.o FileDir.o FileFind.o FileIO.o PropVariant.o Synchronization.o CopyCoder.o ../../../myWindows/wine_date_and_time.o ../../../myWindows/myModuleFileName.o -lpthread -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: ../../../Common/Vector.o: relocation R_X86_64_32S against `vtable for CBaseRecordVector' can not be used when making a shared object; recompile with -fPIC
../../../Common/Vector.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [../../../bin/Formats/7z.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/p7zip-4.33/work/p7zip_4.33/7zip/Archive/7z'
make: *** [7z] Error 2

# emerge --info
Portage 2.1_pre6-r5 (default-linux/amd64/2006.0, gcc-3.4.5, 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 3500+
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
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-r1
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=" -march=athlon64 -Os -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow "
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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS=" -march=athlon64 -Os -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow "
DISTDIR="/home/ftp/distfiles"
FEATURES="autoconfig ccache collision-protect cvs distlocks elog metadata-transfer multilib-strict sandbox sfperms sign strict stricter test userpriv"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.osuosl.org/ http://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.heanet.ie/pub/gentoo/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo http://gentoo.ngi.it http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ "
LANG="it_IT.utf8"
LINGUAS="it"
PKGDIR="/home/ftp/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/migration-overlay /usr/local/overlays/tinyos /usr/local/overlays/gentoo-java-experimental"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 7zip X a52 aac aalib acl acpi alsa apache2 arts asf audiofile avi berkdb bitmap-fonts bzip2 cairo canvas ccache cdb cddb cdparanoia cdr chroot cli cpudetection crypt css ctype cups curl dba dbus dga directfb dlloader dri dts dv dvd dvdr dvdread dynagraph emboss encode erandom esd exif expat extrafilters fame fastbuild ffmpeg firefox flac fltk foomaticdb force-cgi-redirect ftp gd gdbm ggi gif gimp gimpprint glibc-omitfp glut gmp gnokii gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal idn ieee1394 imagemagick imlib ipv6 ithreads java jbig jikes jpeg jpeg2k justify kde kdeenablefinal lcms ldap libcaca linuxthreads-tls lm_sensors logitech-mouse logrotate lzo lzw lzw-tiff mad mailwrapper mbox mdb memlimit mhash mikmod mjpeg mmap mng motif mozsvg mp3 mpeg mpm-worker musicbrainz mysql ncurses nls nptl nptlonly numeric nvidia odbc offensive ogg on-the-fly-crypt openexr opengl oss pam pcre pcsc-lite pdf pdflib perl php png posix povray ppds python qt quicktime rdesktop readline rtc samba scanner sdl session simplexml slang smp snmp soap sockets speex spell spl ssl subversion svg sysfs tcltk tcpd test tetex tga theora threads tidy tiff timidity tokenizer truetype truetype-fonts type1-fonts unicode usb userlocales utf8 v4l v4l2 vcd vda vorbis wmf xcomposite xine xinerama xml xml2 xmms xpm xscreensaver xsl xv xvid yv12 zlib elibc_glibc input_devices_mouse input_devices_evdev input_devices_keyboard kernel_linux linguas_it userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, LDFLAGS, MAKEOPTS
Comment 8 Sandro Bonazzola (RETIRED) gentoo-dev 2006-03-20 13:06:20 UTC
Created attachment 82710 [details]
portage log

complete portage log
Comment 9 boris64 2006-03-20 16:22:21 UTC
yet another "same here".

emerge --info
Portage 2.1_pre6-r4 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.15.6-200x-x86_64 x86_64)
=================================================================
System uname: 2.6.15.6-200x-x86_64 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
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-r1
sys-devel/binutils:  2.16.1, 2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ABI="amd64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE=""
ALSA_CARDS="emu10k1"
ARCH="amd64"
AUTOCLEAN="yes"
BASH_ENV="/etc/spork/is/not/valid/profile.env"
CBUILD="x86_64-pc-linux-gnu"
CCACHE_SIZE="2G"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer"
CFLAGS_x86="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
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"
CVS_RSH="ssh"
CXXFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer"
DEFAULT_ABI="amd64"
DISPLAY=":0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose"
EMERGE_WARNING_DELAY="10"
FEATURES="autoconfig ccache digest distlocks fixpackages metadata-transfer sandbox sfperms strict userpriv usersandbox"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp ${URI} -P ${DISTDIR}"
FLTK_DOCDIR="/usr/share/doc/fltk-1.1.6/html"
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://ftp.tu-chemnitz.de/pub/linux/gentoo/             http://gentoo.inode.at/                 http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/               http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/              http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/     http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/             http://gentoo.intergenia.de             http://gentoo.inf.elte.hu/                 http://mirror.pudas.net/gentoo                 http://linuv.uv.es/mirror/gentoo/                 http://gentoo.intergenia.de                 http://mirror.switch.ch/ftp/mirror/gentoo/                 http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/                 http://ds.thn.htu.se/linux/gentoo                 http://gentoo.ynet.sk/pub                 http://gentoo.po.opole.pl                 http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/                 http://gentoo.inode.at/                 http://ftp.du.se/pub/os/gentoo                 http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/                 http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/                 http://mirror.ovh.net/gentoo-distfiles/                 http://gentoo.mirror.intouch.nl/gentoo/                 http://ftp.snt.utwente.nl/pub/os/linux/gentoo                 http://gentoo.prz.rzeszow.pl"
G_BROKEN_FILENAMES="1"
HOME="/root"
HOSTNAME="youarebeingassimilated"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.0/info"
INPUT_DEVICES="evdev joystick keyboard mouse"
JAVAC="/opt/sun-jdk-1.5.0.06/bin/javac"
JAVA_HOME="/opt/sun-jdk-1.5.0.06"
JDK_HOME="/opt/sun-jdk-1.5.0.06"
KDEDIRS="/usr"
KDE_IS_PRELINKED="1"
KDE_MALLOC="1"
KDE_NO_IPV6="1"
KERNEL="linux"
LANG="de_DE.UTF-8"
LANGUAGE="49"
LC_ALL="de_DE.UTF-8"
LC_MESSAGES="C"
LDFLAGS_x86="-m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_x86="lib32"
LINGUAS="de"
LIRC_OPTS="--with-driver=atiusb"
LOGNAME="root"
MAKEOPTS="-j2"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.0/man::/opt/sun-jdk-1.5.0.06/man:/usr/qt/3/doc/man:/opt/vmware/workstation/man"
MULTILIB_ABIS="x86 amd64"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib /usr/lib /usr/kde/*/lib /usr/qt/*/lib /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|eclipse-3|debug|portage)"
OLDPWD="/home/portage/portage_overlay/sys-kernel/vanilla-sources"
OPENGL_PROFILE="nvidia"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.0:/opt/sun-jdk-1.5.0.06/bin:/opt/sun-jdk-1.5.0.06/jre/bin:/usr/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/vmware/workstation/bin:/home/t3R"
PKGDIR="/home/portage/portage_packages"
PORTAGE_ARCHLIST="ppc s390 amd64 ppc64 m68k arm sparc sh mips ia64 alpha ppc-macos hppa x86"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CALLER="emerge"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILURI="portage@localhost localhost"
PORTAGE_ELOG_SYSTEM="save mail"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_MASTER_PID="22525"
PORTAGE_NICENESS="0"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_TMPFS="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/portage/portage_overlay"
PORT_LOGDIR="/var/log/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK=""
PWD="/usr/src"
PYTHONPATH="/usr/lib/portage/pym"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp ${URI} -P ${DISTDIR}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="2"
RSYNC_TIMEOUT="60"
SANE_CONFIG_DIR="/etc/sane.d"
SHELL="/bin/bash"
SHLVL="1"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
TERM="xterm"
UNSERMAKE="no"
USE="amd64 7zip X a52 aac aalib acpi alsa automount blender-game bzip2 cddb cdparanoia cdr cdrom cgi clamav clamd cli crypt css ctype cups curl dba dbus dga dio dlloader dpms dri dv dvb dvd dvdr dvdread edl eds emboss encode exif expat fastbuild fastcgi fbcon ffmpeg firefox flac font-server force-cgi-redirect ftp gd gecko-sdk gif gimp gimpprint glx gphoto2 gpm hal hardenedphp hpn iconv icq imagemagick imlib input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse jabber java javascript joystick jp2 jpeg jpeg2k kde kdeenablefinal lcd libclamav libwww lighttpd lirc live lm_sensors logitech-mouse logrotate lzo lzw lzw-tiff mad mbox md5sum memlimit mime mjpeg mng mp3 mpeg mplayer multislot musicbrainz ncurses network nforce2 nls no-old-linux no-suexec nocardbus nocd nptl nptlonly nsplugin nvidia offensive ogg on-the-fly-crypt openexr opengl oscar pam pcre pdflib perl php png posix qt quicktime rar rdesktop readline real rss rtc samba sblive scanner server session simplexml sndfile soap sockets sox spamassassin speex spell spl sqlite sqlite3 ssl subversion svg symlink sysfs syslog sysvipc tcpd theora tidy tiff tokenizer transcode truetype truetype-fonts type1-fonts unicode usb vcd video_cards_nv video_cards_nvidia videos visualization vorbis wmf xanim xcomposite xine xinerama xml xml2 xosd xpm xsl xv xvid xvmc yv12 zeroconf zip zlib zvbi elibc_glibc kernel_linux linguas_de userland_GNU"
USER="root"
USERLAND="GNU"
USE_EXPAND="DVB_CARDS ELIBC FCDSL_CARDS FRITZCAPI_CARDS INPUT_DEVICES KERNEL LINGUAS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN=""
USE_ORDER="env:pkg:conf:defaults"
VIDEO_CARDS="nvidia nv"
XARGS="xargs -r"
_="/usr/bin/emerge"
__GL_SYNC_TO_VBLANK="1"
Comment 10 George Shapovalov (RETIRED) gentoo-dev 2006-03-22 01:06:29 UTC
Just for the record.

I am also hitting this problem (on amd64) and the apparent solution of adding flag-o-matic to inherit and later "append-flags" -fPIC works. However this should probably made conditional on $ARCH=="amd64" (and as such moved into src_compile), as seemingly all the other arches dislike this flag (performace issues), while on amd64 it seems not to impose much overhead. 

Refs:
http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=3&chap=1
and
http://www.gentoo.org/proj/en/hardened/pic-internals.xml

If another slution can be found, so much the better, but now we have a package that does not build. If this is unacceptable and other solution should be sought, I'd suggest removing ~amd64 from KEYWORDS meanwhile..

George
Comment 11 Radoslaw Stachowiak (RETIRED) gentoo-dev 2006-03-22 01:50:03 UTC
removed amd64 keyword due to fPIC bug #126722
Comment 12 Radoslaw Stachowiak (RETIRED) gentoo-dev 2006-03-22 01:51:53 UTC
I kindly ask amd64 team for suggesting preferred solution here.
Comment 13 Chris White (RETIRED) gentoo-dev 2006-03-22 06:51:59 UTC
Radek,

looking at the package, there seems to be makefile and then makefile.* with various machine names appended at the end. The makefile.linux_amd64 ( I think is what it was named) simply has to be renamed to makefile.machine, and the lower level source directories will pick it up and used the CFLAGS mentioned in the file. However, I'm not to sure about -m32 in there, someone else can confirm what's up with that ;D
Comment 14 Simon Stelling (RETIRED) gentoo-dev 2006-03-22 08:39:08 UTC
As for the preferred fix: append-flags -fPIC is only acceptable if the package builds only shared libraries. If it contains executables too, this is a no-go, instead the Makefile should be fixed to apply -fPIC to shared libs *unconditionally*.
Comment 15 Mathieu Seigneurin 2006-03-23 23:42:30 UTC
Created attachment 82981 [details, diff]
patch to use amd64 makefile
Comment 16 Mathieu Seigneurin 2006-03-23 23:47:52 UTC
Patching this app's build system is beyond my skills right now,
but the package does provide and amd64 submake file. The patch
I just attached makes the build use it on amd64 + keywords the
ebuild (and fixes the sed for this platform too).
I know this is suboptimal (-fPIC gets added everywhere rather than
just for .so related objects). Thing is, some .o's are used both in
shared libs and executables, so the fix is not trivial.
Comment 17 Radoslaw Stachowiak (RETIRED) gentoo-dev 2006-04-16 03:40:35 UTC
Added version 4.39 into portage.
It's not keyworded for amd64, however I added code to use -fPIC on amd64 platform. This is unfortunately done in upstream manner (globally fPIC) so its not optimal. I'm unable (too much work) to fix whole compilation process to adhere to proper fPIC usage.

So:
1. Please amd64 team decide if You want to add amd64 keyword or not in current state
2. Amd64 users please use /etc/portage/packages.keywords if You'd like.
Comment 18 Simon Stelling (RETIRED) gentoo-dev 2006-06-22 13:20:28 UTC
this would have been fixed long ago, if the latest ebuild just had a ~amd64 keyword
Comment 19 Sebastian Mueller 2008-12-27 11:43:03 UTC
On amd64 there is still no optimized Makefile:

* Messages for package app-arch/p7zip-4.58:
 * Using suboptimal -fPIC upstream makefile due to amd64 being detected. See #126722

It compiles and works fine, so its not critical. Is anyone working to solve it? Or should i still accept it like it is ?


Portage 2.1.4.5 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.28-gentooB20 x86_64)
=================================================================
System uname: 2.6.28-gentooB20 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz
Timestamp of tree: Sat, 27 Dec 2008 10:15:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
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/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/
 /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE.UTF8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/armagetron /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi additions alsa amd64 apache2 avahi avi bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr cli cracklib crypt css ctype cups dbus divx dri dv dvb dvd dvdr dvd
read eds emboss encode esd evo fam ffmpeg fftw firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv injection ipv6 isdnlog jack java java6 javascript jpeg lame ldap libnotify libsamplerate l
ive loop-aes mad mdnsresponder-compat midi mikmod mjpeg mmx mp3 mpeg mudflap multilib mysql mysqli ncurses nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre pdf pear perl php png ppds pppd pulsea
udio python qt3 qt3support quicktime readline reflection sdl session spell spl sqlite srt sse sse2 ssl startup-notification subversion suid svg sysfs tcpd tiff truetype unicode usb vcd vorbis wifi xcb 
xinerama xml xml2 xorg xscreensaver xulrunner xv xvmc 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_gro
upfile 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_ma
gic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk h
d44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 20 Israel G. Lugo 2009-01-11 21:55:08 UTC
This(In reply to comment #19)
> On amd64 there is still no optimized Makefile:
> 
> * Messages for package app-arch/p7zip-4.58:
>  * Using suboptimal -fPIC upstream makefile due to amd64 being detected. See
> #126722
> 
> It compiles and works fine, so its not critical. Is anyone working to solve it?
> Or should i still accept it like it is ?

Actually this has already been solved upstream. From the p7zip ChangeLog for version 4.48:
  - Now the executables are not built with the PIC (position-independent code) flag.
    7z.so are still built with the PIC flag.
    7za and 7zr are now faster than 7z with 7z.so.
    7za, 7zr and 7r are now smaller.

The problem no longer exists, I have checked the compilation logs and indeed only the shared components are being compiled and linked with -fPIC (as they should). The warning is outdated and should be removed from the ebuild.
Comment 21 Radoslaw Stachowiak (RETIRED) gentoo-dev 2009-01-25 19:28:55 UTC
Removed improper warning.