Another failing build

140 views
Skip to first unread message

Tibor Vass

unread,
Jul 29, 2016, 4:49:54 PM7/29/16
to llgo-dev
Hi,

Thanks for all the work done on llgo.

Is there a way I can deterministically compile ? Following the instructions at https://github.com/llvm-mirror/llgo it simply checks out master for llvm, clang and llgo.
I believe it would be really helpful to provide a few tags or revisions that are known to work.

I have this error currently:
...
[ 92%] Built target scan-view
make[2]: *** No rule to make target 'bin/llvm-go', needed by 'bin/llgo'.  Stop.
CMakeFiles/Makefile2:49020: recipe for target 'tools/llgo/CMakeFiles/llgo.dir/all' failed
make[1]: *** [tools/llgo/CMakeFiles/llgo.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2


svn info for llvm:
Path: .
Working Copy Root Path: /src/llvm
Relative URL: ^/llvm/trunk
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 277188
Node Kind: directory
Schedule: normal
Last Changed Author: tnorthover
Last Changed Rev: 277188
Last Changed Date: 2016-07-29 18:11:21 +0000 (Fri, 29 Jul 2016)

svn info clang:
Path: tools/clang
Working Copy Root Path: /src/llvm/tools/clang
Relative URL: ^/cfe/trunk
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 277185
Node Kind: directory
Schedule: normal
Last Changed Author: yaxunl
Last Changed Rev: 277181
Last Changed Date: 2016-07-29 17:52:34 +0000 (Fri, 29 Jul 2016)

svn info llgo:
Path: tools/llgo
Working Copy Root Path: /src/llvm/tools/llgo
Relative URL: ^/llgo/trunk
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 277184
Node Kind: directory
Schedule: normal
Last Changed Author: axw
Last Changed Rev: 276828
Last Changed Date: 2016-07-27 03:01:00 +0000 (Wed, 27 Jul 2016)

Andrew Wilkins

unread,
Jul 30, 2016, 10:26:32 PM7/30/16
to llgo...@googlegroups.com
On Sat, 30 Jul 2016 at 04:49 Tibor Vass <teab...@gmail.com> wrote:
Hi,

Thanks for all the work done on llgo.

Is there a way I can deterministically compile ? Following the instructions at https://github.com/llvm-mirror/llgo it simply checks out master for llvm, clang and llgo.
I believe it would be really helpful to provide a few tags or revisions that are known to work.

Ideally the LLVM release tags would be usable. I don't know if they are - quite possibly not, since llgo is not part of the release testing. Until it is, I'm not sure there is a very good solution here.

In another thread I mentioned that I intend to package llgo as a "snap". Assuming I can carve out the time for this, I'd also like to set up a build bot (again), and the waterfall results could be used to identify working revisions.

I have this error currently:
...
[ 92%] Built target scan-view
make[2]: *** No rule to make target 'bin/llvm-go', needed by 'bin/llgo'.  Stop.
CMakeFiles/Makefile2:49020: recipe for target 'tools/llgo/CMakeFiles/llgo.dir/all' failed
make[1]: *** [tools/llgo/CMakeFiles/llgo.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

The particular error you're getting looks like the LLVM build system isn't able to locate a "go" binary on your system. I think that's the only reason why the llvm-go target wouldn't be defined.

--
You received this message because you are subscribed to the Google Groups "llgo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to llgo-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tibor Vass

unread,
Jul 31, 2016, 1:55:33 AM7/31/16
to llgo-dev
Thanks Andrew for your answer!

In another thread I mentioned that I intend to package llgo as a "snap". Assuming I can carve out the time for this, I'd also like to set up a build bot (again), and the waterfall results could be used to identify working revisions.

Can't wait!

The particular error you're getting looks like the LLVM build system isn't able to locate a "go" binary on your system. I think that's the only reason why the llvm-go target wouldn't be defined.

The "go" binary is in my PATH, tried both go 1.3 from the distro packages, and tried a manual install too with the latest go 1.6. Should I be configuring something to have it find the go binary?

Andrew Wilkins

unread,
Jul 31, 2016, 2:00:22 AM7/31/16
to llgo...@googlegroups.com
So I'm either wrong and there's another reason, or it's just not being picked up and I don't know why. You could try passing the path to CMake explicitly, with:
    cmake -DGO_EXECUTABLE=<path/to/go> ...

Cheers,
Andrew

Tibor Vass

unread,
Jul 31, 2016, 2:34:34 AM7/31/16
to llgo...@googlegroups.com
So I'm either wrong and there's another reason, or it's just not being picked up and I don't know why. You could try passing the path to CMake explicitly, with:
    cmake -DGO_EXECUTABLE=<path/to/go> ...

Unfortunately it seems there's another reason :( If I set GO_EXECUTABLE to something invalid, then the failure happens at the cmake command already, but if I set it to the path of the go executable then I get the same error as if I didn't set GO_EXECUTABLE at all.

Andrew Wilkins

unread,
Jul 31, 2016, 8:54:09 PM7/31/16
to llgo...@googlegroups.com
OK then, I'm sorry but I don't know. If you could provide the full command line you're passing to cmake, and the stdout, I can see if anything else jumps out. Otherwise you may have to debug the CMake configuration.

Tibor Vass

unread,
Aug 1, 2016, 1:43:54 PM8/1/16
to llgo-dev
OK then, I'm sorry but I don't know. If you could provide the full command line you're passing to cmake, and the stdout, I can see if anything else jumps out. Otherwise you may have to debug the CMake configuration.

No worries, here's the full output:

root@c6546e483f55:/src/build/llvm# cmake /src/llvm -DCMAKE_INSTALL_PREFIX=/src/install/llvm -DGO_EXECUTABLE=/usr/local/go/bin/go
-- Target triple: x86_64-unknown-linux-gnu
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Sphinx disabled.
-- Go bindings enabled.
-- Could NOT find OCaml (missing:  OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing:  OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Targeting AArch64
-- Targeting AMDGPU
-- Targeting ARM
-- Targeting BPF
-- Targeting Hexagon
-- Targeting Mips
-- Targeting MSP430
-- Targeting NVPTX
-- Targeting PowerPC
-- Targeting Sparc
-- Targeting SystemZ
-- Targeting X86
-- Targeting XCore
-- Clang version: 4.0.0
-- Configuring done
-- Generating done
-- Build files have been written to: /src/build/llvm
root@c6546e483f55:/src/build/llvm# make
[  4%] Built target LLVMSupport
[  4%] Built target LLVMTableGen
[  5%] Built target obj.llvm-tblgen
[  5%] Built target llvm-tblgen
[  5%] Updating AttributesCompatFunc.inc...
[  5%] Built target AttributeCompatFuncTableGen
[  7%] Updating Attributes.inc...
[  7%] Updating Intrinsics.gen...
[  7%] Built target intrinsics_gen
[ 10%] Built target LLVMCore
[ 10%] Built target LLVMIRReader
[ 14%] Built target LLVMCodeGen
[ 15%] Built target LLVMSelectionDAG
[ 17%] Built target LLVMAsmPrinter
[ 17%] Built target LLVMMIRParser
[ 17%] Built target LLVMGlobalISel
[ 18%] Built target LLVMBitReader
[ 18%] Built target LLVMBitWriter
[ 20%] Built target LLVMTransformUtils
[ 20%] Built target LLVMInstrumentation
[ 21%] Built target LLVMInstCombine
[ 23%] Built target LLVMScalarOpts
[ 24%] Built target LLVMipo
[ 24%] Built target LLVMVectorize
[ 24%] Built target LLVMHello_exports
[ 26%] Built target LLVMHello
[ 26%] Built target LLVMObjCARCOpts
[ 26%] Built target LLVMCoroutines
[ 26%] Built target LLVMLinker
[ 28%] Built target LLVMAnalysis
[ 28%] Built target LLVMLTO
[ 31%] Built target LLVMMC
[ 31%] Built target LLVMMCParser
[ 31%] Built target LLVMMCDisassembler
[ 33%] Built target LLVMObject
[ 33%] Built target LLVMObjectYAML
[ 33%] Built target LLVMOption
[ 34%] Built target LLVMDebugInfoDWARF
[ 34%] Built target LLVMDebugInfoMsf
[ 34%] Built target LLVMDebugInfoCodeView
[ 36%] Built target LLVMDebugInfoPDB
[ 36%] Built target LLVMSymbolize
[ 36%] Built target LLVMExecutionEngine
[ 36%] Built target LLVMInterpreter
[ 36%] Built target LLVMMCJIT
[ 36%] Built target LLVMOrcJIT
[ 37%] Built target LLVMRuntimeDyld
[ 37%] Built target LLVMTarget
[ 37%] Updating AArch64GenRegisterInfo.inc...
[ 37%] Updating AArch64GenMCPseudoLowering.inc...
[ 37%] Updating AArch64GenFastISel.inc...
[ 37%] Updating AArch64GenCallingConv.inc...
[ 37%] Updating AArch64GenSubtargetInfo.inc...
[ 37%] Updating AArch64GenSystemOperands.inc...
[ 37%] Built target AArch64CommonTableGen
[ 39%] Built target LLVMAArch64CodeGen
[ 39%] Built target LLVMAArch64Info
[ 39%] Built target LLVMAArch64AsmParser
[ 39%] Built target LLVMAArch64Disassembler
[ 39%] Built target LLVMAArch64AsmPrinter
[ 39%] Built target LLVMAArch64Desc
[ 39%] Built target LLVMAArch64Utils
[ 39%] Updating AMDGPUGenRegisterInfo.inc...
[ 39%] Updating AMDGPUGenCallingConv.inc...
[ 39%] Updating AMDGPUGenSubtargetInfo.inc...
[ 39%] Updating AMDGPUGenIntrinsics.inc...
[ 39%] Updating AMDGPUGenDFAPacketizer.inc...
[ 40%] Built target AMDGPUCommonTableGen
[ 42%] Built target LLVMAMDGPUCodeGen
[ 42%] Built target LLVMAMDGPUUtils
[ 42%] Built target LLVMAMDGPUAsmParser
[ 42%] Built target LLVMAMDGPUAsmPrinter
[ 42%] Built target LLVMAMDGPUDisassembler
[ 42%] Built target LLVMAMDGPUInfo
[ 43%] Built target LLVMAMDGPUDesc
[ 43%] Updating ARMGenRegisterInfo.inc...
[ 43%] Updating ARMGenMCPseudoLowering.inc...
[ 43%] Updating ARMGenAsmMatcher.inc...
[ 43%] Updating ARMGenFastISel.inc...
[ 43%] Updating ARMGenCallingConv.inc...
[ 43%] Built target ARMCommonTableGen
[ 44%] Built target LLVMARMCodeGen
[ 44%] Built target LLVMARMInfo
[ 44%] Built target LLVMARMAsmParser
[ 44%] Built target LLVMARMDisassembler
[ 44%] Built target LLVMARMAsmPrinter
[ 44%] Built target LLVMARMDesc
[ 44%] Updating BPFGenRegisterInfo.inc...
[ 44%] Updating X86GenAsmMatcher.inc...
[ 46%] Updating BPFGenCallingConv.inc...
[ 46%] Updating BPFGenSubtargetInfo.inc...
[ 46%] Built target BPFCommonTableGen
[ 46%] Built target LLVMBPFCodeGen
[ 46%] Built target LLVMBPFAsmPrinter
[ 46%] Built target LLVMBPFInfo
[ 46%] Built target LLVMBPFDesc
[ 46%] Updating HexagonGenAsmMatcher.inc...
[ 46%] Updating HexagonGenCallingConv.inc...
[ 46%] Updating HexagonGenDFAPacketizer.inc...
[ 46%] Updating HexagonGenRegisterInfo.inc...
[ 46%] Updating HexagonGenSubtargetInfo.inc...
[ 47%] Built target HexagonCommonTableGen
[ 49%] Built target LLVMHexagonCodeGen
[ 49%] Built target LLVMHexagonAsmParser
[ 49%] Built target LLVMHexagonInfo
[ 49%] Built target LLVMHexagonDesc
[ 49%] Built target LLVMHexagonDisassembler
[ 49%] Updating MipsGenRegisterInfo.inc...
[ 49%] Updating MipsGenFastISel.inc...
[ 49%] Updating MipsGenCallingConv.inc...
[ 49%] Updating MipsGenSubtargetInfo.inc...
[ 49%] Updating MipsGenAsmMatcher.inc...
[ 49%] Updating MipsGenMCPseudoLowering.inc...
[ 50%] Built target MipsCommonTableGen
[ 52%] Built target LLVMMipsCodeGen
[ 52%] Built target LLVMMipsAsmPrinter
[ 52%] Built target LLVMMipsDisassembler
[ 52%] Built target LLVMMipsInfo
[ 52%] Built target LLVMMipsDesc
[ 52%] Built target LLVMMipsAsmParser
[ 52%] Updating MSP430GenRegisterInfo.inc...
[ 52%] Updating MSP430GenDAGISel.inc...
[ 52%] Updating MSP430GenCallingConv.inc...
[ 52%] Updating MSP430GenSubtargetInfo.inc...
[ 52%] Built target MSP430CommonTableGen
[ 53%] Built target LLVMMSP430CodeGen
[ 53%] Built target LLVMMSP430AsmPrinter
[ 53%] Built target LLVMMSP430Info
[ 53%] Built target LLVMMSP430Desc
[ 53%] Updating NVPTXGenRegisterInfo.inc...
[ 53%] Updating NVPTXGenSubtargetInfo.inc...
[ 53%] Built target NVPTXCommonTableGen
[ 55%] Built target LLVMNVPTXCodeGen
[ 55%] Built target LLVMNVPTXInfo
[ 55%] Built target LLVMNVPTXAsmPrinter
[ 55%] Built target LLVMNVPTXDesc
[ 55%] Updating PPCGenAsmMatcher.inc...
[ 55%] Updating PPCGenRegisterInfo.inc...
[ 55%] Updating PPCGenFastISel.inc...
[ 55%] Updating PPCGenCallingConv.inc...
[ 55%] Updating PPCGenSubtargetInfo.inc...
[ 56%] Built target PowerPCCommonTableGen
[ 57%] Built target LLVMPowerPCCodeGen
[ 57%] Built target LLVMPowerPCAsmParser
[ 57%] Built target LLVMPowerPCDisassembler
[ 57%] Built target LLVMPowerPCAsmPrinter
[ 57%] Built target LLVMPowerPCInfo
[ 57%] Built target LLVMPowerPCDesc
[ 57%] Updating SparcGenRegisterInfo.inc...
[ 57%] Updating SparcGenAsmMatcher.inc...
[ 57%] Updating SparcGenDAGISel.inc...
[ 57%] Updating SparcGenSubtargetInfo.inc...
[ 57%] Updating SparcGenCallingConv.inc...
[ 59%] Built target SparcCommonTableGen
[ 59%] Built target LLVMSparcCodeGen
[ 59%] Built target LLVMSparcInfo
[ 59%] Built target LLVMSparcDesc
[ 59%] Built target LLVMSparcAsmPrinter
[ 59%] Built target LLVMSparcAsmParser
[ 59%] Built target LLVMSparcDisassembler
[ 59%] Updating SystemZGenAsmMatcher.inc...
[ 59%] Updating SystemZGenCallingConv.inc...
[ 59%] Updating SystemZGenRegisterInfo.inc...
[ 59%] Updating SystemZGenSubtargetInfo.inc...
[ 59%] Built target SystemZCommonTableGen
[ 59%] Built target LLVMSystemZCodeGen
[ 59%] Built target LLVMSystemZAsmParser
[ 59%] Built target LLVMSystemZDisassembler
[ 59%] Built target LLVMSystemZAsmPrinter
[ 59%] Built target LLVMSystemZInfo
[ 60%] Built target LLVMSystemZDesc
[ 60%] Updating X86GenRegisterInfo.inc...
[ 60%] Updating X86GenCallingConv.inc...
[ 60%] Updating X86GenSubtargetInfo.inc...
[ 60%] Built target X86CommonTableGen
[ 60%] Built target LLVMX86CodeGen
[ 62%] Built target LLVMX86AsmParser
[ 62%] Built target LLVMX86Disassembler
[ 62%] Built target LLVMX86AsmPrinter
[ 63%] Built target LLVMX86Desc
[ 63%] Built target LLVMX86Info
[ 63%] Built target LLVMX86Utils
[ 63%] Updating XCoreGenRegisterInfo.inc...
[ 63%] Updating XCoreGenCallingConv.inc...
[ 63%] Updating XCoreGenSubtargetInfo.inc...
[ 65%] Built target XCoreCommonTableGen
[ 65%] Built target LLVMXCoreCodeGen
[ 65%] Built target LLVMXCoreDisassembler
[ 65%] Built target LLVMXCoreAsmPrinter
[ 65%] Built target LLVMXCoreInfo
[ 65%] Built target LLVMXCoreDesc
[ 65%] Built target LLVMAsmParser
[ 65%] Built target LLVMLineEditor
[ 65%] Built target LLVMProfileData
[ 65%] Built target LLVMCoverage
[ 65%] Built target LLVMPasses
[ 65%] Updating Options.inc...
[ 65%] Built target LibOptionsTableGen
[ 65%] Built target LLVMLibDriver
[ 65%] Built target FileCheck
[ 65%] Built target llvm-PerfectShuffle
[ 65%] Built target count
[ 65%] Built target not
[ 65%] Built target yaml-bench
[ 65%] Built target gtest
[ 65%] Built target gtest_main
[ 65%] Built target LTO_exports
[ 65%] Built target LTO
[ 65%] Built target llvm-ar
[ 65%] Built target llvm-ranlib
[ 65%] Built target llvm-lib
[ 65%] Built target llvm-config
[ 65%] Built target llvm-lto
[ 65%] Built target llvm-profdata
[ 66%] Built target obj.clang-tblgen
[ 66%] Built target clang-tblgen
[ 66%] Updating arm_neon.h...
[ 69%] Built target clang-headers
[ 69%] Updating Checkers.inc...
[ 69%] Built target ClangSACheckers
[ 69%] Updating CommentCommandList.inc...
[ 69%] Built target ClangCommentCommandList
[ 69%] Updating CommentCommandInfo.inc...
[ 69%] Built target ClangCommentCommandInfo
[ 69%] Updating AttrVisitor.inc...
[ 69%] Built target ClangAttrVisitor
[ 69%] Updating CommentHTMLNamedCharacterReferences.inc...
[ 69%] Built target ClangCommentHTMLNamedCharacterReferences
[ 69%] Updating AttrDump.inc...
[ 69%] Built target ClangAttrDump
[ 69%] Updating AttrImpl.inc...
[ 69%] Built target ClangAttrImpl
[ 69%] Updating Attrs.inc...
[ 69%] Built target ClangAttrClasses
[ 69%] Updating StmtNodes.inc...
[ 69%] Built target ClangStmtNodes
[ 69%] Updating DeclNodes.inc...
[ 69%] Built target ClangDeclNodes
[ 69%] Updating CommentNodes.inc...
[ 69%] Built target ClangCommentNodes
[ 69%] Updating CommentHTMLTagsProperties.inc...
[ 71%] Built target ClangCommentHTMLTagsProperties
[ 71%] Updating CommentHTMLTags.inc...
[ 71%] Built target ClangCommentHTMLTags
[ 71%] Built target ClangDiagnosticIndexName
[ 71%] Updating DiagnosticSerializationKinds.inc...
[ 71%] Built target ClangDiagnosticSerialization
[ 71%] Updating DiagnosticAnalysisKinds.inc...
[ 71%] Built target ClangDiagnosticAnalysis
[ 71%] Updating DiagnosticASTKinds.inc...
[ 71%] Built target ClangDiagnosticAST
[ 71%] Built target ClangDiagnosticParse
[ 71%] Built target ClangDiagnosticLex
[ 71%] Built target ClangDiagnosticSema
[ 71%] Updating DiagnosticCommentKinds.inc...
[ 71%] Built target ClangDiagnosticComment
[ 71%] Built target ClangDiagnosticGroups
[ 71%] Built target ClangDiagnosticDriver
[ 71%] Updating AttrList.inc...
[ 71%] Built target ClangAttrList
[ 71%] Built target ClangDiagnosticFrontend
[ 71%] Updating AttrHasAttributeImpl.inc...
[ 71%] Built target ClangAttrHasAttributeImpl
[ 71%] Updating DiagnosticCommonKinds.inc...
[ 71%] Built target ClangDiagnosticCommon
[ 72%] Updating arm_neon.inc...
[ 72%] Built target ClangARMNeon
[ 72%] Updating AttrParserStringSwitches.inc...
[ 72%] Built target ClangAttrParserStringSwitches
[ 72%] Updating AttrParsedAttrKinds.inc...
[ 72%] Built target ClangAttrParsedAttrKinds
[ 72%] Updating AttrSpellingListIndex.inc...
[ 72%] Built target ClangAttrSpellingListIndex
[ 72%] Updating AttrParsedAttrList.inc...
[ 72%] Built target ClangAttrParsedAttrList
[ 72%] Updating AttrParsedAttrImpl.inc...
[ 72%] Built target ClangAttrParsedAttrImpl
[ 72%] Updating AttrTemplateInstantiate.inc...
[ 72%] Built target ClangAttrTemplateInstantiate
[ 72%] Updating AttrPCHRead.inc...
[ 72%] Built target ClangAttrPCHRead
[ 72%] Updating AttrPCHWrite.inc...
[ 72%] Built target ClangAttrPCHWrite
[ 72%] Built target clangBasic
[ 72%] Built target clangLex
[ 73%] Built target clangParse
[ 76%] Built target clangAST
[ 76%] Built target clangASTMatchers
[ 76%] Built target clangDynamicASTMatchers
[ 78%] Built target clangSema
[ 81%] Built target clangCodeGen
[ 82%] Built target clangAnalysis
[ 82%] Built target clangEdit
[ 82%] Built target clangRewrite
[ 82%] Built target clangARCMigrate
[ 82%] Updating Options.inc...
[ 82%] Built target ClangDriverOptions
[ 82%] Built target clangDriver
[ 84%] Built target clangSerialization
[ 84%] Built target clangFrontend
[ 84%] Built target clangRewriteFrontend
[ 85%] Built target clangFrontendTool
[ 85%] Built target clangTooling
[ 85%] Built target clangToolingCore
[ 85%] Built target clangIndex
[ 86%] Built target clangStaticAnalyzerCore
[ 89%] Built target clangStaticAnalyzerCheckers
[ 89%] Built target clangStaticAnalyzerFrontend
[ 91%] Built target clangFormat
[ 91%] Built target diagtool
[ 92%] Built target clang
[ 92%] Built target clang-format
[ 92%] Built target libclang_exports
[ 92%] Built target libclang
[ 92%] Built target c-index-test
[ 92%] Built target arcmt-test
[ 92%] Built target c-arcmt-test
[ 92%] Built target clang-check
[ 92%] Built target scan-build

Andrew Wilkins

unread,
Aug 1, 2016, 7:50:06 PM8/1/16
to llgo...@googlegroups.com
Sorry, I'm out of ideas. It's going to need some CMake spelunking.

If you're just after a working toolchain, and you're on an OS that supports them, then I've *almost* got the snap working.

Cheers,
Andrew

Andrew Wilkins

unread,
Aug 4, 2016, 11:22:37 PM8/4/16
to llgo-dev
So I'm not sure what triggered it, but I've just now hit the same problem. It looks like there's a broken build dependency.

I got past the issue by doing "make llvm-go" first, and then "make llgo".

HTH.

Cheers,
Andrew
Reply all
Reply to author
Forward
0 new messages