Building 3.17.3 with LTO enabled - fails
I've just tried to build v3.17.3 with LTO enabled (CMake_BUILD_LTO
being ON
). That failed, saying:
lto1: fatal error: bytecode stream in file ‘libcmsys.a’ generated with LTO version 8.1 instead of the expected 7.1
compilation terminated.
lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [Source/kwsys/CMakeFiles/cmsysTestsCxx.dir/build.make:235: Source/kwsys/cmsysTestsCxx] Error 1
I was building this on Devuan GNU/Linux Beowulf, on an Intel i5-7600K CPU.