public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/29404]  New: "make check" fails to compile library testcases
@ 2006-10-09 16:53 ghazi at gcc dot gnu dot org
  2006-10-09 17:00 ` [Bug testsuite/29404] " howarth at nitro dot med dot uc dot edu
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2006-10-09 16:53 UTC (permalink / raw)
  To: gcc-bugs

When I run "make check" on a three-stage bootstrapped tree, I get errors from
libiberty's testsuite:

cc -DHAVE_CONFIG_H -g -I..
-I../../../egcc-SVN20061008/libiberty/testsuite/../../include  -DHAVE_CONFIG_H
-I.. -o test-pexecute
../../../egcc-SVN20061008/libiberty/testsuite/test-pexecute.c ../libiberty.a
Undefined                       first referenced
 symbol                             in file
__umoddi3                           ../libiberty.a(mkstemps.o)
__udivdi3                           ../libiberty.a(mkstemps.o)
ld: fatal: Symbol referencing errors. No output written to test-pexecute
make[3]: *** [test-pexecute] Error 1


The problem appears to be that the libiberty library was three-staged using the
new top-level bootstrap mechanism and therefore was compiled more recently by
stage3 gcc, but the testcase driver is compiled and linked against this library
with the stage1 compiler (cc).  Therefore symbols from libgcc (if any are
needed) won't be resolved.  

We need to use the same compiler for the tests as was used to compile the
library we're testing.  That changes depending on whether we use
--disable-bootstrap or not.

This will become much more serious if we include other libraries in the GCC
tree such as GMP/MPFR where testsuite results are more important.


-- 
           Summary: "make check" fails to compile library testcases
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ghazi at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-03-30 17:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-09 16:53 [Bug testsuite/29404] New: "make check" fails to compile library testcases ghazi at gcc dot gnu dot org
2006-10-09 17:00 ` [Bug testsuite/29404] " howarth at nitro dot med dot uc dot edu
2006-10-09 17:22 ` pinskia at gcc dot gnu dot org
2006-10-09 17:25 ` ghazi at gcc dot gnu dot org
2006-10-09 17:28 ` ghazi at gcc dot gnu dot org
2007-01-09 16:09 ` bonzini at gnu dot org
2007-02-01  4:23 ` ghazi at gcc dot gnu dot org
2007-02-01  6:13 ` paolo dot bonzini at lu dot unisi dot ch
2008-02-02  5:19 ` ghazi at gcc dot gnu dot org
2009-01-17  3:03 ` ghazi at gcc dot gnu dot org
2010-03-30 17:11 ` ghazi 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).