[cfe-dev] [10.0.0 Release] Release Candidate 1 is here

Hans Wennborg via cfe-dev cfe-dev at lists.llvm.org
Mon Feb 3 02:46:16 PST 2020

On Mon, Feb 3, 2020 at 11:17 AM Martijn Otto via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
> I didn't open any bugs yet, because as of yet I'm not sure the problem
> isn't on my side.
> I checked out the release branch (release/10.x) and configured to build
> clang with compiler-rt enabled:
> cmake -B build -S llvm -DCMAKE_BUILD_TYPE=Release
> -DCMAKE_INSTALL_PREFIX=/usr/lib/llvm-10
> -DLLVM_ENABLE_PROJECTS='clang;libcxx;libcxxabi;compiler-rt'
> When I then build the program, it results in a linker error:
> [ 79%] Linking CXX shared library
> ../../../../lib/clang/10.0.0/lib/linux/libclang_rt.hwasan-x86_64.so
> /usr/bin/ld: CMakeFiles/RTHwasan_dynamic.x86_64.dir/hwasan.cpp.o:
> relocation R_X86_64_PC32 against undefined symbol `__ehdr_start' can
> not be used when making a shared object; recompile with -fPIC
> If I build clang without compiler-rt I do not get any linker errors and
> the compiler works as expected. Is this a new bug or am I doing
> something wrong?

This sounds like https://bugs.llvm.org/show_bug.cgi?id=42994

More information about the cfe-dev mailing list