Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2004 14:04:21 +0900
From:      Till Plewe <till@score.is.tsukuba.ac.jp>
To:        freebsd-amd64@freebsd.org
Subject:   profiling on amd64
Message-ID:  <20040518050421.GA75633%till@score.is.tsukuba.ac.jp>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040518050421.GA75633%till>