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? Thanks chris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.zytor.com/pipermail/klibc/attachments/20100416/a0f86c63/attachment.htm>
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
Attached is the log with command: make CROSS_COMPILE=mipsel-linux- ARCH=mips KBUILD_VERBOSE=1 On Fri, Apr 16, 2010 at 1:32 PM, maximilian attems <max at stro.at> wrote:> On Fri, Apr 16, 2010 at 01:38:27PM -0700, Lei Sun wrote: > > > > Thanks for the reply > > make CROSS_COMPILE=mipsel-linux- ARCH=mips KBUILD_VERBOSE=1 > > Gave me the same error. > > please post full buildlog. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.zytor.com/pipermail/klibc/attachments/20100416/4e5b9bd3/attachment-0001.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: klibc_make.log Type: application/octet-stream Size: 238978 bytes Desc: not available URL: <http://www.zytor.com/pipermail/klibc/attachments/20100416/4e5b9bd3/attachment-0001.obj>