An error on building the GCC tic6x cross compiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello:

I tried to build tic6x cross compiler in recent days, but always fail.
this is my building step:
   cd build-binutils/
   ../binutils-2.22/configure --prefix=/usr/local/tic6x/ --target=tic6x-elf
   make all
   make install
   cd .. 
   cd build-gmp/
   export PATH=$PATH:/usr/local/tic6x
   export PATH=$PATH:/usr/local/tic6x/bin
   ../gmp/configure --prefix=/usr/local/tic6x/gmp
   ../gmp/configure --prefix=/usr/local/tic6x/gmp
   make
   make install
   cd ..
   cd build-mpfr/
   ../mpfr/configure --prefix=/usr/local/tic6x/mpfr --with-gmp=/usr/local/tic6x/gmp
   make
   make install
   cd ..
   cd build-mpc
   ../mpc/configure --prefix=/usr/local/tic6x/mpc --with-gmp=/usr/local/tic6x/gmp --with-mpfr=/usr/local/tic6x/mpfr --enable-static --disable-shared
   make
   make install
   cd ..
   cd build-gcc
   ../gcc-4.7.2/configure --target=tic6x-elf --prefix=/usr/localti/c6x --enable-languages="c,c++" --with-newlib --with-header=../newlib-1.20.0/newlib/libc/include --with-gmp=/usr/local/tic6x/gmp --with-mpfr=/usr/local/tic6x/mpfr --with-   mpc=/usr/local/tic6x/mpc
   make all-gcc
   make install-gcc
   cd ..
   cd build-newlib/
   export LD_LIBRARY_PATH=$LD_LIBRARY_PATH}:/usr/local/tic6x/gmp/lib:/usr/local/tic6x/mpfr/lib:/usr/local/tic6x/mpc/lib
   ln -s /usr/local/tic6x/bin/tic6x-elf-gcc /usr/local/tic6x/bin/tic6x-elf-cc
   ../newlib-1.20.0/configure --target=tic6x-elf --prefix=/usr/local/tic6x/
   make all install
   cd ..
   cd build-gcc
   make all install

after installation, I haved compile the .c file. Then the error occur. The message as shown in below:

$ tic6x-elf-gcc helloworld.c 
/usr/local/c6x/lib/gcc/tic6x-elf/4.7.2/../../../../tic6x-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000008100
/usr/local/c6x/lib/gcc/tic6x-elf/4.7.2/../../../../tic6x-elf/lib/libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
/home/spirits/src/build-newlib/tic6x-elf/newlib/libc/reent/../../../../../newlib-1.20.0/newlib/libc/reent/sbrkr.c:58: undefined reference to `sbrk'
/usr/local/c6x/lib/gcc/tic6x-elf/4.7.2/../../../../tic6x-elf/lib/libc.a(lib_a-writer.o): In function `_write_r':
/home/spirits/src/build-newlib/tic6x-elf/newlib/libc/reent/../../../../../newlib-1.20.0/newlib/libc/reent/writer.c:58: undefined reference to `write'
/usr/local/c6x/lib/gcc/tic6x-elf/4.7.2/../../../../tic6x-elf/lib/libc.a(lib_a-closer.o): In function `_close_r':
/home/spirits/src/build-newlib/tic6x-elf/newlib/libc/reent/../../../../../newlib-1.20.0/newlib/libc/reent/closer.c:53: undefined reference to `close'
/usr/local/c6x/lib/gcc/tic6x-elf/4.7.2/../../../../tic6x-elf/lib/libc.a(lib_a-fstatr.o): In function `_fstat_r':
/home/spirits/src/build-newlib/tic6x-elf/newlib/libc/reent/../../../../../newlib-1.20.0/newlib/libc/reent/fstatr.c:62: undefined reference to `fstat'
/usr/local/c6x/lib/gcc/tic6x-elf/4.7.2/../../../../tic6x-elf/lib/libc.a(lib_a-isattyr.o): In function `_isatty_r':
/home/spirits/src/build-newlib/tic6x-elf/newlib/libc/reent/../../../../../newlib-1.20.0/newlib/libc/reent/isattyr.c:58: undefined reference to `isatty'
/usr/local/c6x/lib/gcc/tic6x-elf/4.7.2/../../../../tic6x-elf/lib/libc.a(lib_a-lseekr.o): In function `_lseek_r':
/home/spirits/src/build-newlib/tic6x-elf/newlib/libc/reent/../../../../../newlib-1.20.0/newlib/libc/reent/lseekr.c:58: undefined reference to `lseek'
/usr/local/c6x/lib/gcc/tic6x-elf/4.7.2/../../../../tic6x-elf/lib/libc.a(lib_a-readr.o): In function `_read_r':
/home/spirits/src/build-newlib/tic6x-elf/newlib/libc/reent/../../../../../newlib-1.20.0/newlib/libc/reent/readr.c:58: undefined reference to `read'
collect2: error:ld return 1

Every thing is OK when I build arm cross compiler and compile the .c or .cpp files.
Can you tell me what happen and how to solve it ?
Thanks.

Best Regards.

W.J. Wang



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux