LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2011, 08:22 AM   #1
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 227

Rep: Reputation: 32
Doubt with cross compile


Hello everybody

I would like to make my own cross compile for Geode (X86).
I have read several manuals first step is download binutils ans compile.
For example: binutils-2.19
../build-binutils/configure --target=i386-geode-linux --prefix=$PREFIX
make && make install

OK, next step is build bootstrap gcc.
gcc-4.5.0
../build-gcc/configure --target=i386-geode-linux --prefix=$PREFIX --without-headers --with-gnu-as --with-gnu-ld --disable-shared --disable-threads.
make all-gcc && make install-gcc

Ok, next step is building linux kernel to obtain linus headers.
export ARCH=i386
export CROSS_COMPILE=i386-geode-linux-
"Configure kernel with my own settings"
make dep && make clean && make zImage

Well, in this point i have a problem.

CC arch/x86/boot/video.o
arch/x86/boot/boot.h: message assembler:
arch/x86/boot/boot.h: 112: Error: Bad register name '%dil'

And finally, when I have tried to compile glibc, I have this error:

gconv_db.c:422:22: Error: 'INT_MAX' not define

Could somebody help me?

Best regards
John
 
Old 02-10-2011, 06:20 AM   #2
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 227

Original Poster
Rep: Reputation: 32
Hello,

Well, I have compile gcc-bootstrap without problems but now, I have a problem with Glibc.

Quote:
i386-linux-gcc -nostdlib -nostartfiles -r -o /home/john/temporal/CROSS/build-glibc/elf/librtld.map.o '-Wl,-(' /home/john/temporal/CROSS/build-glibc/elf/dl-allobjs.os /home/john/temporal/CROSS/build-glibc/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/home/john/temporal/CROSS/build-glibc/elf/librtld.mapT
/home/john/temporal/CROSS/result/i386-linux/lib/gcc/i386-linux/4.5.0/../../../../i386-linux/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
Could somebody help me why does not find libgcc?

Best regards.
 
  


Reply



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
Cross-compile Slackware cpuobsessed Slackware 4 11-10-2007 06:08 PM
How to cross compile? jiyun0121 Linux - General 3 09-01-2005 06:15 PM
Qt Cross Compile werewolfolondon Linux - Software 2 02-25-2005 01:01 PM
cross compile zaicheke Linux - Software 7 01-20-2005 08:23 PM
How to cross-compile? karfei00 Linux - Laptop and Netbook 2 06-03-2004 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration