Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems emerging, recompile with -fPIC SOLVED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
JoeyJoeJo
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 155
Location: Fairfax, Va

PostPosted: Mon Aug 15, 2005 7:13 pm    Post subject: problems emerging, recompile with -fPIC SOLVED Reply with quote

I'm trying to emerge tiff, but I get the following error. I am emerging this while chrooted in the livecd environment.

Code:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/tif_stream.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
.libs/tif_stream.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libtiffxx.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/tiff-3.7.3/work/tiff-3.7.3/libtiff'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/tiff-3.7.3/work/tiff-3.7.3/libtiff'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/tiff-3.7.3 failed.
!!! Function src_compile, Line 29, Exitcode 2
!!! emake failed


Here are my specifics

Code:

livecd / # emerge info
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.2004110
2-r0, 2.6.11-gentoo-r3-k8 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r3-k8 x86_64
Gentoo Base System version 1.4.16
dev-lang/python:     2.3.4-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="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/share/config /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-03 -pipe -fsigned-char"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/
distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa avi berkdb bitmap-fonts crypt cups eds encode foomaticdb fortr
an gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde lzw lzw-tiff mp3 mpeg nc
urses nls opengl pam pdflib perl png python qt quicktime readline sdl spell ssl
tcpd tiff truetype-fonts type1-fonts usb userlocales xpm xv zlib userland_GNU ke
rnel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVER
LAY


Last edited by JoeyJoeJo on Tue Aug 16, 2005 12:21 pm; edited 5 times in total
Back to top
View user's profile Send private message
JoeyJoeJo
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 155
Location: Fairfax, Va

PostPosted: Mon Aug 15, 2005 8:35 pm    Post subject: Reply with quote

Lets add aspell to the list. I get the same error with it.

Code:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/can_have_error-c.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
.libs/can_have_error-c.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libaspell.la] Error 1
make[1]: Leaving directory `/var/tmp/portage/aspell-0.50.5-r4/work/aspell-0.50.5/lib'
make: *** [all-recursive] Error 1

!!! ERROR: app-text/aspell-0.50.5-r4 failed.
!!! Function src_compile, Line 39, Exitcode 2
!!! (no error message)
Back to top
View user's profile Send private message
crazycat
l33t
l33t


Joined: 26 Aug 2003
Posts: 838
Location: Hamburg, Germany

PostPosted: Mon Aug 15, 2005 9:26 pm    Post subject: Reply with quote

I dont want to be rude but can you use search function?
Back to top
View user's profile Send private message
JoeyJoeJo
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 155
Location: Fairfax, Va

PostPosted: Mon Aug 15, 2005 10:09 pm    Post subject: Reply with quote

Yeah, I've searched, but I haven't come up with anything that helped. One big thing was that some people removed a line from their make.conf files, but I didn't have that line, nor can I remember what that line was at the moment.
Back to top
View user's profile Send private message
crazycat
l33t
l33t


Joined: 26 Aug 2003
Posts: 838
Location: Hamburg, Germany

PostPosted: Mon Aug 15, 2005 10:23 pm    Post subject: Reply with quote

Well you have some other line for cxxflags which you can revert to something conservative and try with that. You can also include fPIC in cflags but it is not needed for every software and can degrade performance in some cases.
Back to top
View user's profile Send private message
ldoe3000
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2005
Posts: 78
Location: Portland, OR

PostPosted: Tue Aug 16, 2005 1:27 am    Post subject: Reply with quote

Something seems strange about your CFLAGS and CXXFLAGS. Please post the contents of your /etc/make.conf file.
Back to top
View user's profile Send private message
JoeyJoeJo
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 155
Location: Fairfax, Va

PostPosted: Tue Aug 16, 2005 3:07 am    Post subject: Reply with quote

Sorry about how this post may come out looking, but I'm using lynx.

# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="-03 -pipe -fsigned-char"
USE="~amd64 kdeenablefinal hal kdexdeltas"
Back to top
View user's profile Send private message
ldoe3000
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2005
Posts: 78
Location: Portland, OR

PostPosted: Tue Aug 16, 2005 5:39 am    Post subject: Reply with quote

According to what I've read, that does not seem right.. I'm no developer, but my understanding is that CFLAGS and CXXFLAGS should either be the same, or CXXFLAGS may have more arguments. For example, here is what I have:

CFLAGS="-O2 -march=athlon64 -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
USE="-gtk -gnome nptl qt kde dvd alsa cdr xmms"
Back to top
View user's profile Send private message
eradicator
Retired Dev
Retired Dev


Joined: 01 Apr 2003
Posts: 144
Location: Berkeley, CA

PostPosted: Tue Aug 16, 2005 9:18 am    Post subject: Reply with quote

that should eb getting built with -fPIC... what's your configure output look like?
_________________
Gentoo Developer: amd64, sparc, sound, toolchain, accessibility
Back to top
View user's profile Send private message
JoeyJoeJo
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 155
Location: Fairfax, Va

PostPosted: Tue Aug 16, 2005 12:16 pm    Post subject: Reply with quote

ldoe3000, that was it! I don't know where I got the CFlags and CXXFlags I had, but I changed then to what it said on the gentoo safe cflags page, and tiff compiled! Thanks so much.

BTW, eradicator, nice name. Is that from the Kids in the Hall?
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Tue Aug 16, 2005 4:58 pm    Post subject: Reply with quote

JoeyJoeJo wrote:
USE="~amd64 kdeenablefinal hal kdexdeltas"


~amd64 is not a USE-flag. If you want unstable packages you should have ACCEPT_KEYWORDS="~amd64".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum