Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82646 - qhull fails during emerge; -fPIC error
Summary: qhull fails during emerge; -fPIC error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-02-19 22:32 UTC by Jennifer
Modified: 2005-02-22 13:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jennifer 2005-02-19 22:32:21 UTC
When trying to emerge qhull on my amd 64 system I get the following error

c++ -shared -Xlinker -soname -Xlinker libqhull.so -o libqhull.so user.o global.o stat.o io.o geom2.o poly2.o merge.o qhull.o geom.o poly.o qset.o mem.o
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: user.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
user.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libqhull.so] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: media-libs/qhull-3.1-r1 failed.
!!! Function src_compile, Line 40, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. Tried to emerge octave-forge with qhull flag set
2. 
3.

Actual Results:  
qhull compile would fail with the error message mentioned above

Expected Results:  
emerge completely without errors

I am reporting this bug as suggested by the amd64 tech notes
(http://www.gentoo.org/proj/en/base/amd64/technotes.xml?part=2&chap=3#doc_chap9)
and a work around is to compile qhull with CFLAGS='-fPIC' included.  The emerge
then sucessfully compiles
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2005-02-22 13:24:10 UTC
Fixed in CVS :-)
Wait an hour, emerge sync and try again...