This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fail to compile file with profile for mips system using cross-compiling


"Aaron Chen" <AaronC@tridentmicro.com> writes:

> The steps to reproduce the error:
> 1.mips_lexra_fp_be-gcc -c -pg -g test.c
> 2.mips_lexra_fp_be-gcc -pg -o test test.o
> 
> Then get the following error messages:
> ######
> /projects/mips/lexra_fp_be/bin/../target/usr/lib/gcrt1.o: In function `__gmon_start__':
> gmon-start.c(.text+0xb8): undefined reference to `_start'
> collect2: ld returned 1 exit status
> #######

In general profiling requires library support.  gcc will do its best
to set up the profiling call, but if you don't have the right support
in the library and the OS it will fail.  In particular the gcrt1.o
file did not come from gcc.  Sorry I can't be more helpful.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]