[LLVMbugs] [Bug 8782] New: Linking fails because weird symbol issue

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 13 03:49:05 PST 2010


           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: unassignedclangbugs at nondot.org
        ReportedBy: jpakkane at gmail.com
                CC: llvmbugs at cs.uiuc.edu

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 ..

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