| View previous topic :: View next topic |
| Author |
Message |
elknco1 n00b

Joined: 30 Mar 2005 Posts: 20
|
Posted: Fri Jun 09, 2006 6:56 am Post subject: possible bug? disconnect between snns and flex |
|
|
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 |
|
 |
Thalion n00b


Joined: 20 Sep 2003 Posts: 71 Location: not in the USA
|
Posted: Wed Jun 14, 2006 6:55 am Post subject: |
|
|
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 |
|
 |
elknco1 n00b

Joined: 30 Mar 2005 Posts: 20
|
Posted: Wed Jun 14, 2006 8:57 am Post subject: |
|
|
| 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 |
|
 |
|
|
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
|
|