[Mesa-dev] [Bug 49717] New: SCons build error with clang

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed May 9 23:49:13 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=49717

             Bug #: 49717
           Summary: SCons build error with clang
    Classification: Unclassified
           Product: Mesa
           Version: git
          Platform: x86-64 (AMD64)
        OS/Version: All
            Status: NEW
          Severity: blocker
          Priority: medium
         Component: Other
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: vlee at freedesktop.org
                CC: jfonseca at vmware.com


mesa: 788fd04dacb9eb1e32010050c57cd2f49779311b (master)

The SCons build fails with clang.

$ clang -v
Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0)
Target: x86_64-pc-linux-gnu
Thread model: posix

$ scons
[...]
clang -o build/linux-x86_64-debug/gallium/drivers/llvmpipe/lp_test_arit
build/linux-x86_64-debug/gallium/drivers/llvmpipe/lp_test_arit.o
build/linux-x86_64-debug/gallium/drivers/llvmpipe/lp_test_main.o
-L/usr/lib/llvm-3.0/lib
build/linux-x86_64-debug/gallium/drivers/llvmpipe/libllvmpipe.a
build/linux-x86_64-debug/gallium/auxiliary/libgallium.a -lLLVMBitWriter
-lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMX86Desc
-lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMMCParser -lLLVMX86AsmPrinter
-lLLVMX86Utils -lLLVMX86Info -lLLVMJIT -lLLVMExecutionEngine -lLLVMCodeGen
-lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa
-lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMCore -lLLVMSupport -lpthread -lffi
-ldl -lm
/usr/lib/llvm-3.0/lib/libLLVMX86CodeGen.a(X86TargetMachine.o): In function
`llvm::X86TargetMachine::X86TargetMachine(llvm::Target const&, llvm::StringRef,
llvm::StringRef, llvm::StringRef, llvm::Reloc::Model, llvm::CodeModel::Model,
bool)':
(.text+0x2cd): undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::basic_string(char const*,
unsigned long, std::allocator<char> const&)'
[...]

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list