This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: An error on building the GCC tic6x cross compiler
- From: Kai Ruottu <kai dot ruottu at wippies dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 12 Oct 2012 15:51:19 +0300
- Subject: Re: An error on building the GCC tic6x cross compiler
- References: <1350028064.5058.m9802119@mail.ntust.edu.tw>
12.10.2012 10:47, m9802119 kirjoitti:
> hello:
>
> I tried to build tic6x cross compiler in recent days, but always fail.
>
> 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'
> 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 ?
>
You should learn what a "real target" is and how to link apps for it,
what are start files, 'crt*.o', what
low-level routines for the hardware, linker scripts etc...