Summary: | dev-python/psycopg-1.1.21 fails to build: "recompile with -fPIC" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jonathan Coome (RETIRED) <maedhros> |
Component: | Current packages | Assignee: | AMD64 Project <amd64> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | martin_d_frankel, psychotical, tsabi-gentoo |
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | config log of the failed build |
Description
Jonathan Coome (RETIRED)
2006-05-29 23:43:18 UTC
the same problem here, fresh new install with ~amd64 i tryed to put the -fPIC into the CC and LD command line, but no good effect. the same problem with it. I can't reproduce it here. Can you please attach `/var/tmp/portage/psycopg-1.1.21/work/psycopg-1.1.21/config.log'? I can confirm this, config log follows, emerge --info here: gentoo ~ # emerge --info Portage 2.1.1_pre1-r1 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.16-suspend2-r7-Dudebox-Edition x86_64) ================================================================= System uname: 2.6.16-suspend2-r7-Dudebox-Edition x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.1 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.18.1 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.93 sys-devel/gcc-config: 2.0.0_rc1 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="-O2 -march=k8 -fomit-frame-pointer -pipe -msse3" 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/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=k8 -fomit-frame-pointer -pipe -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg ccache collision-protect confcache distcc distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict test userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de" MAKEOPTS="-j3" 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_overlay/default /usr/local/portage_overlay/vmware/trunk" SYNC="rsync://server/gentoo-portage" USE="amd64 X a52 aac aalib alsa arts artswrappersuid avi berkdb bitmap-fonts bzip2 bzlib cairo cddb cdparanoia cdr cli crypt css cups curl divx4linux dri dts dvd dvdr dvdread eds emboss emul-linux-x86 encode esd exif exscalibar fam fame fbcon ffmpeg flac flash font-server foomaticdb gif glitz gpm gtk gtk2 icq id3 imagemagick imap imlib isdnlog ithreads java jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility libcaca lirc lm_sensors logrotate lzw lzw-tiff mad matroska mp3 mpeg mplayer musepack musicbrainz mysql ncurses nls nptl nptlonly nsplugin offensive ogg opengl pam pcre pdf pdflib perl png ppds pppd python qt quicktime rar readline reflection sasl sdl session spell spl sql sse3 ssl subversion tcpd theora threads tiff truetype-fonts type1-fonts unicode usb userlocales vcd vorbis wxgtk1 x264 xcomposite xine xml xml2 xmms xorg xosd xpm xscreensaver xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_de lirc_devices_hauppauge_dvb userland_GNU video_cards_fglrx" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS Created attachment 89941 [details]
config log of the failed build
I am also hitting this problem. It looks like three of the reporters are running GCC 4.1.1 (myself included). Toth, what about you? Seems most likely that this is toolchain related. cursor.o is being compiled -fPIC yet compiler warns that it needs to be compiled -fPIC. Again, this suggests compiler problem. I confirmed that switching back to GCC 3.4.3 temporarily allowed me to build psycopg cleanly. This is a workaround but not a fix. Yeah, i made a fresh new install (~amd64), so i use the latest available GCC. If i build it with an older GCC, it wont make any problem? I mean this is a test server, i use it to test my python programs, so i need a well worker solution. :) Can't see how it would cause any problem to build psycopg with an old GCC. It's just a workaround, but it shouldn't cause any runtime problems, and so far it's working for me. Just don't forget to gcc-config back to 4.1.1 when you're done. Fixed in portage. |