Currently Online

Latest Posts

Topic: What is LTO?

Atanase
Avatar
Joined: 2021-04-15, 13:33
Posts: 126
Ranking
At home in WL-forums
Location: Béarn (France)
Posted at: 2021-04-23, 00:41

Hello,

My first compilation was : ./compile.sh -r -w
I tried to update by : ./update.sh -r -w

Result :
lto1: fatal error: bytecode stream in file ‘CMakeFiles/test_io_filesystem.dir/filesystem_test_main.cc.o’ generated with LTO version 9.2 instead of the expected 9.3

As my system was updated this afternoon, maybe is it "normal". face-wink.png

Do you think that if I remove the build directory and re compile it will work?


La connaissance ne vaut que si elle est partagée par le plus grand nombre.
---------------------------------------
Knowledge is only valuable if it is shared by the greatest number.

Top Quote
Atanase
Avatar
Joined: 2021-04-15, 13:33
Posts: 126
Ranking
At home in WL-forums
Location: Béarn (France)
Posted at: 2021-04-23, 09:33

Hello,

Ok, I did it. I removed the build directory and did a new compilation. I think this happened because of the update of my system.
Now I'll know, if after an update of my system I have some problem, no need to procrastinate, I have just to remove build and redo all.


La connaissance ne vaut que si elle est partagée par le plus grand nombre.
---------------------------------------
Knowledge is only valuable if it is shared by the greatest number.

Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 2045
Ranking
One Elder of Players
Location: Germany
Posted at: 2021-04-23, 09:54

Yep face-smile.png

Same thing can happen when ICU or Boost get updated by the system. Cleaning the build directory is also needed if you want to compile without ASAN enabled (the -a-switch) and prior ASAN was enabled. You might have noticed that ASAN mentioned some memory lost after quitting the game. This is a bug in SDL and not a bug of widelands.

When running ./update.sh you don't need to specify options. This script is build when running ./compile.sh and remembers the options provided to ./compiles.sh.


Top Quote
Atanase
Avatar
Joined: 2021-04-15, 13:33
Posts: 126
Ranking
At home in WL-forums
Location: Béarn (France)
Posted at: 2021-04-23, 16:44

Thank you, kaputtnik,

It reminds me of the days when Unix started, when it crashed we started compilations again. face-smile.png
I had to recompile at least once a week for 6 months, and at the time we had no tools, we made the Makefile by hand with 'vi' not even enhanced. face-smile.png

I'm not going to play veterans, but I look back on those days with some nostalgia. face-wink.png


La connaissance ne vaut que si elle est partagée par le plus grand nombre.
---------------------------------------
Knowledge is only valuable if it is shared by the greatest number.

Top Quote