View previous topic :: View next topic |
Author |
Message |
robinswan Tux's lil' helper
Joined: 14 Oct 2005 Posts: 139
|
Posted: Mon Dec 10, 2007 1:17 pm Post subject: arm-softfloat-linux-uclibc-gcc can't recognize cross lib? |
|
|
I have success build the crossdev (stage3) arm toolchain by cross deploy "arm-softfloat-linux-uclibc",
and I test the toolchain by a simple hello world.
hello.c
Code: | #include <stdio.h>
int main(int argc, char **argv)
{
printf("helloworld!\n");
return 0;
} |
and I try to compile and hello.c and hope the cross gcc generate the ARM excutable binary.
Quote: | $ arm-softfloat-linux-uclibc-gcc -o hello hello.c |
but the arm-softfloat-linux-uclibc-ld can't recognize it's cross lib was in "/usr/arm-softfloat-linux-uclibc"
Quote: | /usr/libexec/gcc/arm-softfloat-linux-uclibc/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status |
how should i configure the cross toolchain, let the arm-softfloat-linux-uclibc-ld automaticlly link to the cross lib directory ? |
|
Back to top |
|
|
billium Apprentice
Joined: 22 Mar 2003 Posts: 185
|
Posted: Fri Dec 21, 2007 12:49 pm Post subject: |
|
|
Quote: | I have success build the crossdev (stage3) arm toolchain by cross deploy "arm-softfloat-linux-uclibc" |
That is impressive!
What versions of gcc and binutils did you select, and what is your host architecture?
Thanks
Billy |
|
Back to top |
|
|
robinswan Tux's lil' helper
Joined: 14 Oct 2005 Posts: 139
|
Posted: Sat Dec 22, 2007 3:03 am Post subject: |
|
|
billium wrote: | Quote: | I have success build the crossdev (stage3) arm toolchain by cross deploy "arm-softfloat-linux-uclibc" |
That is impressive!
What versions of gcc and binutils did you select, and what is your host architecture?
Thanks
Billy |
thanks for attention! the below code segment is my command line to install crossdev.
Code: | CHOST="i686-pc-linux-gnu" \
CTARGET="arm-softfloat-linux-uclibc" \
UCLIBC_CPU=ARM926T \
USE="-*" \
crossdev --stage3 \
--binutils 2.17 \
--gcc 3.4.6-r2 \
--kernel 2.6.22-r2 \
--libc 0.9.28.3 \
--target arm-softfloat-linux-uclibc |
|
|
Back to top |
|
|
|