Bug 10899 - gold test failures with gcc 4.1
Summary: gold test failures with gcc 4.1
Status: RESOLVED INVALID
Alias: None
Product: binutils
Classification: Unclassified
Component: gold (show other bugs)
Version: 2.21
: P2 normal
Target Milestone: ---
Assignee: Ian Lance Taylor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-03 18:11 UTC by H.J. Lu
Modified: 2009-11-04 19:40 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2009-11-03 18:11:07 UTC
Using gcc 4.1 on Linux/x86-64, I got

constructor_test:
/net/gnu-6/export/gnu/import/git/binutils/gold/testsuite/constructor_test.cc:63:
void atexit_function(): Assertion `atexit_count == c2_count' failed.
/bin/sh: line 5: 25736 Aborted                 ${dir}$tst
FAIL: constructor_test
constructor_static_test:
/net/gnu-6/export/gnu/import/git/binutils/gold/testsuite/constructor_test.cc:63:
void atexit_function(): Assertion `atexit_count == c2_count' failed.
/bin/sh: line 5: 25743 Aborted                 ${dir}$tst
FAIL: constructor_static_test
flagstest_o_specialfile:
/net/gnu-6/export/gnu/import/git/binutils/gold/testsuite/constructor_test.cc:63:
void atexit_function(): Assertion `atexit_count == c2_count' failed.
/bin/sh: line 5: 25955 Aborted                 ${dir}$tst
FAIL: flagstest_o_specialfile
flagstest_compress_debug_sections:
/net/gnu-6/export/gnu/import/git/binutils/gold/testsuite/constructor_test.cc:63:
void atexit_function(): Assertion `atexit_count == c2_count' failed.
/bin/sh: line 5: 25962 Aborted                 ${dir}$tst
FAIL: flagstest_compress_debug_sections
flagstest_o_specialfile_and_compress_debug_sections:
/net/gnu-6/export/gnu/import/git/binutils/gold/testsuite/constructor_test.cc:63:
void atexit_function(): Assertion `atexit_count == c2_count' failed.
/bin/sh: line 5: 25975 Aborted                 ${dir}$tst
FAIL: flagstest_o_specialfile_and_compress_debug_sections
Comment 1 Ian Lance Taylor 2009-11-04 07:39:49 UTC
Do these tests pass with gcc 4.2, or have you only tried 4.1?
Comment 2 H.J. Lu 2009-11-04 19:40:43 UTC
I was using gcc 4.1 with run-time library from gcc 3.4. Run-time library from
gcc 4.1 is OK.