On 22.07.2018 17:41, Коля Гурьев wrote: > Hi, > > 20.07.2018 14:38, Matthias Klose пишет: >> the package ftbfs at least on armel, and mips* in Debian > > It failed to build due to a missing linker option, -latomic. The fix is > already available[1], but an issue is that the option may add an > unneeded dependency. > >> Did you make any measurements how much better the code is with -flto? I'm >> unsure if it's worth the trouble for a desktop application. > > Deactivation of LTO leads to more memory consumption during compilation. > At least at my laptop building process without -flto requires 5.81 GB of > virtual memory, takes two and a half hours and produces a binary of > 29.7 MB size. In current state, building of the package requires 4.97 GB > of virtual memory, takes about one hour and produces a binary of 23.2 MB > size. To be honest, I have the laptop with 4 GB of RAM, so such a long > time in the first case is understandable. Obviously, without LTO, > results are less good, but we can try to disable link-time optimizations > as an experiment.
fyi, I saw the opposite, my builds succeeding without -flto, but failing with -flto (tested only with GCC 8).