Visit the LQ Articles and Editorials section
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-09-2011, 04:33 AM   #1
LQ Newbie
Registered: Jun 2005
Location: Bangalore, India
Distribution: Fedora
Posts: 4

Rep: Reputation: 0
Issue while cross compiling kernel on fedara 14 host


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

Old 02-09-2011, 07:39 AM   #2
Registered: Jul 2009
Location: Kiev,Ukraine
Distribution: Ubuntu,Slax,RedHat
Posts: 289
Blog Entries: 1

Rep: Reputation: 41
install glibc-devel
Old 03-23-2011, 09:20 AM   #3
LQ Newbie
Registered: Jun 2005
Location: Bangalore, India
Distribution: Fedora
Posts: 4

Original Poster
Rep: Reputation: 0
Installing glibc-static fixed the issue


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Cross compiling a kernel for an HP Jornada 728 Semash! Linux - General 0 10-09-2009 03:49 AM
Help cross compiling a new kernel for an NSLU2 (ixp4xx) with make-kpkg matt.smith Linux - Embedded & Single-board computer 0 07-06-2009 10:50 PM
cross-compiling modules for a preemptive kernel(2.6.23) Trixy_Tree Linux - Embedded & Single-board computer 1 04-07-2009 11:47 AM
Compiling Linux kernel using Cross Compiler shilu72000 Linux - Newbie 4 05-26-2008 01:45 PM
Problem Compiling GCC as cross comp (mkdir issue) elyk1212 Linux - Desktop 3 10-01-2006 04:46 AM

All times are GMT -5. The time now is 09:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration