public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/30258]  New: [4.1.0] undefined reference to `__gcov_one_value_profiler'
@ 2006-12-19 15:08 marion dot deveaud at siemens dot com
  2006-12-27  1:06 ` [Bug gcov-profile/30258] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: marion dot deveaud at siemens dot com @ 2006-12-19 15:08 UTC (permalink / raw)
  To: gcc-bugs

Hi everyone,

while running the regression tests for a x86_64 cross-toolchain build under
Cygwin lots of profiler tests went FAIL or UNRESOLVED. The first FAILed while
generating inliner-1.x01:

/usr/local/build-root/build-sles10-64/x86_64-pc-linux-gcc/gcc/xgcc
-B/usr/local/build-root/build-sles10-64/x86_64-pc-linux-gcc/gcc/
/usr/src/gcc-4.1.0/gcc/testsuite/gcc.dg/tree-prof/inliner-1.c -O2
-fdump-tree-optimized -fprofile-generate -fno-show-column -lm -o
/usr/local/build-root/build-sles10-64/x86_64-pc-linux-gcc/gcc/testsuite/inliner-1.x01
inliner-1.o: In function `hot_function':
inliner-1.c:(.text+0x39): undefined reference to `__gcov_one_value_profiler'
inliner-1.o: In function `cold_function':
inliner-1.c:(.text+0x99): undefined reference to `__gcov_one_value_profiler'
inliner-1.o: In function `main':
inliner-1.c:(.text+0x115): undefined reference to `__gcov_one_value_profiler'
inliner-1.c:(.text+0x164): undefined reference to `__gcov_one_value_profiler'
collect2: ld returned 1 exit status

The second type of failure is while retriving the profiler data: file
update-cunroll-2.gcda does not exist,  -fprofile-generate.

gcc was configured with following options:
./configure --target= x86_64-pc-linux --prefix= 
/usr/local/sles-x86_64
--enable-languages=c,c++ --enable-shared --enable-threads=posix 

--disable-multilib --enable-__cxa_atexit

Any idea ?


-- 
           Summary: [4.1.0] undefined reference to
                    `__gcov_one_value_profiler'
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: marion dot deveaud at siemens dot com
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: x86_64-pc-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30258


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug gcov-profile/30258] [4.1.0] undefined reference to `__gcov_one_value_profiler'
  2006-12-19 15:08 [Bug gcov-profile/30258] New: [4.1.0] undefined reference to `__gcov_one_value_profiler' marion dot deveaud at siemens dot com
@ 2006-12-27  1:06 ` pinskia at gcc dot gnu dot org
  2007-01-19 10:38 ` marion dot deveaud at siemens dot com
  2008-03-27 22:10 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-27  1:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-12-27 01:06 -------
Hmm, I think this means you are linking against the wrong version of libgcov.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30258


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug gcov-profile/30258] [4.1.0] undefined reference to `__gcov_one_value_profiler'
  2006-12-19 15:08 [Bug gcov-profile/30258] New: [4.1.0] undefined reference to `__gcov_one_value_profiler' marion dot deveaud at siemens dot com
  2006-12-27  1:06 ` [Bug gcov-profile/30258] " pinskia at gcc dot gnu dot org
@ 2007-01-19 10:38 ` marion dot deveaud at siemens dot com
  2008-03-27 22:10 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: marion dot deveaud at siemens dot com @ 2007-01-19 10:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from marion dot deveaud at siemens dot com  2007-01-19 10:38 -------
I finally found out that the "inhibit_libc" flag was set during the gcc
compilation because I'm building a cross-compiler without sysroot and headers.
As a consequence _gcov_* functions aren't defined in libgcov.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30258


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug gcov-profile/30258] [4.1.0] undefined reference to `__gcov_one_value_profiler'
  2006-12-19 15:08 [Bug gcov-profile/30258] New: [4.1.0] undefined reference to `__gcov_one_value_profiler' marion dot deveaud at siemens dot com
  2006-12-27  1:06 ` [Bug gcov-profile/30258] " pinskia at gcc dot gnu dot org
  2007-01-19 10:38 ` marion dot deveaud at siemens dot com
@ 2008-03-27 22:10 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-03-27 22:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2008-03-27 22:10 -------
Thus, invalid.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30258


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-27 22:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-19 15:08 [Bug gcov-profile/30258] New: [4.1.0] undefined reference to `__gcov_one_value_profiler' marion dot deveaud at siemens dot com
2006-12-27  1:06 ` [Bug gcov-profile/30258] " pinskia at gcc dot gnu dot org
2007-01-19 10:38 ` marion dot deveaud at siemens dot com
2008-03-27 22:10 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).