Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
arm-softfloat-linux-uclibc-gcc can't recognize cross lib?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
robinswan
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2005
Posts: 139

PostPosted: Mon Dec 10, 2007 1:17 pm    Post subject: arm-softfloat-linux-uclibc-gcc can't recognize cross lib? Reply with quote

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
View user's profile Send private message
billium
Apprentice
Apprentice


Joined: 22 Mar 2003
Posts: 185

PostPosted: Fri Dec 21, 2007 12:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
robinswan
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2005
Posts: 139

PostPosted: Sat Dec 22, 2007 3:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum