You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
keykeypi
Posts: 3 Joined: Fri Oct 25, 2024 7:15 am
Post
by keykeypi » Fri Oct 25, 2024 7:28 am
When I tried to build freeciv 3.1 using Msys2 as prescribed in
https://freeciv.fandom.com/wiki/Msys2_A ... nvironment , I am getting following error during make step
Code: Select all
E:/tmp/fc/msys2-freeciv-win64-230220/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86
_64-w64-mingw32/bin/ld.exe: ../lib/.libs/libtolua.a(tolua_is.o): in function `tolua_error':
E:\tmp\fc\msys2-freeciv-win64-230220\home\krishna\S3_1\builds\gtk322\dependencies\tolua-5.2\src\lib/
../../../../../../src/dependencies/tolua-5.2/src/lib/tolua_is.c:90: undefined reference to `luaL_err
or'
collect2.exe: error: ld returned 1 exit status
make[4]: *** [Makefile:666: tolua.exe] Error 1
make[4]: Leaving directory '/home/krishna/S3_1/builds/gtk322/dependencies/tolua-5.2/src/bin'
make[3]: *** [Makefile:635: all-recursive] Error 1
make[3]: Leaving directory '/home/krishna/S3_1/builds/gtk322/dependencies/tolua-5.2/src'
make[2]: *** [Makefile:643: all-recursive] Error 1
make[2]: Leaving directory '/home/krishna/S3_1/builds/gtk322/dependencies/tolua-5.2'
make[1]: *** [Makefile:651: all-recursive] Error 1
make[1]: Leaving directory '/home/krishna/S3_1/builds/gtk322/dependencies'
make: *** [Makefile:836: all-recursive] Error 1
What am I doing wrong?
Attachments
error.txt
(141.91 KiB) Downloaded 1983 times
cazfi
Elite
Posts: 3335 Joined: Tue Jan 29, 2013 6:54 pm
Post
by cazfi » Sun Oct 27, 2024 2:53 am
To rule out issues with your msys2 environment, can you test running 'make gtk3.22-installer' in <freeciv src>/windows/installer_msys2 ?
cazfi
Elite
Posts: 3335 Joined: Tue Jan 29, 2013 6:54 pm
Post
by cazfi » Sun Oct 27, 2024 3:31 am
I can reproduce the issue on my 230220 msys2 environment. Looking in to it...
cazfi
Elite
Posts: 3335 Joined: Tue Jan 29, 2013 6:54 pm
Post
by cazfi » Sun Oct 27, 2024 3:40 am
Work around: Use configure option "--disable-sys-lua"
keykeypi
Posts: 3 Joined: Fri Oct 25, 2024 7:15 am
Post
by keykeypi » Mon Oct 28, 2024 6:27 am
To rule out issues with your msys2 environment, can you test running 'make gtk3.22-installer' in <freeciv src>/windows/installer_msys2 ?
This gives me following error
Code: Select all
libtool: warning: remember to run 'libtool --finish /ucrt64/lib'
libtool: warning: remember to run 'libtool --finish /ucrt64/lib'
cp: cannot stat '/ucrt64/bin/libicuuc72.dll': No such file or directory
cp: cannot stat '/ucrt64/bin/libicudt72.dll': No such file or directory
cp: cannot stat '/ucrt64/bin/libssp-0.dll': No such file or directory
make[1]: *** [Makefile:344: install-env-common] Error 1
make: *** [Makefile:106: gtk3.22-installer] Error 2
Work around: Use configure option "--disable-sys-lua"
Thanks. This worked.
cazfi
Elite
Posts: 3335 Joined: Tue Jan 29, 2013 6:54 pm
Post
by cazfi » Wed Oct 30, 2024 5:58 am