Bug 3295

Summary: slang fails to build on mipsel
Product: buildroot Reporter: Thomas Petazzoni <thomas.petazzoni>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: 2010.11   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: Buildroot configuration file
slang: fix mips build failure

Description Thomas Petazzoni 2011-02-18 07:35:11 UTC
/home/test/toolchains/br-mipsel-full/usr/bin/mipsel-linux-gcc --sysroot=/home/test/outputs/test-379/host/usr/mipsel-unknown-linux-uclibc/sysroot -o libslang.so -shared -Wl,-soname,libslang.so.1 sldisply.o slerr.o slgetkey.o slmisc.o slsignal.o slsmg.o sltermin.o slutty.o slcurses.o slkeypad.o slkeymap.o slstring.o slmemcmp.o
/home/test/toolchains/br-mipsel-full/usr/bin/../lib/gcc/mipsel-unknown-linux-uclibc/4.4.4/../../../../mipsel-unknown-linux-uclibc/bin/ld: sldisply.o: relocation R_MIPS_HI16 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
sldisply.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libslang.so] Error 1
make[1]: Leaving directory `/home/test/outputs/test-379/build/slang-1.4.5'
make: *** [/home/test/outputs/test-379/build/slang-1.4.5/.stamp_built] Error 2
Comment 1 Thomas Petazzoni 2011-02-18 07:36:27 UTC
Logfile at http://free-electrons.com/~thomas/pub/br-bugs/bug-3295.log.bz2
Comment 2 Thomas Petazzoni 2011-02-18 07:36:48 UTC
Created attachment 2989 [details]
Buildroot configuration file
Comment 3 Sérgio 2011-02-19 03:49:08 UTC
(In reply to comment #0)
> /home/test/toolchains/br-mipsel-full/usr/bin/../lib/gcc/mipsel-unknown-linux-uclibc/4.4.4/../../../../mipsel-unknown-linux-uclibc/bin/ld:
> sldisply.o: relocation R_MIPS_HI16 against `a local symbol' can not be used
> when making a shared object; recompile with -fPIC
> sldisply.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[1]: *** [libslang.so] Error 1

I also see (on mipsel) this "compile error", also have other "compile error"
with metacity if you want checkout ?
Comment 4 Gustavo Zacarias 2011-02-25 14:13:28 UTC
Created attachment 3025 [details]
slang: fix mips build failure
Comment 5 Peter Korsgaard 2011-02-25 14:25:52 UTC
Committed, thanks