From owner-freebsd-amd64@FreeBSD.ORG Mon May 17 22:53:04 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A5F716A4CF for ; Mon, 17 May 2004 22:53:04 -0700 (PDT) Received: from plewe.is.tsukuba.ac.jp (plewe.is.tsukuba.ac.jp [130.158.81.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EA3143D5A for ; Mon, 17 May 2004 22:53:02 -0700 (PDT) (envelope-from till@plewe.is.tsukuba.ac.jp) Received: from plewe.is.tsukuba.ac.jp (localhost [127.0.0.1]) i4I54Lau075728 for ; Tue, 18 May 2004 14:04:21 +0900 (JST) (envelope-from till@plewe.is.tsukuba.ac.jp) Received: (from till@localhost) by plewe.is.tsukuba.ac.jp (8.12.11/8.12.11/Submit) id i4I54Le8075727 for freebsd-amd64@freebsd.org; Tue, 18 May 2004 14:04:21 +0900 (JST) (envelope-from till) Date: Tue, 18 May 2004 14:04:21 +0900 From: Till Plewe To: freebsd-amd64@freebsd.org Message-ID: <20040518050421.GA75633%till@score.is.tsukuba.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: profiling on amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: till@score.is.tsukuba.ac.jp List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 May 2004 05:53:04 -0000 The program "int main(){return 0;}" fails to compile if I use the option "-pg". The error message I get starts with: # gcc -pg -o test test.c /var/tmp//ccTPXtQI.o: In function `main': /var/tmp//ccTPXtQI.o(.text+0x5): undefined reference to `mcount' /usr/lib/libc_p.a(gmon.po): In function `monstartup': gmon.po(.text+0xa): undefined reference to `mcount ... I am using 5.2-CURRENT cvsuped 3 hours ago. It looks like a gcc bug since there are several related bug reports for other OSs (the once I looked were all for 64bit architectures). Does anybody know how to fix this? TIA - Till