Latest Posts

Topic: build error

Ex-Member
Avatar
Topic Opener
Joined: 2014-09-12, 09:53
Posts: 184
Ranking
Widelands-Forum-Junkie
Posted at: 2017-11-27, 10:28

Trying to build current trunk on Arch linux I get this

==13711==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.


0% tests passed, 4 tests failed out of 4

Total Test time (real) =   0.06 sec

The following tests FAILED:
      1 - test_economy (Failed)
      2 - test_io_filesystem (Failed)
      3 - notifications_test (Failed)
      4 - test_scripting (Failed)
Errors while running CTest
make[2]: *** [CMakeFiles/_run_all_tests.dir/build.make:57: CMakeFiles/_run_all_tests] Error 8
make[1]: *** [CMakeFiles/Makefile2:969: CMakeFiles/_run_all_tests.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Edit by kaputtnik: Use Codeblocks

Edited: 2017-11-27, 11:48

Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 19:48
Posts: 2440
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2017-11-27, 11:55

I am also on arch-linux but didn't get this error. Can you check wich compiler you are using?

pacman -Qi gcc
pacman -Qi clang

You could try to disable ASAN (Adress Sanitizer) by adding a compile switch '-a':

./compile.sh -a -w

The '-w' switch omits also building of website related executables, so compilation is a bit faster.

Edited: 2017-11-27, 13:12

Fight simulator for Widelands:
https://wide-fighter.netlify.app/

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 14:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2017-11-27, 14:27

Another option would be to create a release build with our compile script, which will also switch off ASan:

compile.sh -r

If you're not using our compile script, find the following line in CMakeLists.txt:

option(OPTION_ASAN "Build with AddressSanitizer" ON)

And set the option to OFF.

This is what I could find on the internet:

https://github.com/google/sanitizers/issues/810


Busy indexing nil values

Top Quote
Ex-Member
Avatar
Topic Opener
Joined: 2014-09-12, 09:53
Posts: 184
Ranking
Widelands-Forum-Junkie
Posted at: 2017-11-27, 14:32

I just use the pkgbuild from aur which does not seem to have a compile directive, no idea which compiler it uses, I have gcc and clang.


Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 19:48
Posts: 2440
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2017-11-27, 15:59

Ah... the pkgbuild. Try to edit the file PKGBUILD and add the option after line 50:

cmake .. -DCMAKE_BUILD_TYPE=Release \
    -DOPTION_BUILD_WEBSITE_TOOLS=OFF \
    -DCMAKE_INSTALL_PREFIX=/usr/bin \
    -DWL_INSTALL_DATADIR=/usr/share/widelands \
    -DOPTION_ASAN=OFF

Note the additional backslash (' \') after '...=/usr/share/widelands'. If that works the package maintainer of the aur should be informed.


Fight simulator for Widelands:
https://wide-fighter.netlify.app/

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 14:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2017-11-27, 19:28

Thanks for the info - I have popped the maintainer an e-mail.


Busy indexing nil values

Top Quote
Tmk
Avatar
Joined: 2010-05-08, 17:06
Posts: 44
Ranking
Pry about Widelands
Posted at: 2017-11-27, 19:33

I built the package with and without kaputtniks changes and can confirm the crash and also the fix. I made a note at the packages site.

Edit: Oh hello GunChleoc, you were faster face-smile.png

Edited: 2017-11-27, 19:34

Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 19:48
Posts: 2440
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2017-11-27, 21:35

Thanks TmK face-smile.png And of course GunChleoc face-smile.png


Fight simulator for Widelands:
https://wide-fighter.netlify.app/

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 14:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2017-11-27, 22:12

Well, you solved it, we're just passing on the message face-wink.png


Busy indexing nil values

Top Quote
gamag

Joined: 2012-01-05, 17:27
Posts: 15
Ranking
Pry about Widelands
Location: Switzerland
Posted at: 2017-11-27, 22:41

Should be fixed now. Thank you for notifying me, Tmk and GunChleoc face-wink.png


Top Quote