Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error from source code #1428

Open
0hanghang opened this issue Mar 16, 2020 · 0 comments
Open

compile error from source code #1428

0hanghang opened this issue Mar 16, 2020 · 0 comments

Comments

@0hanghang
Copy link

I've been compiling the hcc(default branch) with llvm(amd-stg-open branch) on arm64 platform ,ROCT-THUNK-INTERFACE ROCR-RUNTIME, ROCM-DEVICE-LIBS have been compiled and make install .but when got to the hcc ,I follow the step :
1.cmake -DCMAKE_BUILD_TYPE=Release ..
2. make
Log is bellow:
[ 44%] Built target LTO_exports
Scanning dependencies of target LTO
[ 44%] Building CXX object llvm-project/llvm/tools/lto/CMakeFiles/LTO.dir/LTODisassembler.cpp.o
[ 44%] Building CXX object llvm-project/llvm/tools/lto/CMakeFiles/LTO.dir/lto.cpp.o
[ 44%] Linking CXX shared library ../../lib/libLTO.so
../../lib/libLLVMAMDGPUCodeGen.a(AMDGPUTargetMachine.cpp.o): In function (anonymous namespace)::GCNPassConfig::addFastRegAlloc()': AMDGPUTargetMachine.cpp:(.text._ZN12_GLOBAL__N_113GCNPassConfig15addFastRegAllocEv+0x4): undefined reference to llvm::PHIEliminationID'
AMDGPUTargetMachine.cpp:(.text._ZN12_GLOBAL__N_113GCNPassConfig15addFastRegAllocEv+0x14): undefined reference to llvm::PHIEliminationID' ../../lib/libLLVMAMDGPUCodeGen.a(AMDGPUTargetMachine.cpp.o): In function (anonymous namespace)::GCNPassConfig::addOptimizedRegAlloc()':
AMDGPUTargetMachine.cpp:(.text._ZN12_GLOBAL__N_113GCNPassConfig20addOptimizedRegAllocEv+0x78): undefined reference to llvm::PHIEliminationID' AMDGPUTargetMachine.cpp:(.text._ZN12_GLOBAL__N_113GCNPassConfig20addOptimizedRegAllocEv+0x88): undefined reference to llvm::PHIEliminationID'
../../lib/libLLVMAArch64CodeGen.a(AArch64TargetMachine.cpp.o): In function (anonymous namespace)::AArch64PassConfig::addPreRegAlloc()': AArch64TargetMachine.cpp:(.text._ZN12_GLOBAL__N_117AArch64PassConfig14addPreRegAllocEv+0x64): undefined reference to llvm::PeepholeOptimizerID'
AArch64TargetMachine.cpp:(.text._ZN12_GLOBAL__N_117AArch64PassConfig14addPreRegAllocEv+0x74): undefined reference to llvm::PeepholeOptimizerID' ../../lib/libLLVMCodeGen.a(TargetPassConfig.cpp.o): In function llvm::TargetPassConfig::addMachineSSAOptimization()':
TargetPassConfig.cpp:(.text._ZN4llvm16TargetPassConfig25addMachineSSAOptimizationEv+0x108): undefined reference to llvm::PeepholeOptimizerID' TargetPassConfig.cpp:(.text._ZN4llvm16TargetPassConfig25addMachineSSAOptimizationEv+0x118): undefined reference to llvm::PeepholeOptimizerID'
../../lib/libLLVMCodeGen.a(TargetPassConfig.cpp.o): In function llvm::TargetPassConfig::addFastRegAlloc()': TargetPassConfig.cpp:(.text._ZN4llvm16TargetPassConfig15addFastRegAllocEv+0x4): undefined reference to llvm::PHIEliminationID'
TargetPassConfig.cpp:(.text._ZN4llvm16TargetPassConfig15addFastRegAllocEv+0x14): undefined reference to llvm::PHIEliminationID' ../../lib/libLLVMCodeGen.a(TargetPassConfig.cpp.o): In function llvm::TargetPassConfig::addOptimizedRegAlloc()':
TargetPassConfig.cpp:(.text._ZN4llvm16TargetPassConfig20addOptimizedRegAllocEv+0x7c): undefined reference to llvm::PHIEliminationID' TargetPassConfig.cpp:(.text._ZN4llvm16TargetPassConfig20addOptimizedRegAllocEv+0x8c): undefined reference to llvm::PHIEliminationID'
../../lib/libLLVMCodeGen.a(TargetPassConfig.cpp.o): In function llvm::TargetPassConfig::addMachinePasses()': TargetPassConfig.cpp:(.text._ZN4llvm16TargetPassConfig16addMachinePassesEv+0x378): undefined reference to llvm::PHIEliminationID'
../../lib/libLLVMCodeGen.a(TargetPassConfig.cpp.o):TargetPassConfig.cpp:(.text._ZN4llvm16TargetPassConfig16addMachinePassesEv+0x388): more undefined references to llvm::PHIEliminationID' follow ../../lib/libLLVMCodeGen.a(CodeGen.cpp.o): In function llvm::initializeCodeGen(llvm::PassRegistry&)':
CodeGen.cpp:(.text._ZN4llvm17initializeCodeGenERNS_12PassRegistryE+0x1e8): undefined reference to llvm::initializePHIEliminationPass(llvm::PassRegistry&)' CodeGen.cpp:(.text._ZN4llvm17initializeCodeGenERNS_12PassRegistryE+0x1f8): undefined reference to llvm::initializePeepholeOptimizerPass(llvm::PassRegistry&)'
collect2: error: ld returned 1 exit status
llvm-project/llvm/tools/lto/CMakeFiles/LTO.dir/build.make:181: recipe for target 'llvm-project/llvm/lib/libLTO.so.11git' failed
make[2]: *** [llvm-project/llvm/lib/libLTO.so.11git] Error 1
CMakeFiles/Makefile2:19886: recipe for target 'llvm-project/llvm/tools/lto/CMakeFiles/LTO.dir/all' failed
make[1]: *** [llvm-project/llvm/tools/lto/CMakeFiles/LTO.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error

Does anyone have some ideas? thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant