Latest Posts

Topic: Unable to compile

Nordfriese
Avatar
Topic Opener
Joined: 2017-01-17, 17:07
Posts: 1949
OS: Debian Testing
Version: Latest master
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2019-04-26, 15:13

I just upgraded to Ubuntu 19.04 and am suddenly unable to compile because of a very large number of undefined references such as:

/usr/bin/ld: […]/build/../src/graphic/text/bidi.cc:577: undefined reference to `icu_60::UnicodeString::char32At(int) const'
/usr/bin/ld: […]/build/../src/graphic/text/bidi.cc:600: undefined reference to `icu_60::UnicodeString::~UnicodeString()'
/usr/bin/ld: src/graphic/text/libgraphic_text.a(bidi.cc.o):(.data.rel.ro._ZTVN6icu_6014StringByteSinkINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE[_ZTVN6icu_6014StringByteSinkINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE]+0x30): undefined reference to `icu_60::ByteSink::Flush()'

I already checked that all dependencies are installed.

I didn´t try to compile trunk yet, but all my development branches where I merged trunk recently (trunk rev 9084) are affected. A branch where the last merge with trunk happened several weeks ago compiles fine.

Does anyone else have that problem? Suggestions how to solve are appreciated face-smile.png


Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 22:16
Posts: 2648
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2019-04-26, 16:17

I have seen something similar lately in an "update" build in my msys2 environment. Do you have this as well on a clean build from scratch?


Top Quote
Nordfriese
Avatar
Topic Opener
Joined: 2017-01-17, 17:07
Posts: 1949
OS: Debian Testing
Version: Latest master
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2019-04-26, 16:33

Now I tried to compile trunk and deleted the build directory before starting. Same result face-sad.png


Top Quote
Nordfriese
Avatar
Topic Opener
Joined: 2017-01-17, 17:07
Posts: 1949
OS: Debian Testing
Version: Latest master
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2019-04-26, 17:36

I now deleted the build dir again and recompiled → still didn´t work.
And then I did the same thing again → it suddenly compiles correctly.

So it probably was an update of some library that happened since I last compiled, though that doesn´t explain why it only worked on third try. Well, at least I can compile again face-smile.png


Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 22:16
Posts: 2648
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2019-04-26, 17:42

Great to hear you are ready to compile again. I would suspect ICU Package updated with Ubuntu being the culprit from the above error message. As the dependencies are managed in cmake you never know why it works or why not face-wink.png


Top Quote
Tribal-Chief
Avatar
Joined: 2018-12-09, 16:16
Posts: 62
Ranking
Likes to be here
Posted at: 2019-04-27, 11:49

I have been unable to compile for a week, mainly seems to be the usual sort of boost errors but every attemp gave different errors. A system update today seemed to solve the problem, it did include icu, but I now get a fatal crash running WL

Could not read world information: [../src/scripting/lua_errors.cc:22] [../src/scripting/lua_errors.cc:22] [string "scripting/mapobjects.lua"]:2: unexpected symbol near '<<'
stack traceback:
    [string "world/init.lua"]:17: in main chunkLoading the world took 28ms
Fatal exception: [../src/scripting/lua_errors.cc:22] [../src/scripting/lua_errors.cc:22] [string "scripting/mapobjects.lua"]:2: unexpected symbol near '<<'
stack traceback:
    [string "world/init.lua"]:17: in main chunk
FATAL ERROR - game crashed. Attempting emergency save.
lastserial: 0

Unexpected error during the game
[../src/scripting/lua_errors.cc:22] [../src/scripting/lua_errors.cc:22] [string "scripting/mapobjects.lua"]:2: unexpected symbol near '<<'
stack traceback:
    [string "world/init.lua"]:17: in main chunk
Edited: 2019-04-27, 12:05

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

I can't reproduce the problem. Which operating system & version are you on, how did you compile (exact command used), and did you start a new game (+ which type of game) or a savegame?


Busy indexing nil values

Top Quote
Tribal-Chief
Avatar
Joined: 2018-12-09, 16:16
Posts: 62
Ranking
Likes to be here
Posted at: 2019-04-27, 12:52

Version bzr9085 on Arch linux compiled with ./compile.sh -r -w, starting new game, any map.


Top Quote
teppo

Joined: 2012-01-30, 08:42
Posts: 423
Ranking
Tribe Member
Posted at: 2019-04-27, 14:52

Have you tried nuking the "build" directory, and recomple after that?

I have seen it getting corrupted. In my case it was a stupid user error (=upgrade system while building widelands), though.


Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 22:16
Posts: 2648
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2019-04-27, 15:32

This looks like as if there might be a mergeconflict in either mapobjects.lua or world/init.lua cause this is the only case how << could have been gone in there. so please check the 2 files for any anomalies


Top Quote