LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Issue while cross compiling kernel on fedara 14 host (https://www.linuxquestions.org/questions/programming-9/issue-while-cross-compiling-kernel-on-fedara-14-host-861565/)

sameersbn 02-09-2011 03:33 AM

Issue while cross compiling kernel on fedara 14 host
 
Hello,

I am cross compiling a linux kernel for the mips platform. My host is a fedora 14 system. I have installed the tool chain and everything. When i try to build the kernel i get the following error message.

HOSTCC -static scripts/basic/fixdep
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:377:2: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/basic/fixdep.c:379:4: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [scripts/basic/fixdep] Error 1
make[1]: *** [scripts_basic] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.

If i set up the toolchain on a fedora 13 machine with the exact same procedure, the cross compilation works fine. I can't figure out how this can be fixed. I am currently considering downgrading to fedora 13 due to this.

I had earlier seen the exact same issue while cross compiling some software packages. I thought that there we issues in the build scripts of the packages. But now it is getting clearer that there is something to do with the packages installed with fedora 14.

Please respond with your comments

Regards
~Sameer

sunnydrake 02-09-2011 06:39 AM

install glibc-devel

sameersbn 03-23-2011 08:20 AM

Installing glibc-static fixed the issue


All times are GMT -5. The time now is 08:53 PM.