Gentoo Archives: gentoo-amd64

From: Sebastian Redl <sebastian.redl@×××××××××××.at>
To: gentoo-amd64@l.g.o
Subject: [gentoo-amd64] -fPIC - Toolchain broken?
Date: Wed, 18 Oct 2006 15:10:37
Message-Id: 45364363.3010601@getdesigned.at
1 Hi,
2
3 While trying to compile OpenOffice.org, I was blocked by the inability
4 to compile icu-3.4.1.
5 The compilation fails on linking the third library it tries to build,
6 libicui18n.so, with this message:
7
8 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:
9 warning: creating a DT_TEXTREL in object.
10 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:
11 ucol_wgt.o: relocation R_X86_64_PC32 against `compareRanges' can not be
12 used when making a shared object; recompile with -fPIC
13 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:
14 final link failed: Bad value
15 collect2: ld returned 1 exit status
16
17 Normally, that would simply indicate that a source file was compiled
18 without -fPIC, which is wrong. However, that's not the case here: manual
19 checking of the compiler command lines of all previous sources shows
20 that they were all, in fact, compiled with -fPIC and -DPIC.
21
22 I even manually removed the previously built libraries (libicudata.so
23 and libicuuc.so) and relinked them with -fPIC, although I don't even
24 know whether the flag has any influence on linking. Same error.
25
26 I have the same problem when manually trying to compile any
27 Mozilla-based application. However, most programs and libraries build
28 fine - I just finished merging KOffice without any problems.
29
30 So, is my toolchain screwed up? Am I doing something wrong? Is the icu
31 ebuild simply broken?
32
33 Here's my emerge --info:
34
35 Portage 2.1.1-r1 (default-linux/amd64/2006.1/desktop, gcc-4.1.1,
36 glibc-2.4-r3, 2
37 .6.14-gentoo-r5 x86_64)
38 =================================================================
39 System uname: 2.6.14-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+
40 Gentoo Base System version 1.12.5
41 Last Sync: Tue, 17 Oct 2006 19:59:01 +0000
42 app-admin/eselect-compiler: [Not Present]
43 dev-java/java-config: 1.3.7, 2.0.30
44 dev-lang/python: 2.3.5-r2, 2.4.3-r4
45 dev-python/pycrypto: 2.0.1-r5
46 dev-util/ccache: [Not Present]
47 dev-util/confcache: [Not Present]
48 sys-apps/sandbox: 1.2.17
49 sys-devel/autoconf: 2.13, 2.59-r7
50 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
51 sys-devel/binutils: 2.16.1-r3
52 sys-devel/gcc-config: 1.3.13-r4
53 sys-devel/libtool: 1.5.22
54 virtual/os-headers: 2.6.11-r2
55 ACCEPT_KEYWORDS="amd64"
56 AUTOCLEAN="yes"
57 CBUILD="x86_64-pc-linux-gnu"
58 CFLAGS="-O0 -pipe -march=athlon64"
59 CHOST="x86_64-pc-linux-gnu"
60 CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
61 /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
62 CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
63 /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
64 CXXFLAGS="-O0 -pipe -march=athlon64"
65 DISTDIR="/usr/portage/distfiles"
66 FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox
67 sfperms strict userfetch"
68 GENTOO_MIRRORS="http://www.distfiles.local http://distfiles.gentoo.org
69 http://www.ibiblio.org/pub/Linux/distributions/gentoo"
70 LANG="en_US.utf8"
71 LC_ALL="en_US.utf8"
72 LINGUAS="en en_GB de de_AT"
73 MAKEOPTS="-j2"
74 PKGDIR="/usr/portage/packages"
75 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
76 --compress --force --whole-file --delete --delete-after --stats
77 --timeout=180 --exclude='/distfiles' --exclude='/local'
78 --exclude='/packages'"
79 PORTAGE_TMPDIR="/var/tmp"
80 PORTDIR="/usr/portage"
81 PORTDIR_OVERLAY="/usr/local/overlays/personal
82 /usr/local/overlays/gentoo-java-experimental /usr/local/overlays/mozilla"
83 SYNC="rsync://192.168.1.1/gentoo-portage"
84 USE="amd64 X acl acpi alsa apache2 avi bash-completion berkdb
85 bitmap-fonts bzip2 cairo cdparanoia cdr cli cracklib crypt css cups dbus
86 dlloader dri dvd dvdr dvdread elibc_glibc emboss encode fam firefox flac
87 foomatic fortran gdbm gif gpm gstreamer gtk2 hal imap
88 input_devices_evdev input_devices_joystick input_devices_keyboard
89 input_devices_mouse ipv6 isdnlog jack java jpeg jpeg2k kde
90 kdeenablefinal kdehiddenvisibility kernel_linux libg++ linguas_de
91 linguas_de_AT linguas_en linguas_en_GB logitech-mouse mad mikmod mng
92 mono mozilla mp3 mpeg mysql mysqli ncurses nls nptl nptlonly offensive
93 ogg oggvorbis openal opengl pam pcre perl png ppds pppd python qt qt3
94 qt4 quicktime readline reflection samba sdl session sndfile soundtouch
95 spell spl sqlite ssl svg tcpd theora tiff truetype truetype-fonts
96 type1-fonts udev unicode usb userland_GNU video_cards_fglrx
97 video_cards_radeon vorbis wmf xine xinerama xml xorg xosd xpm xprint
98 xscreensaver xv xvid zlib"
99 Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS,
100 PORTAGE_RSYNC_EXTRA_OPTS
101
102 The -O0 was a temporary thing that I need to get rid of; most of my
103 system is -O3 -fomit-frame-pointer.
104
105 Thanks,
106 Sebastian
107
108 --
109 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] -fPIC - Toolchain broken? "Hemmann
Re: [gentoo-amd64] -fPIC - Toolchain broken? Simon Stelling <blubb@g.o>
[gentoo-amd64] Re: -fPIC - Toolchain broken? Duncan <1i5t5.duncan@×××.net>