public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-amd64] -fPIC - Toolchain broken?
@ 2006-10-18 15:08 Sebastian Redl
  2006-10-18 15:28 ` Hemmann, Volker Armin
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Sebastian Redl @ 2006-10-18 15:08 UTC (permalink / raw
  To: gentoo-amd64

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



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2006-10-23 15:27 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-18 15:08 [gentoo-amd64] -fPIC - Toolchain broken? Sebastian Redl
2006-10-18 15:28 ` Hemmann, Volker Armin
2006-10-18 15:53 ` Simon Stelling
2006-10-18 16:08   ` Simon Stelling
2006-10-18 17:41   ` Sebastian Redl
2006-10-18 18:32     ` Simon Stelling
2006-10-18 21:21 ` [gentoo-amd64] " Duncan
2006-10-19  9:54   ` Sebastian Redl
2006-10-19 13:11     ` Conway S. Smith
2006-10-19 15:42       ` Simon Stelling
2006-10-19 20:43         ` Duncan
2006-10-20  9:10           ` Simon Stelling
2006-10-23 14:20           ` Kevin F. Quinn
2006-10-23 15:22             ` Duncan
2006-10-19 20:33     ` Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox