LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

Rep: Reputation: 0
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
 
Old 02-09-2011, 06:39 AM   #2
sunnydrake
Member
 
Registered: Jul 2009
Location: Kiev,Ukraine
Distribution: Ubuntu,Slax,RedHat
Posts: 288
Blog Entries: 1

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

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


Reply


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 02: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 09:50 PM
cross-compiling modules for a preemptive kernel(2.6.23) Trixy_Tree Linux - Embedded & Single-board computer 1 04-07-2009 10:47 AM
Compiling Linux kernel using Cross Compiler shilu72000 Linux - Newbie 4 05-26-2008 12:45 PM
Problem Compiling GCC as cross comp (mkdir issue) elyk1212 Linux - Desktop 3 10-01-2006 03:46 AM


All times are GMT -5. The time now is 03:26 AM.

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