You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ITK defaults to using the "gold" linker on linux if present. Word on the street is that this linker is deprecated - at least as of Fedora 33 - and in particular does not support LTO (link time optimizations) that Fedora is starting to enable by default. The build fails with:
/usr/bin/ld.gold: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
gmake[2]: ***
[Modules/Filtering/ImageIntensity/test/CMakeFiles/ITKImageIntensityTestDriver.dir/build.make:1307:
bin/ITKImageIntensityTestDriver] Error 1
When compiled with -flto=auto -ffat-lto-objects
A test of compiles on Fedora rawhide saw no overall speed different between using "gold" and the default linker. Time to change the default?
Versions
4.13.3
The text was updated successfully, but these errors were encountered:
opoplawski
added
the
type:Bug
Inconsistencies or issues which will cause an incorrect result under some or all circumstances
label
Aug 7, 2020
I will not however that reverting to the standard linker does not resolve the LTO build failure, so it's less of a concern than I initially thought it was. At least for now.
When performing a fresh, build compile times dominate over link times, so the linker speed benefits only really shine with incremental (development builds).
But, if the gold linker is not well maintained, we could remove support for it.
Description
ITK defaults to using the "gold" linker on linux if present. Word on the street is that this linker is deprecated - at least as of Fedora 33 - and in particular does not support LTO (link time optimizations) that Fedora is starting to enable by default. The build fails with:
When compiled with
-flto=auto -ffat-lto-objects
A test of compiles on Fedora rawhide saw no overall speed different between using "gold" and the default linker. Time to change the default?
Versions
4.13.3
The text was updated successfully, but these errors were encountered: