public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <ian@airs.com>
To: "Aaron Chen" <AaronC@tridentmicro.com>
Cc: <gcc-help@gcc.gnu.org>
Subject: Re: Fail to compile file with profile for mips system using cross-compiling
Date: Thu, 29 Sep 2005 17:52:00 -0000	[thread overview]
Message-ID: <m3wtkzyd65.fsf@gossamer.airs.com> (raw)
In-Reply-To: <C9F5BF5D78087146A4AB362E9A2BFE194F7E79@trid-exch.tridentmicro.com>

"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

  reply	other threads:[~2005-09-29 17:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-29  5:00 Aaron Chen
2005-09-29 17:52 ` Ian Lance Taylor [this message]
2005-09-29 21:25 Aaron Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3wtkzyd65.fsf@gossamer.airs.com \
    --to=ian@airs.com \
    --cc=AaronC@tridentmicro.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).