From owner-freebsd-sparc64@FreeBSD.ORG Sun Feb 5 10:24:40 2006 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1523516A423 for ; Sun, 5 Feb 2006 10:24:40 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF7CC43D48 for ; Sun, 5 Feb 2006 10:24:38 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) by newtrinity.zeist.de (8.12.11/8.12.11/ZEIST.DE) with ESMTP id k15AObNg003978; Sun, 5 Feb 2006 11:24:37 +0100 (CET) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.11/8.12.10/Submit) id k15AOWCD003977; Sun, 5 Feb 2006 11:24:32 +0100 (CET) (envelope-from marius) Date: Sun, 5 Feb 2006 11:24:32 +0100 From: Marius Strobl To: Andreas Tobler Message-ID: <20060205112432.A3868@newtrinity.zeist.de> References: <43E3D228.6060801@pop.agri.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <43E3D228.6060801@pop.agri.ch>; from toa@pop.agri.ch on Fri, Feb 03, 2006 at 10:59:04PM +0100 X-AntiVirus-modified: yes X-AntiVirus: checked by AntiVir Milter (version: 1.1.2-1; AVE: 6.33.0.31; VDF: 6.33.0.204; host: newtrinity.zeist.de) Cc: freebsd-sparc64@freebsd.org Subject: Re: profiling with cc X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Feb 2006 10:24:40 -0000 On Fri, Feb 03, 2006 at 10:59:04PM +0100, Andreas Tobler wrote: > Hello, > > I just wonder what I do wrong. > > I try to compile a simple hello.c with -pg and I fail with the following: > > [enterprise:~] andreast% cc hello.c -O2 -pg -fno-show-column -o hello.exe > /var/tmp//ccwucjWJ.o(.text+0xc): In function `main': > : undefined reference to `_mcount' > /usr/lib/libc_p.a(__sparc_utrap_setup.po)(.text+0x8): In function > `__sparc_utrap_setup': > : undefined reference to `_mcount' > /usr/lib/libc_p.a(gmon.po)(.text+0x8): In function `monstartup': > : undefined reference to `_mcount' > /usr/lib/libc_p.a(gmon.po)(.text+0x1a8): In function `_mcleanup': > : undefined reference to `_mcount' > /usr/lib/libc_p.a(gmon.po)(.text+0x3e8): In function `moncontrol': > : undefined reference to `_mcount' > /usr/lib/libc_p.a(gmon.po)(.text+0x468): more undefined references to > `_mcount' follow > > [enterprise:~] andreast% cat hello.c > #include > int main (void) > { > printf("hello\n"); > return 1; > } > > [enterprise:~] andreast% cc -v > Using built-in specs. > Configured with: FreeBSD/sparc64 system compiler > Thread model: posix > gcc version 3.4.4 [FreeBSD] 20050518 > > The machine I use for is a enterprise 2, > [enterprise:~] andreast% uname -ra > FreeBSD enterprise.andreas.nets 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu > Feb 2 07:18:49 CET 2006 > andreast@enterprise.andreas.nets:/usr/obj/home/andreast/devel/src/sys/GENERIC > sparc64 > > Is there something known about this? Do I do something wrong when I > buildworld? The only known thing to me is the modification of CFLAGS= -O > -pipe. > Userland profiling simply isn't implemented for FreeBSD/sparc64 so far. Marius -- This mail was scanned by AntiVir Milter. This product is licensed for non-commercial use. See www.antivir.de for details.