[Bug target/38703] New: testsuite __gnu_mcount_nc link error when profiling on arm
laurent at guerby dot net
gcc-bugzilla@gcc.gnu.org
Fri Jan 2 15:07:00 GMT 2009
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
More information about the Gcc-bugs
mailing list