problem about cross gcc

VND Zhang ShaoBo ShaoBo.Zhang@alcatel-sbell.com.cn
Wed Sep 25 17:49:00 GMT 2002


I want to build a cross compiler  in linux for powerpc/vxworks. I download the binutils-2.9.1, gcc-2.95.1,newlib-1.8.2. I successful build the cross
compiler powerpc-eabi-gcc as following:
1.build the binutils
2.build the gcc-2.95.1 to get powerpc-eabi-gcc
3.build the newlib using powerpc-eabi-gcc
4.rebuild the gcc-2.95.1 to get the powerpc-eabi-gcc

then ,i program test program, but  i met some error when i using the powerpc-eabi-gcc to build the test program 
the error is as following:

powerpc-eabi-gcc  -I/usr/local/src/gnu/newlib-1.8.2/newlib/libc/include -o hello\
hello.c
/usr/local/powerpc/powerpc-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 01800074
/tmp/ccD5t0Jf.o: In function `main':
/tmp/ccD5t0Jf.o(.text+0x24): undefined reference to `printf'
collect2: ld returned 1 exit status
make: *** [hello] Error 1


Now, i don't know if the powerpc-eabi-gcc is build correctly or not? 
everyone's advice is appreciated!

ZhangShaoBo

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list