blob: a04c0c2897e3948ba0537ff54ae702f9439dbb6a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
LTO build (default) broken on ubuntu 20.04
Default build configuration leads to the following. Disabling LTO fixes the build
```
FAILED: Bin/Opt
: && /usr/bin/clang++ -mcx16 -march=native -O2 -g -DNDEBUG -fno-omit-frame-pointer -flto=thin -fPIE -pie Source/Tools/CMakeFiles/Opt.dir/Opt.cpp.o -o Bin/Opt External/FEXCore/Source/libFEXCore.a Source/Common/libCommon.a Source/CommonCore/libCommonCore.a -lpthread External/cpp-optparse/libcpp-optparse.a External/json-maker/libjson-maker.a External/FEXCore/Source/libFEXCore.a External/FEXCore/Source/libFEXCore_Base.a External/fmt/libfmt.a External/vixl/src/libvixl.a -ldl External/xxhash/libxxhash.a External/tiny-json/libtiny-json.a -lpthread && :
/usr/bin/ld: error: Failed to link module External/FEXCore/Source/libFEXCore.a.llvm.80876708.jemalloc.c: Expected at most one ThinLTO module per bitcode file
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[7/23] Linking CXX executable Bin/UnitTestGenerator
FAILED: Bin/UnitTestGenerator
: && /usr/bin/clang++ -mcx16 -march=native -O2 -g -DNDEBUG -fno-omit-frame-pointer -flto=thin -fPIE -pie Source/Tests/CMakeFiles/UnitTestGenerator.dir/UnitTestGenerator.cpp.o -o Bin/UnitTestGenerator External/FEXCore/Source/libFEXCore.a Source/Common/libCommon.a Source/CommonCore/libCommonCore.a -lpthread External/cpp-optparse/libcpp-optparse.a External/json-maker/libjson-maker.a External/FEXCore/Source/libFEXCore.a External/FEXCore/Source/libFEXCore_Base.a External/fmt/libfmt.a External/vixl/src/libvixl.a -ldl External/xxhash/libxxhash.a External/tiny-json/libtiny-json.a -lpthread && :
/usr/bin/ld: error: Failed to link module External/FEXCore/Source/libFEXCore.a.llvm.80876708.jemalloc.c: Expected at most one ThinLTO module per bitcode file
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[10/23] Building CXX object Source/Tests/LinuxSyscalls/CMakeFiles/LinuxEmulation.dir/x32/IoctlEmulation.cpp.o
```
|