Page 1 of 1

Unable to build freeciv using Msys2

Posted: Fri Oct 25, 2024 7:28 am
by keykeypi
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?

Re: Unable to build freeciv using Msys2

Posted: Sun Oct 27, 2024 2:53 am
by cazfi
To rule out issues with your msys2 environment, can you test running 'make gtk3.22-installer' in <freeciv src>/windows/installer_msys2 ?

Re: Unable to build freeciv using Msys2

Posted: Sun Oct 27, 2024 3:31 am
by cazfi
I can reproduce the issue on my 230220 msys2 environment. Looking in to it...

Re: Unable to build freeciv using Msys2

Posted: Sun Oct 27, 2024 3:40 am
by cazfi
Work around: Use configure option "--disable-sys-lua"

Re: Unable to build freeciv using Msys2

Posted: Mon Oct 28, 2024 6:27 am
by keykeypi
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.

Re: Unable to build freeciv using Msys2

Posted: Wed Oct 30, 2024 5:58 am
by cazfi