This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/38703] New: testsuite __gnu_mcount_nc link error when profiling on arm
- From: "laurent at guerby dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jan 2009 15:06:15 -0000
- Subject: [Bug target/38703] New: testsuite __gnu_mcount_nc link error when profiling on arm
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Current debian lenny comes with glibc-2.7 and does not provide __gnu_mcount_nc
which will come with 2.8 as discussed on gcc-patches here:
http://gcc.gnu.org/ml/gcc-patches/2008-10/msg00319.html
But this means that all the tests from gcc testsuite using -p fail to link, eg:
Executing on host: /home/guerby/build-142984/gcc/xgcc
-B/home/guerby/build-142984/gcc/
/home/guerby/trunk/gcc/testsuite/gcc.dg/20021014-1.c -O2 -p -lm -o
./20021014-1.exe (timeout = 300)
/tmp/cc1YND67.o: In function `foo':^M
20021014-1.c:(.text+0x4): undefined reference to `__gnu_mcount_nc'^M
/tmp/cc1YND67.o: In function `main':^M
20021014-1.c:(.text+0x18): undefined reference to `__gnu_mcount_nc'^M
collect2: ld returned 1 exit status^M
compiler exited with status 1
output is:
/tmp/cc1YND67.o: In function `foo':^M
20021014-1.c:(.text+0x4): undefined reference to `__gnu_mcount_nc'^M
/tmp/cc1YND67.o: In function `main':^M
20021014-1.c:(.text+0x18): undefined reference to `__gnu_mcount_nc'^M
collect2: ld returned 1 exit status^M
FAIL: gcc.dg/20021014-1.c (test for excess errors)
May be there's a way to tell configure and/or dejagnu about missing profiling
support and be a bit more graceful than a link error?
--
Summary: testsuite __gnu_mcount_nc link error when profiling on
arm
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: link-failure
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: laurent at guerby dot net
GCC build triplet: arm-linux-gnueabi
GCC host triplet: arm-linux-gnueabi
GCC target triplet: arm-linux-gnueabi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38703