[LLVMbugs] [Bug 10253] New: cannot compile large Boost.Test testsuites and gives cryptic output (regression)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 2 14:07:23 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10253

           Summary: cannot compile large Boost.Test testsuites and gives
                    cryptic output (regression)
           Product: clang
           Version: 2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pogonyshev at gmx.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=6816)
 --> (http://llvm.org/bugs/attachment.cgi?id=6816)
file demonstrating the bug

The attached file requires Boost.Test to compile.  It is a large test suite of
empty templated tests.  When compiled and run with GCC or Clang 2.7 it produces
the expected output: "Running 700 test cases... *** No errors detected". 
However, with Clang 2.9 compilation/linkage fails with errors:

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 0 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 1 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 2 has invalid symbol index 2
...

Compilation/linkage line is as follows:

$CC -DBOOST_TEST_DYN_LINK test.cpp -o test -lboost_unit_test_framework

with $CC replaced by compiler name.

Additionally, when you remove or comment out last (I guess any) 10 templated
test cases and run the result, Clang 2.9 suddenly works fine, producing
"Running 600 test cases... *** No errors detected" (here 600 is expected, as
100 tests are gone).

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list