Description
Bugzilla Link | 39070 |
Version | unspecified |
OS | Linux |
CC | @rui314 |
Fixed by commit(s) | r343280 |
Extended Description
Facing the below error while Generating XRayTest-x86_64-Test of 'make check-all':
ld.lld: warning: found local symbol '__bss_start' in global part of symbol table in file /home/amd/JENKINS/workspace/CPUPC_Mirror_Branch/BUILD_DIR/lib/libLLVM-8svn.so
ld.lld: warning: found local symbol '_end' in global part of symbol table in file /home/amd/JENKINS/workspace/CPUPC_Mirror_Branch/BUILD_DIR/lib/libLLVM-8svn.so
ld.lld: warning: found local symbol '_edata' in global part of symbol table in file /home/amd/JENKINS/workspace/CPUPC_Mirror_Branch/BUILD_DIR/lib/libLLVM-8svn.so
ld.lld: error: undefined symbol: llvm::detail::TakeError(llvm::Error)
Repository Revision info:
project: llvm/tools/clang at revision: e0d61134f09e29b71a0f6eea9502a2ffcf26fcdf
project: llvm/projects/compiler-rt at revision: 706829d
project: flang at revision: 498be068d81465f7483bf8ad92713a23cc49dd17
project: llvm/tools/lld at revision: fe9f98f
project: llvm at revision: 7b12994
The below commands used on RHEL 7.3 and encountered the issue:
- cmake -G"Unix Makefiles" -DLLVM_BUILD_LLVM_DYLIB:STRING=ON -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_ENABLE_LIBEDIT=OFF -DCMAKE_BUILD_TYPE:STRING=RELEASE -DCLANG_DEFAULT_LINKER:STRING=lld -DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON -DLLVM_TARGETS_TO_BUILD:STRING=X86 -DLLVM_ENABLE_ASSERTIONS:BOOL=ON -DPACKAGE_VERSION=AMD.LLVM.8.0.0.S.2018_09_24 -DCLANG_VENDOR=AMD.LLVM.S.2018_09_24 -DCLANG_REPOSITORY_STRING=CLANG: -DCMAKE_CXX_FLAGS='-Wno-error=pedantic' -DCMAKE_INSTALL_PREFIX:PATH=/home/amd/MyInstall-Dir1 /home/amd/latest_src/llvm
- make
- make check
- make check-all