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

           Summary: Linking fails because weird symbol issue
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


When building the latest version of Cuneiform on Fedora 14 and latest Clang
trunk, I get the following error:

/usr/bin/ld: CMakeFiles/rout.dir/src/html.cpp.o: relocation R_386_GOTOFF
against undefined symbol
`_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@@GLIBCXX_3.4' can
not be used when making a shared object

I have no idea what this means. GCC, MSVC and earlier versions of Clang compile
the code without errors.

Unfortunately I don't know how to reduce this to a simple test case and because
the error happens during linking, the preprocessed source is useless too.

This is the way to replicate the issue. You need Bazaar and CMake.

bzr branch lp:cuneiform-linux cfbug
cd cfbug
mkdir builddir
cd builddir
cmake -DCMAKE_BUILD_TYPE=debug ..
make

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to