[LLVMbugs] [Bug 21552] New: Bindings/Go/go.test fails when there's no c++11-capable compiler in the environment

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 12 17:39:20 PST 2014


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

            Bug ID: 21552
           Summary: Bindings/Go/go.test fails when there's no
                    c++11-capable compiler in the environment
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
          Assignee: unassignedbugs at nondot.org
          Reporter: hans at chromium.org
                CC: llvmbugs at cs.uiuc.edu, nicolasweber at gmx.de,
                    peter at pcc.me.uk
    Classification: Unclassified

Bindings/Go/go.test fails on my machine when running in an environment that
doesn't have a C++11-capable compiler on PATH.

>From what I understand, the test runs cmake, inputs flags based on llvm-flags
and then tries to build parts of LLVM, which seems a little brittle.




FAIL: LLVM :: Bindings/Go/go.test (15805 of 19507)
******************** TEST 'LLVM :: Bindings/Go/go.test' FAILED
********************
Script:
--
cd
/usr/local/google/work/chromium/src/third_party/llvm/test/Bindings/Go/../../../bindings/go/llvm
&&  env
CGO_CPPFLAGS="$(/work/chromium/src/third_party/llvm-build/Release+Asserts/./bin/llvm-config
--cppflags)"      CGO_CXXFLAGS=-std=c++11     
CGO_LDFLAGS="$(/work/chromium/src/third_party/llvm-build/Release+Asserts/./bin/llvm-config
--ldflags --libs --system-libs                                 $(../build.sh
--print-components)) $CGO_LDFLAGS"      /usr/lib/google-golang/bin/go test
-tags byollvm .
--
Exit Code: 2

Command Output (stdout):
--
FAIL    _/usr/local/google/work/chromium/src/third_party/llvm/bindings/go/llvm
[build failed]

--
Command Output (stderr):
--
+ llvm_components='all-targets analysis asmparser asmprinter bitreader
bitwriter codegen core debuginfo executionengine instrumentation interpreter
ipo irreader linker mc mcjit objcarcopts option profiledata scalaropts support
target '
+ '[' --print-components = --print-components ']'
+ echo all-targets analysis asmparser asmprinter bitreader bitwriter codegen
core debuginfo executionengine instrumentation interpreter ipo irreader linker
mc mcjit objcarcopts option profiledata scalaropts support target
+ exit 0
# _/usr/local/google/work/chromium/src/third_party/llvm/bindings/go/llvm
/work/chromium/src/third_party/llvm-build/Release+Asserts/lib/libLLVMMCJIT.a(MCJIT.cpp.o):/work/chromium/src/third_party/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp:function
llvm::LinkingMemoryManager::getSymbolAddress(std::string const&): error:
undefined reference to 'std::__throw_out_of_range_fmt(char const*, ...)'
/work/chromium/src/third_party/llvm-build/Release+Asserts/lib/libLLVMX86CodeGen.a(X86ISelLowering.cpp.o):/work/chromium/src/third_party/llvm/lib/Target/X86/X86ISelLowering.cpp:function
llvm::X86TargetLowering::LowerVECTOR_SHUFFLE(llvm::SDValue,
llvm::SelectionDAG&) const: error: undefined reference to
'std::__throw_out_of_range_fmt(char const*, ...)'
/work/chromium/src/third_party/llvm-build/Release+Asserts/lib/libLLVMAsmPrinter.a(DwarfDebug.cpp.o):/work/chromium/src/third_party/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:function
llvm::LexicalScopes::LexicalScopes(): error: undefined reference to
'std::__detail::_Prime_rehash_policy::_M_next_bkt(unsigned long) const'
/work/chromium/src/third_party/llvm-build/Release+Asserts/lib/libLLVMAsmPrinter.a(DwarfDebug.cpp.o):/work/chromium/src/third_party/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:function
llvm::LexicalScopes::LexicalScopes(): error: undefined reference to
'std::__detail::_Prime_rehash_policy::_M_next_bkt(unsigned long) const'
/work/chromium/src/third_party/llvm-build/Release+Asserts/lib/libLLVMAsmPrinter.a(DwarfDebug.cpp.o):/work/chromium/src/third_party/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:function
llvm::LexicalScopes::LexicalScopes(): error: undefined reference to
'std::__detail::_Prime_rehash_policy::_M_next_bkt(unsigned long) const'
/work/chromium/src/third_party/llvm-build/Release+Asserts/lib/libLLVMAsmPrinter.a(WinCodeViewLineTables.cpp.o):/work/chromium/src/third_party/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp:function
llvm::WinCodeViewLineTables::getFullFilepath(llvm::MDNode const*): error:
undefined reference to 'std::__throw_out_of_range_fmt(char const*, ...)'
/work/chromium/src/third_party/llvm-build/Release+Asserts/lib/libLLVMAsmPrinter.a(WinCodeViewLineTables.cpp.o):/work/chromium/src/third_party/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp:function
llvm::WinCodeViewLineTables::getFullFilepath(llvm::MDNode const*): error:
undefined reference to 'std::__throw_out_of_range_fmt(char const*, ...)'
/work/chromium/src/third_party/llvm-build/Release+Asserts/lib/libLLVMCodeGen.a(LexicalScopes.cpp.o):/work/chromium/src/third_party/llvm/lib/CodeGen/LexicalScopes.cpp:function
_ZNSt10_HashtableIPKN4llvm6MDNodeESt4pairIKS3_NS0_12LexicalScopeEESaIS7_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb0ELb0ELb1EEEE10_M_emplaceIJRKSt21piecewise_construct_tSt5tupleIJRNS0_12DIDescriptorEEESP_IJRPS6_SR_ODnObEEEEES4_INS9_14_Node_iteratorIS7_Lb0ELb0EEEbESt17integral_constantIbLb1EEDpOT_:
error: undefined reference to
'std::__detail::_Prime_rehash_policy::_M_need_rehash(unsigned long, unsigned
long, unsigned long) const'
/work/chromium/src/third_party/llvm-build/Release+Asserts/lib/libLLVMCodeGen.a(LexicalScopes.cpp.o):/work/chromium/src/third_party/llvm/lib/CodeGen/LexicalScopes.cpp:function
_ZNSt10_HashtableISt4pairIPKN4llvm6MDNodeES4_ES0_IKS5_NS1_12LexicalScopeEESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ENS1_9pair_hashIS4_S4_EENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE10_M_emplaceIJRKSt21piecewise_construct_tSt5tupleIJS5_EESQ_IJPS7_NS1_14DILexicalBlockEPS2_bEEEEES0_INSA_14_Node_iteratorIS8_Lb0ELb1EEEbESt17integral_constantIbLb1EEDpOT_:
error: undefined reference to
'std::__detail::_Prime_rehash_policy::_M_need_rehash(unsigned long, unsigned
long, unsigned long) const'
/work/chromium/src/third_party/llvm-build/Release+Asserts/lib/libLLVMCodeGen.a(LexicalScopes.cpp.o):/work/chromium/src/third_party/llvm/lib/CodeGen/LexicalScopes.cpp:function
_ZNSt10_HashtableIPKN4llvm6MDNodeESt4pairIKS3_NS0_12LexicalScopeEESaIS7_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb0ELb0ELb1EEEE10_M_emplaceIJRKSt21piecewise_construct_tSt5tupleIJPS1_EESP_IJPS6_NS0_12DIDescriptorEDnbEEEEES4_INS9_14_Node_iteratorIS7_Lb0ELb0EEEbESt17integral_constantIbLb1EEDpOT_:
error: undefined reference to
'std::__detail::_Prime_rehash_policy::_M_need_rehash(unsigned long, unsigned
long, unsigned long) const'
clang-3.6: error: linker command failed with exit code 1 (use -v to see
invocation)

--

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141113/5d24dc05/attachment.html>


More information about the llvm-bugs mailing list