[klibc] klibc-1.5.17 build failure on mips

maximilian attems max at stro.at
Fri Apr 16 13:15:37 PDT 2010


On Fri, Apr 16, 2010 at 11:57:46AM -0700, Lei Sun wrote:
> Hi:
>   I downloaded klibc-1.5.17 and try to cross-compiled it for MIPS.  Got
> following errors:
> 
> usr/klibc/exit.o: In function `exit':
> exit.c:(.text+0x40): undefined reference to `_exit'
> usr/klibc/execl.o: In function `execl':
> execl.c:(.text+0x80): undefined reference to `execve'
> usr/klibc/execle.o: In function `execle':
> execle.c:(.text+0x84): undefined reference to `execve
> 
> ........
> 
> I am using gcc-4.4.3 toolchain. for kernel 2.6.31. My build command is:
> 
> make CROSS_COMPILE=mipsel-linux- KLIBCARCH=mips KBUILD_VERBOSE=1
> 
> Googled around and saying that it might work if i disable distcc.
> So i added
> 
> make CROSS_COMPILE=mipsel-linux- KLIBCARCH=mips KBUILD_VERBOSE=1
> FEATURES="-distcc". But no difference.
> 
> Any idea what caused this?

try to build with ARCH=mips, that's how it builds natively fine:
https://buildd.debian.org/fetch.cgi?pkg=klibc;ver=1.5.17-4;arch=mips;stamp=1270318769



More information about the klibc mailing list