Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
possible bug? disconnect between snns and flex
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
elknco1
n00b
n00b


Joined: 30 Mar 2005
Posts: 20

PostPosted: Fri Jun 09, 2006 6:56 am    Post subject: possible bug? disconnect between snns and flex Reply with quote

I'm not sure if this is a bug or not.. I get a build failure for sci-mathematics/snns when its trying to link against libfl.a (which is a part of sys-devel/flex). The failure is:
Code:
creating build/temp.linux-x86_64-2.4
creating build/temp.linux-x86_64-2.4/snns
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon64 -pipe -O2 -fPIC -I../kernel/sources -I/usr/include/python2.4 -c snns/krui.c -o build/temp.linux-x86_64-2.4/snns/krui.o
x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all -march=athlon64 -pipe -O2 build/temp.linux-x86_64-2.4/snns/krui.o -L../kernel/sources -lkernel -lfunc -lfl -o build/lib.linux-x86_64-2.4/snns/krui.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/libfl.a(libyywrap.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/libfl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1

!!! ERROR: sci-mathematics/snns-4.2-r7 failed.
!!! Function src_compile, Line 68, Exitcode 1
!!! could not build python extension
!!! If you need support, post the topmost build error, NOT this status message.


The reason is because I don't have -fPIC in my CFLAGS but all the files in the snns package are automatically built with -fPIC. I was reading through some of the threads and it said fPIC would lead to slower binaries but libraries should be built with -fPIC. I was wondering, should libfl.a in the flex package always be built with -fPIC or should the files snns package not be forced to be built with -fPIC?
Back to top
View user's profile Send private message
Thalion
n00b
n00b


Joined: 20 Sep 2003
Posts: 71
Location: not in the USA

PostPosted: Wed Jun 14, 2006 6:55 am    Post subject: Reply with quote

I have the same problem with app-misc/glimpse. Worked around it by adding -fPIC to CFLAGS, reemerging flex, removing -fPIC and proceeding. Emerge barked on me about -fPIC in CFLAGS though, so I've no idea whether it might lead to more breakage.
_________________
'If you gaze into the abyss, the abyss gazes also into you - and then you realize that, all this time, you've been looking at yourself.
Back to top
View user's profile Send private message
elknco1
n00b
n00b


Joined: 30 Mar 2005
Posts: 20

PostPosted: Wed Jun 14, 2006 8:57 am    Post subject: Reply with quote

Thalion wrote:
I have the same problem with app-misc/glimpse. Worked around it by adding -fPIC to CFLAGS, reemerging flex, removing -fPIC and proceeding. Emerge barked on me about -fPIC in CFLAGS though, so I've no idea whether it might lead to more breakage.


yea. I suppose I should just submit it as a bug and see what the devs have to say about it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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