From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GaD40-0002CM-Il for garchives@archives.gentoo.org; Wed, 18 Oct 2006 15:10:37 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9IF88Uh027337; Wed, 18 Oct 2006 15:08:08 GMT Received: from windmuehlgasse.getdesigned.at (chello062178000135.1.11.univie.teleweb.at [62.178.0.135]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9IF87wE013268 for ; Wed, 18 Oct 2006 15:08:07 GMT Received: (qmail 24726 invoked from network); 18 Oct 2006 18:33:54 +0200 Received: from watson64.local (HELO ?192.168.1.5?) (192.168.1.5) by tuxserver.local with SMTP; 18 Oct 2006 18:33:54 +0200 Message-ID: <45364363.3010601@getdesigned.at> Date: Wed, 18 Oct 2006 17:08:19 +0200 From: Sebastian Redl User-Agent: Thunderbird 1.5.0.7 (X11/20061009) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 To: gentoo-amd64@lists.gentoo.org Subject: [gentoo-amd64] -fPIC - Toolchain broken? X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: de1e3028-434f-4221-9e56-450b5e1462e1 X-Archives-Hash: cc7756d1fda2f4a17ce7283d7c6146cd Hi, While trying to compile OpenOffice.org, I was blocked by the inability to compile icu-3.4.1. The compilation fails on linking the third library it tries to build, libicui18n.so, with this message: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object. /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: ucol_wgt.o: relocation R_X86_64_PC32 against `compareRanges' 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 Normally, that would simply indicate that a source file was compiled without -fPIC, which is wrong. However, that's not the case here: manual checking of the compiler command lines of all previous sources shows that they were all, in fact, compiled with -fPIC and -DPIC. I even manually removed the previously built libraries (libicudata.so and libicuuc.so) and relinked them with -fPIC, although I don't even know whether the flag has any influence on linking. Same error. I have the same problem when manually trying to compile any Mozilla-based application. However, most programs and libraries build fine - I just finished merging KOffice without any problems. So, is my toolchain screwed up? Am I doing something wrong? Is the icu ebuild simply broken? Here's my emerge --info: Portage 2.1.1-r1 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2 .6.14-gentoo-r5 x86_64) ================================================================= System uname: 2.6.14-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.5 Last Sync: Tue, 17 Oct 2006 19:59:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.3.5-r2, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] 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-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O0 -pipe -march=athlon64" 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/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O0 -pipe -march=athlon64" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch" GENTOO_MIRRORS="http://www.distfiles.local http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" LINGUAS="en en_GB de de_AT" 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/overlays/personal /usr/local/overlays/gentoo-java-experimental /usr/local/overlays/mozilla" SYNC="rsync://192.168.1.1/gentoo-portage" USE="amd64 X acl acpi alsa apache2 avi bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli cracklib crypt css cups dbus dlloader dri dvd dvdr dvdread elibc_glibc emboss encode fam firefox flac foomatic fortran gdbm gif gpm gstreamer gtk2 hal imap input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse ipv6 isdnlog jack java jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kernel_linux libg++ linguas_de linguas_de_AT linguas_en linguas_en_GB logitech-mouse mad mikmod mng mono mozilla mp3 mpeg mysql mysqli ncurses nls nptl nptlonly offensive ogg oggvorbis openal opengl pam pcre perl png ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session sndfile soundtouch spell spl sqlite ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_fglrx video_cards_radeon vorbis wmf xine xinerama xml xorg xosd xpm xprint xscreensaver xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS The -O0 was a temporary thing that I need to get rid of; most of my system is -O3 -fomit-frame-pointer. Thanks, Sebastian -- gentoo-amd64@gentoo.org mailing list