Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nslu2: libz link error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
ekki_123
n00b
n00b


Joined: 04 Jun 2006
Posts: 54
Location: Herxheim, Deutschland

PostPosted: Sat Oct 28, 2006 12:18 pm    Post subject: nslu2: libz link error Reply with quote

Hi.
On a NSLU2 with
2.6.16 #1 PREEMPT Fri Jun 9 07:34:31 PDT 2006 armv5teb XScale-IXP42x Family rev 1 (v5b) Linksys NSLU2 GNU/Linux
kernel, I get the following error when updating with 'emerge -avuDNt world':

Code:

rm -f libz.so libz.so.1
ln -s libz.so.1.2.3 libz.so
ln -s libz.so.1.2.3 libz.so.1
armeb-softfloat-linux-uclibc-gcc -march=armv5t -mtune=xscale -Os -fPIC -DHAS_attribute_visibility -fvisibility=hidden -DNO_vsnprintf -DUSE_MMAP -o example example.o  libz.a
/usr/lib/gcc/armeb-softfloat-linux-uclibc/3.4.4/../../../../armeb-softfloat-linux-uclibc/bin/ld: example: hidden symbol `main' in example.o is referenced by DSO
/usr/lib/gcc/armeb-softfloat-linux-uclibc/3.4.4/../../../../armeb-softfloat-linux-uclibc/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [example] Error 1

!!! ERROR: sys-libs/zlib-1.2.3-r1 failed.
!!! Function src_compile, Line 39, Exitcode 2
!!! (no error message)


Any ideas?



Thanks,
Ekki
Back to top
View user's profile Send private message
CrazyApe
n00b
n00b


Joined: 26 Apr 2003
Posts: 13
Location: Australia

PostPosted: Thu Dec 07, 2006 1:58 pm    Post subject: Reply with quote

It looks like the zlib-1.2.3-r1 update broke something for us uclibc folks.

sys-libs/zlib-1.2.3 builds
sys-libs/zlib-1.2.3-r1 fails

I'm getting the same error on the mipsel arch.

Code:

rm -f libz.so libz.so.1
ln -s libz.so.1.2.3 libz.so
ln -s libz.so.1.2.3 libz.so.1
mipsel-gentoo-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -ftracer -fPIC -DHAS_attribute_visibility -fvisibility=hidden -DNO_vsnprintf -DUSE_MMAP -o example example.o  libz.a
/usr/lib/gcc/mipsel-gentoo-linux-uclibc/3.4.6/../../../../mipsel-gentoo-linux-uclibc/bin/ld: example: hidden symbol `main' in example.o is referenced by DSO
/usr/lib/gcc/mipsel-gentoo-linux-uclibc/3.4.6/../../../../mipsel-gentoo-linux-uclibc/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [example] Error 1

!!! ERROR: sys-libs/zlib-1.2.3-r1 failed.


Keep your eyes on bug 152573, looks like the place to watch.
https://bugs.gentoo.org/show_bug.cgi?id=152573
_________________
Neither logic nor reason can mandate adherence to convention.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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