Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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.
../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
Old 02-10-2011, 07:20 AM   #2
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 220

Original Poster
Rep: Reputation: 32

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

i386-linux-gcc -nostdlib -nostartfiles -r -o /home/john/temporal/CROSS/build-glibc/elf/ '-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.


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

All times are GMT -5. The time now is 03:09 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