While building llvm-next 333878, compiler-rt fails to build with following errors:
/usr/x86_64-pc-linux-gnu/binutils-bin/2.27.0/ld.bfd.real: i386:x86-64 architecture of input file `/usr/lib64/clang/7.0.0/lib/linux/libclang_rt.builtins-x86_64.a(udivdi3.c.o)' is incompatible with i386 output
/usr/x86_64-pc-linux-gnu/binutils-bin/2.27.0/ld.bfd.real: i386:x86-64 architecture of input file `/usr/lib64/clang/7.0.0/lib/linux/libclang_rt.builtins-x86_64.a(udivmoddi4.c.o)' is incompatible with i386 output
projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.i386.dir/sanitizer_unwind_linux_libcdep.cc.o: In function `__sanitizer::Unwind_GetIP(_Unwind_Context*)':
/home/llozano/llvm-mage/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc:100: undefined reference to `_Unwind_GetIP'
projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.i386.dir/sanitizer_unwind_linux_libcdep.cc.o: In function `Unwind_GetIP':
/home/llozano/llvm-mage/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc:100: undefined reference to `_Unwind_GetIP'
projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.i386.dir/sanitizer_unwind_linux_libcdep.cc.o: In function `__sanitizer::BufferedStackTrace::SlowUnwindStack(unsigned long, unsigned int)':
/home/llozano/llvm-mage/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc:127: undefined reference to `_Unwind_Backtrace'
projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.i386.dir/sanitizer_unwind_linux_libcdep.cc.o: In function `SlowUnwindStack':
/home/llozano/llvm-mage/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc:127: undefined reference to `_Unwind_Backtrace'
I file LLVM bug at https://bugs.llvm.org/show_bug.cgi?id=38025
Comment 1 by llozano@chromium.org
, Jul 24