From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20564 invoked by alias); 29 Sep 2005 21:25:19 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 20545 invoked by uid 22791); 29 Sep 2005 21:25:15 -0000 Received: from exchange.tridentmicro.com (HELO exchange.tridentmicro.com) (12.146.143.20) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 29 Sep 2005 21:25:15 +0000 Received: from trid-exch.tridentmicro.com ([10.1.222.250]) by exchange.tridentmicro.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 29 Sep 2005 14:25:12 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Fail to compile file with profile for mips system using cross-compiling Date: Thu, 29 Sep 2005 21:25:00 -0000 Message-ID: From: "Aaron Chen" To: "Ian Lance Taylor" Cc: X-SW-Source: 2005-09/txt/msg00219.txt.bz2 With a new version of gcrtl.o, I can now compiled the application now. Thanx for pointing out it. Aaron -----Original Message----- From: Ian Lance Taylor [mailto:ian@airs.com]=20 Sent: Thursday, September 29, 2005 10:52 AM To: Aaron Chen Cc: gcc-help@gcc.gnu.org Subject: Re: Fail to compile file with profile for mips system using cross-compiling "Aaron Chen" 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 >=20 > 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