Closed jendrikseipp closed 6 years ago
It builds OK on Ubuntu 18.04. Maybe r m -fr build and rebuild?
I removed the build folder and tried compiling the HEAD revision with the zapcc compiler that was available in prebuilt form on the zapcc website recently (because it is much faster than gcc after all :-)). Now I get the following error(s):
$ ninja -j1
[1131/3268] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64InstructionSelector.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/AArch64/AArch64GenInstrInfo.inc', macro 'GET_INSTRINFO_CTOR_DTOR' was '(defined)' before but is '(undefined)' now
1 error generated.
[1140/3268] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64SelectionDAGInfo.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/AArch64/AArch64GenRegisterInfo.inc', macro 'GET_REGINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1143/3268] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64TargetMachine.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/AArch64/AArch64GenSubtargetInfo.inc', macro 'GET_SUBTARGETINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1169/3268] Building CXX object lib/Target/AArch64/Utils/CMakeFiles/LLVMAArch64Utils.dir/AArch64BaseInfo.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/AArch64/AArch64GenInstrInfo.inc', macro 'GET_INSTRINFO_MC_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1209/3268] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUInstructionSelector.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/AMDGPU/AMDGPUGenInstrInfo.inc', macro 'GET_INSTRINFO_CTOR_DTOR' was '(defined)' before but is '(undefined)' now
1 error generated.
[1227/3268] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPURewriteOutArguments.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/AMDGPU/AMDGPUGenRegisterInfo.inc', macro 'GET_REGINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1229/3268] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUTargetMachine.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/AMDGPU/AMDGPUGenSubtargetInfo.inc', macro 'GET_SUBTARGETINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1290/3268] Building CXX object lib/Target/AMDGPU/MCTargetDesc/CMakeFiles/LLVMAMDGPUDesc.dir/R600MCCodeEmitter.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/AMDGPU/AMDGPUGenInstrInfo.inc', macro 'GET_INSTRINFO_MC_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1297/3268] Building CXX object lib/Target/AMDGPU/AsmParser/CMakeFiles/LLVMAMDGPUAsmParser.dir/AMDGPUAsmParser.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/AMDGPU/AMDGPUGenInstrInfo.inc', macro 'GET_INSTRINFO_NAMED_OPS' was '(defined)' before but is '(undefined)' now
1 error generated.
[1343/3268] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMBaseRegisterInfo.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/ARM/ARMGenInstrInfo.inc', macro 'GET_INSTRINFO_CTOR_DTOR' was '(defined)' before but is '(undefined)' now
1 error generated.
[1344/3268] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMCallLowering.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/ARM/ARMGenRegisterInfo.inc', macro 'GET_REGINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1365/3268] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMTargetMachine.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/ARM/ARMGenSubtargetInfo.inc', macro 'GET_SUBTARGETINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1413/3268] Building CXX object lib/Target/BPF/CMakeFiles/LLVMBPFCodeGen.dir/BPFISelDAGToDAG.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/BPF/BPFGenInstrInfo.inc', macro 'GET_INSTRINFO_CTOR_DTOR' was '(defined)' before but is '(undefined)' now
1 error generated.
[1417/3268] Building CXX object lib/Target/BPF/CMakeFiles/LLVMBPFCodeGen.dir/BPFSubtarget.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/BPF/BPFGenRegisterInfo.inc', macro 'GET_REGINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1418/3268] Building CXX object lib/Target/BPF/CMakeFiles/LLVMBPFCodeGen.dir/BPFTargetMachine.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/BPF/BPFGenSubtargetInfo.inc', macro 'GET_SUBTARGETINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1429/3268] Building CXX object lib/Target/BPF/MCTargetDesc/CMakeFiles/LLVMBPFDesc.dir/BPFAsmBackend.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/BPF/BPFGenInstrInfo.inc', macro 'GET_INSTRINFO_MC_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1474/3268] Building CXX object lib/Target/Hexagon/CMakeFiles/LLVMHexagonCodeGen.dir/HexagonISelDAGToDAG.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Hexagon/HexagonGenInstrInfo.inc', macro 'GET_INSTRMAP_INFO' was '(defined)' before but is '(undefined)' now
1 error generated.
[1488/3268] Building CXX object lib/Target/Hexagon/CMakeFiles/LLVMHexagonCodeGen.dir/HexagonSplitConst32AndConst64.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Hexagon/HexagonGenRegisterInfo.inc', macro 'GET_REGINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1493/3268] Building CXX object lib/Target/Hexagon/CMakeFiles/LLVMHexagonCodeGen.dir/HexagonTargetMachine.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Hexagon/HexagonGenSubtargetInfo.inc', macro 'GET_SUBTARGETINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1522/3268] Building CXX object lib/Target/Hexagon/MCTargetDesc/CMakeFiles/LLVMHexagonDesc.dir/HexagonShuffler.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Hexagon/HexagonGenInstrInfo.inc', macro 'GET_INSTRINFO_MC_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1546/3268] Building CXX object lib/Target/Lanai/CMakeFiles/LLVMLanaiCodeGen.dir/LanaiDelaySlotFiller.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Lanai/LanaiGenInstrInfo.inc', macro 'GET_INSTRINFO_CTOR_DTOR' was '(defined)' before but is '(undefined)' now
1 error generated.
[1552/3268] Building CXX object lib/Target/Lanai/CMakeFiles/LLVMLanaiCodeGen.dir/LanaiMemAluCombiner.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Lanai/LanaiGenSubtargetInfo.inc', macro 'GET_SUBTARGETINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1553/3268] Building CXX object lib/Target/Lanai/CMakeFiles/LLVMLanaiCodeGen.dir/LanaiRegisterInfo.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Lanai/LanaiGenInstrInfo.inc', macro 'GET_INSTRMAP_INFO' was '(defined)' before but is '(undefined)' now
1 error generated.
[1554/3268] Building CXX object lib/Target/Lanai/CMakeFiles/LLVMLanaiCodeGen.dir/LanaiSelectionDAGInfo.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Lanai/LanaiGenRegisterInfo.inc', macro 'GET_REGINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1569/3268] Building CXX object lib/Target/Lanai/InstPrinter/CMakeFiles/LLVMLanaiAsmPrinter.dir/LanaiInstPrinter.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Lanai/LanaiGenInstrInfo.inc', macro 'GET_INSTRINFO_MC_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1604/3268] Building CXX object lib/Target/Mips/CMakeFiles/LLVMMipsCodeGen.dir/MipsISelDAGToDAG.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Mips/MipsGenInstrInfo.inc', macro 'GET_INSTRINFO_CTOR_DTOR' was '(defined)' before but is '(undefined)' now
1 error generated.
[1614/3268] Building CXX object lib/Target/Mips/CMakeFiles/LLVMMipsCodeGen.dir/MipsSEInstrInfo.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Mips/MipsGenRegisterInfo.inc', macro 'GET_REGINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1620/3268] Building CXX object lib/Target/Mips/CMakeFiles/LLVMMipsCodeGen.dir/MipsTargetMachine.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Mips/MipsGenSubtargetInfo.inc', macro 'GET_SUBTARGETINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1638/3268] Building CXX object lib/Target/Mips/MCTargetDesc/CMakeFiles/LLVMMipsDesc.dir/MipsMCTargetDesc.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Mips/MipsGenInstrInfo.inc', macro 'GET_INSTRMAP_INFO' was '(defined)' before but is '(undefined)' now
1 error generated.
[1639/3268] Building CXX object lib/Target/Mips/MCTargetDesc/CMakeFiles/LLVMMipsDesc.dir/MipsNaClELFStreamer.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Mips/MipsGenInstrInfo.inc', macro 'GET_INSTRINFO_MC_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1661/3268] Building CXX object lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430FrameLowering.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/MSP430/MSP430GenInstrInfo.inc', macro 'GET_INSTRINFO_CTOR_DTOR' was '(defined)' before but is '(undefined)' now
1 error generated.
[1664/3268] Building CXX object lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430Subtarget.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/MSP430/MSP430GenRegisterInfo.inc', macro 'GET_REGINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1665/3268] Building CXX object lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430TargetMachine.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/MSP430/MSP430GenSubtargetInfo.inc', macro 'GET_SUBTARGETINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1689/3268] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXAssignValidGlobalNames.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/NVPTX/NVPTXGenInstrInfo.inc', macro 'GET_INSTRINFO_CTOR_DTOR' was '(defined)' before but is '(undefined)' now
1 error generated.
[1702/3268] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXSubtarget.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/NVPTX/NVPTXGenRegisterInfo.inc', macro 'GET_REGINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1703/3268] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXReplaceImageHandles.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/NVPTX/NVPTXGenSubtargetInfo.inc', macro 'GET_SUBTARGETINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1745/3268] Building CXX object lib/Target/PowerPC/CMakeFiles/LLVMPowerPCCodeGen.dir/PPCISelDAGToDAG.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/PowerPC/PPCGenInstrInfo.inc', macro 'GET_INSTRINFO_CTOR_DTOR' was '(defined)' before but is '(undefined)' now
1 error generated.
[1755/3268] Building CXX object lib/Target/PowerPC/CMakeFiles/LLVMPowerPCCodeGen.dir/PPCQPXLoadSplat.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/PowerPC/PPCGenRegisterInfo.inc', macro 'GET_REGINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1757/3268] Building CXX object lib/Target/PowerPC/CMakeFiles/LLVMPowerPCCodeGen.dir/PPCTargetMachine.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/PowerPC/PPCGenSubtargetInfo.inc', macro 'GET_SUBTARGETINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1781/3268] Building CXX object lib/Target/PowerPC/MCTargetDesc/CMakeFiles/LLVMPowerPCDesc.dir/PPCMCCodeEmitter.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/PowerPC/PPCGenInstrInfo.inc', macro 'GET_INSTRINFO_MC_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1808/3268] Building CXX object lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcISelDAGToDAG.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Sparc/SparcGenInstrInfo.inc', macro 'GET_INSTRINFO_CTOR_DTOR' was '(defined)' before but is '(undefined)' now
1 error generated.
[1813/3268] Building CXX object lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcRegisterInfo.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Sparc/SparcGenSubtargetInfo.inc', macro 'GET_SUBTARGETINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1814/3268] Building CXX object lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcTargetMachine.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Sparc/SparcGenRegisterInfo.inc', macro 'GET_REGINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1828/3268] Building CXX object lib/Target/Sparc/InstPrinter/CMakeFiles/LLVMSparcAsmPrinter.dir/SparcInstPrinter.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/Sparc/SparcGenInstrInfo.inc', macro 'GET_INSTRINFO_MC_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1862/3268] Building CXX object lib/Target/SystemZ/CMakeFiles/LLVMSystemZCodeGen.dir/SystemZLDCleanup.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/SystemZ/SystemZGenInstrInfo.inc', macro 'GET_INSTRMAP_INFO' was '(defined)' before but is '(undefined)' now
1 error generated.
[1868/3268] Building CXX object lib/Target/SystemZ/CMakeFiles/LLVMSystemZCodeGen.dir/SystemZSelectionDAGInfo.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/SystemZ/SystemZGenRegisterInfo.inc', macro 'GET_REGINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1871/3268] Building CXX object lib/Target/SystemZ/CMakeFiles/LLVMSystemZCodeGen.dir/SystemZTargetMachine.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/SystemZ/SystemZGenSubtargetInfo.inc', macro 'GET_SUBTARGETINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1932/3268] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86EvexToVex.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/X86/X86GenInstrInfo.inc', macro 'GET_INSTRINFO_CTOR_DTOR' was '(defined)' before but is '(undefined)' now
1 error generated.
[1941/3268] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86SelectionDAGInfo.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/X86/X86GenRegisterInfo.inc', macro 'GET_REGINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1944/3268] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86TargetMachine.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/X86/X86GenSubtargetInfo.inc', macro 'GET_SUBTARGETINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1965/3268] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCCodeEmitter.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/X86/X86GenInstrInfo.inc', macro 'GET_INSTRINFO_MC_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[1992/3268] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreFrameLowering.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/XCore/XCoreGenInstrInfo.inc', macro 'GET_INSTRINFO_CTOR_DTOR' was '(defined)' before but is '(undefined)' now
1 error generated.
[1999/3268] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreRegisterInfo.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/XCore/XCoreGenSubtargetInfo.inc', macro 'GET_SUBTARGETINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[2000/3268] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreTargetMachine.cpp.o
note: when including '/home/jendrik/lib/zapcc-build/lib/Target/XCore/XCoreGenRegisterInfo.inc', macro 'GET_REGINFO_TARGET_DESC' was '(defined)' before but is '(undefined)' now
1 error generated.
[2062/3268] Linking CXX shared library lib/libLTO.so.6.0.0svn
FAILED: : && /home/jendrik/lib/zapcc/bin/zapcc++ -fPIC -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -std=c++11 -w -fcolor-diagnostics -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -Wl,-rpath-link,/home/jendrik/lib/zapcc-build/./lib -Wl,-O3 -Wl,--gc-sections -Wl,--version-script,/home/jendrik/lib/zapcc-build/tools/lto/LTO.exports -shared -Wl,-soname,libLTO.so.6 -o lib/libLTO.so.6.0.0svn tools/lto/CMakeFiles/LTO.dir/LTODisassembler.cpp.o tools/lto/CMakeFiles/LTO.dir/lto.cpp.o lib/libLLVMAArch64CodeGen.a lib/libLLVMAArch64AsmParser.a lib/libLLVMAArch64AsmPrinter.a lib/libLLVMAArch64Desc.a lib/libLLVMAArch64Disassembler.a lib/libLLVMAArch64Info.a lib/libLLVMAArch64Utils.a lib/libLLVMAMDGPUCodeGen.a lib/libLLVMAMDGPUAsmParser.a lib/libLLVMAMDGPUAsmPrinter.a lib/libLLVMAMDGPUDesc.a lib/libLLVMAMDGPUDisassembler.a lib/libLLVMAMDGPUInfo.a lib/libLLVMAMDGPUUtils.a lib/libLLVMARMCodeGen.a lib/libLLVMARMAsmParser.a lib/libLLVMARMAsmPrinter.a lib/libLLVMARMDesc.a lib/libLLVMARMDisassembler.a lib/libLLVMARMInfo.a lib/libLLVMARMUtils.a lib/libLLVMBPFCodeGen.a lib/libLLVMBPFAsmParser.a lib/libLLVMBPFAsmPrinter.a lib/libLLVMBPFDesc.a lib/libLLVMBPFDisassembler.a lib/libLLVMBPFInfo.a lib/libLLVMHexagonCodeGen.a lib/libLLVMHexagonAsmParser.a lib/libLLVMHexagonDesc.a lib/libLLVMHexagonDisassembler.a lib/libLLVMHexagonInfo.a lib/libLLVMLanaiCodeGen.a lib/libLLVMLanaiAsmParser.a lib/libLLVMLanaiAsmPrinter.a lib/libLLVMLanaiDesc.a lib/libLLVMLanaiDisassembler.a lib/libLLVMLanaiInfo.a lib/libLLVMMipsCodeGen.a lib/libLLVMMipsAsmParser.a lib/libLLVMMipsAsmPrinter.a lib/libLLVMMipsDesc.a lib/libLLVMMipsDisassembler.a lib/libLLVMMipsInfo.a lib/libLLVMMSP430CodeGen.a lib/libLLVMMSP430AsmPrinter.a lib/libLLVMMSP430Desc.a lib/libLLVMMSP430Info.a lib/libLLVMNVPTXCodeGen.a lib/libLLVMNVPTXAsmPrinter.a lib/libLLVMNVPTXDesc.a lib/libLLVMNVPTXInfo.a lib/libLLVMPowerPCCodeGen.a lib/libLLVMPowerPCAsmParser.a lib/libLLVMPowerPCAsmPrinter.a lib/libLLVMPowerPCDesc.a lib/libLLVMPowerPCDisassembler.a lib/libLLVMPowerPCInfo.a lib/libLLVMSparcCodeGen.a lib/libLLVMSparcAsmParser.a lib/libLLVMSparcAsmPrinter.a lib/libLLVMSparcDesc.a lib/libLLVMSparcDisassembler.a lib/libLLVMSparcInfo.a lib/libLLVMSystemZCodeGen.a lib/libLLVMSystemZAsmParser.a lib/libLLVMSystemZAsmPrinter.a lib/libLLVMSystemZDesc.a lib/libLLVMSystemZDisassembler.a lib/libLLVMSystemZInfo.a lib/libLLVMX86CodeGen.a lib/libLLVMX86AsmParser.a lib/libLLVMX86AsmPrinter.a lib/libLLVMX86Desc.a lib/libLLVMX86Disassembler.a lib/libLLVMX86Info.a lib/libLLVMX86Utils.a lib/libLLVMXCoreCodeGen.a lib/libLLVMXCoreAsmPrinter.a lib/libLLVMXCoreDesc.a lib/libLLVMXCoreDisassembler.a lib/libLLVMXCoreInfo.a lib/libLLVMBitReader.a lib/libLLVMCore.a lib/libLLVMLTO.a lib/libLLVMMC.a lib/libLLVMMCDisassembler.a lib/libLLVMSupport.a lib/libLLVMTarget.a lib/libLLVMAArch64Desc.a lib/libLLVMAArch64AsmPrinter.a lib/libLLVMAArch64Info.a lib/libLLVMAArch64Utils.a lib/libLLVMAMDGPUDesc.a lib/libLLVMAMDGPUAsmPrinter.a lib/libLLVMAMDGPUInfo.a lib/libLLVMAMDGPUUtils.a lib/libLLVMARMDesc.a lib/libLLVMARMAsmPrinter.a lib/libLLVMARMUtils.a lib/libLLVMARMInfo.a lib/libLLVMBPFAsmPrinter.a lib/libLLVMHexagonDesc.a lib/libLLVMHexagonInfo.a lib/libLLVMLanaiDesc.a lib/libLLVMLanaiAsmPrinter.a lib/libLLVMLanaiInfo.a lib/libLLVMMipsAsmPrinter.a lib/libLLVMMSP430AsmPrinter.a lib/libLLVMNVPTXAsmPrinter.a lib/libLLVMPowerPCAsmPrinter.a lib/libLLVMSparcAsmPrinter.a lib/libLLVMSystemZDesc.a lib/libLLVMSystemZAsmPrinter.a lib/libLLVMSystemZInfo.a lib/libLLVMGlobalISel.a lib/libLLVMX86AsmPrinter.a lib/libLLVMX86Utils.a lib/libLLVMXCoreAsmPrinter.a lib/libLLVMAsmPrinter.a lib/libLLVMDebugInfoCodeView.a lib/libLLVMDebugInfoMSF.a lib/libLLVMSelectionDAG.a lib/libLLVMMCDisassembler.a lib/libLLVMObjCARCOpts.a lib/libLLVMPasses.a lib/libLLVMCodeGen.a lib/libLLVMTarget.a lib/libLLVMipo.a lib/libLLVMScalarOpts.a lib/libLLVMVectorize.a lib/libLLVMBitWriter.a lib/libLLVMLinker.a lib/libLLVMIRReader.a lib/libLLVMAsmParser.a lib/libLLVMInstCombine.a lib/libLLVMInstrumentation.a lib/libLLVMTransformUtils.a lib/libLLVMAnalysis.a lib/libLLVMObject.a lib/libLLVMBitReader.a lib/libLLVMMCParser.a lib/libLLVMMC.a lib/libLLVMProfileData.a lib/libLLVMCore.a lib/libLLVMBinaryFormat.a lib/libLLVMSupport.a -lz -lrt -ldl -ltinfo -lpthread -lm lib/libLLVMDemangle.a -Wl,-rpath,"\$ORIGIN/../lib" && :
lib/libLLVMARMCodeGen.a(ARMRegisterBankInfo.cpp.o):(.data._ZN4llvm22ARMGenRegisterBankInfo8RegBanksE+0x0): multiple definition of `llvm::ARMGenRegisterBankInfo::RegBanks'
lib/libLLVMARMCodeGen.a(ARMSubtarget.cpp.o):(.data._ZN4llvm22ARMGenRegisterBankInfo8RegBanksE+0x0): first defined here
lib/libLLVMARMCodeGen.a(ARMRegisterBankInfo.cpp.o): In function `llvm::ARMGenRegisterBankInfo::ARMGenRegisterBankInfo()':
/home/jendrik/lib/zapcc-git/lib/Target/ARM/ARMRegisterBankInfo.cpp:(.text._ZN4llvm22ARMGenRegisterBankInfoC2Ev+0x0): multiple definition of `llvm::ARMGenRegisterBankInfo::ARMGenRegisterBankInfo()'
lib/libLLVMARMCodeGen.a(ARMSubtarget.cpp.o):/home/jendrik/lib/zapcc-git/lib/Target/ARM/ARMSubtarget.cpp:(.text._ZN4llvm22ARMGenRegisterBankInfoC2Ev+0x0): first defined here
lib/libLLVMARMCodeGen.a(ARMRegisterBankInfo.cpp.o): In function `llvm::ARMGenRegisterBankInfo::ARMGenRegisterBankInfo()':
/home/jendrik/lib/zapcc-git/lib/Target/ARM/ARMRegisterBankInfo.cpp:(.text._ZN4llvm22ARMGenRegisterBankInfoC2Ev+0x0): multiple definition of `llvm::ARMGenRegisterBankInfo::ARMGenRegisterBankInfo()'
lib/libLLVMARMCodeGen.a(ARMSubtarget.cpp.o):/home/jendrik/lib/zapcc-git/lib/Target/ARM/ARMSubtarget.cpp:(.text._ZN4llvm22ARMGenRegisterBankInfoC2Ev+0x0): first defined here
lib/libLLVMARMCodeGen.a(ARMRegisterBankInfo.cpp.o):(.bss._ZN4llvm3ARM10FPRRegBankE+0x0): multiple definition of `llvm::ARM::FPRRegBank'
lib/libLLVMARMCodeGen.a(ARMSubtarget.cpp.o):(.bss._ZN4llvm3ARM10FPRRegBankE+0x0): first defined here
lib/libLLVMARMCodeGen.a(ARMRegisterBankInfo.cpp.o):(.bss._ZN4llvm3ARM10GPRRegBankE+0x0): multiple definition of `llvm::ARM::GPRRegBank'
lib/libLLVMARMCodeGen.a(ARMSubtarget.cpp.o):(.bss._ZN4llvm3ARM10GPRRegBankE+0x0): first defined here
lib/libLLVMHexagonCodeGen.a(HexagonISelDAGToDAGHVX.cpp.o): In function `llvm::HexagonDAGToDAGISel::SelectCode(llvm::SDNode*)':
/home/jendrik/lib/zapcc-git/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp:(.text._ZN4llvm19HexagonDAGToDAGISel10SelectCodeEPNS_6SDNodeE+0x0): multiple definition of `llvm::HexagonDAGToDAGISel::SelectCode(llvm::SDNode*)'
lib/libLLVMHexagonCodeGen.a(HexagonISelDAGToDAG.cpp.o):/home/jendrik/lib/zapcc-git/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp:(.text._ZN4llvm19HexagonDAGToDAGISel10SelectCodeEPNS_6SDNodeE+0x0): first defined here
lib/libLLVMHexagonCodeGen.a(HexagonISelDAGToDAGHVX.cpp.o): In function `llvm::HexagonDAGToDAGISel::RunSDNodeXForm(llvm::SDValue, unsigned int)':
/home/jendrik/lib/zapcc-git/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp:(.text._ZN4llvm19HexagonDAGToDAGISel14RunSDNodeXFormENS_7SDValueEj+0x0): multiple definition of `llvm::HexagonDAGToDAGISel::RunSDNodeXForm(llvm::SDValue, unsigned int)'
lib/libLLVMHexagonCodeGen.a(HexagonISelDAGToDAG.cpp.o):/home/jendrik/lib/zapcc-git/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp:(.text._ZN4llvm19HexagonDAGToDAGISel14RunSDNodeXFormENS_7SDValueEj+0x0): first defined here
lib/libLLVMHexagonCodeGen.a(HexagonISelDAGToDAGHVX.cpp.o): In function `llvm::HexagonDAGToDAGISel::CheckComplexPattern(llvm::SDNode*, llvm::SDNode*, llvm::SDValue, unsigned int, llvm::SmallVectorImpl<std::pair<llvm::SDValue, llvm::SDNode*> >&)':
/home/jendrik/lib/zapcc-git/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp:(.text._ZN4llvm19HexagonDAGToDAGISel19CheckComplexPatternEPNS_6SDNodeES2_NS_7SDValueEjRNS_15SmallVectorImplISt4pairIS3_S2_EEE+0x0): multiple definition of `llvm::HexagonDAGToDAGISel::CheckComplexPattern(llvm::SDNode*, llvm::SDNode*, llvm::SDValue, unsigned int, llvm::SmallVectorImpl<std::pair<llvm::SDValue, llvm::SDNode*> >&)'
lib/libLLVMHexagonCodeGen.a(HexagonISelDAGToDAG.cpp.o):/home/jendrik/lib/zapcc-git/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp:(.text._ZN4llvm19HexagonDAGToDAGISel19CheckComplexPatternEPNS_6SDNodeES2_NS_7SDValueEjRNS_15SmallVectorImplISt4pairIS3_S2_EEE+0x0): first defined here
lib/libLLVMHexagonCodeGen.a(HexagonISelDAGToDAGHVX.cpp.o): In function `llvm::HexagonDAGToDAGISel::CheckNodePredicate(llvm::SDNode*, unsigned int) const':
/home/jendrik/lib/zapcc-git/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp:(.text._ZNK4llvm19HexagonDAGToDAGISel18CheckNodePredicateEPNS_6SDNodeEj+0x0): multiple definition of `llvm::HexagonDAGToDAGISel::CheckNodePredicate(llvm::SDNode*, unsigned int) const'
lib/libLLVMHexagonCodeGen.a(HexagonISelDAGToDAG.cpp.o):/home/jendrik/lib/zapcc-git/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp:(.text._ZNK4llvm19HexagonDAGToDAGISel18CheckNodePredicateEPNS_6SDNodeEj+0x0): first defined here
lib/libLLVMHexagonCodeGen.a(HexagonISelDAGToDAGHVX.cpp.o): In function `llvm::HexagonDAGToDAGISel::CheckPatternPredicate(unsigned int) const':
/home/jendrik/lib/zapcc-git/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp:(.text._ZNK4llvm19HexagonDAGToDAGISel21CheckPatternPredicateEj+0x0): multiple definition of `llvm::HexagonDAGToDAGISel::CheckPatternPredicate(unsigned int) const'
lib/libLLVMHexagonCodeGen.a(HexagonISelDAGToDAG.cpp.o):/home/jendrik/lib/zapcc-git/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp:(.text._ZNK4llvm19HexagonDAGToDAGISel21CheckPatternPredicateEj+0x0): first defined here
zapcc: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
The macros notes could be ignored. For the link error, try to copy over bin/zapccs.config
the latest head, https://github.com/yrnkrn/zapcc/blob/master/tools/zapccs/zapccs.config.
In the build directory, I did
wget https://raw.githubusercontent.com/yrnkrn/zapcc/master/tools/zapccs/zapccs.config -O bin/zapccs.config
and then
ninja
and got the same linker error as in my previous message. I'll update to the latest head and will try again.
After the wget
please rm -rf build
before rebuilding.
Latest head is LLVM update but there are no core changes in zapcc itself.
I tried that, but got the same linker error.
Pushed 2eaeb851592a1edcd2508fc9fa86630e3060e374, try it. First make sure to remove all existing versions of zapcc and the build directories. Do not use the prebuilt binary, it is outdated which is why it was removed from the site. Then build zapcc using gcc or clang. Finally use the newly-built zapcc to build zapcc sources into a new build directory, not where it was just built.
That worked. Thanks!
First off, thanks for making zapcc open source!
Revision: 6646fe3b5fe3cb712617f942ecf8462a0145accf OS: Ubuntu 16.04 CXX: g++ (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
I get the following error (resuming an earlier compilation):
The
LLVMHello.exports
file exists. Do you know what's going wrong here?