[tlbuild] About building TeXLive on MSYS2/MinGW64
luigi scarso
luigi.scarso at gmail.com
Sun Mar 1 12:04:43 CET 2020
On Sun, Mar 1, 2020 at 12:01 PM Angelo Graziosi <angelo.g0 at libero.it> wrote:
> Just for completeness, in case someon could be interested.
>
> Out of curiosity, I tried a build on MSYS2/MinGW64 after an rsync of last
> source, and did ./Build.
>
> It failed after building 105 executable in this way:
>
> -----------------------------------------------------------------
> [...]
> mv -f luatexdir/luasocket/src/.deps/libluasocket_a-except.Tpo
> luatexdir/luasocket/src/.deps/libluasocket_a-except.Po gcc
> -DHAVE_CONFIG_H -I. -I../../../texk/web2c -I./w2c -DLUASOCKET_DEBUG
> -I../../../texk/web2c/luatexdir/luasocket
> -I/tmp/tlsource/Work/libs/lua53/include -DLUA_COMPAT_MODULE
> -DLUA_COMPAT_5_2 -DLUAI_HASHLIMIT=6 -g -O2 -MT
> luatexdir/luasocket/src/libluasocket_a-inet.o -MD -MP -MF
> luatexdir/luasocket/src/.deps/libluasocket_a-inet.Tpo -c -o
> luatexdir/luasocket/src/libluasocket_a-inet.o `test -f
> 'luatexdir/luasocket/src/inet.c' || echo
> '../../../texk/web2c/'`luatexdir/luasocket/src/inet.c
> In file included from
> ../../../texk/web2c/luatexdir/luasocket/src/inet.c:13:
> ../../../texk/web2c/luatexdir/luasocket/src/inet.h:50:13: error:
> conflicting types for 'inet_ntop'
> 50 | const char *inet_ntop(int af, const void *src, char *dst,
> socklen_t cnt);
> | ^~~~~~~~~
> In file included from
> ../../../texk/web2c/luatexdir/luasocket/src/wsocket.h:12,
> from
> ../../../texk/web2c/luatexdir/luasocket/src/socket.h:18,
> from
> ../../../texk/web2c/luatexdir/luasocket/src/inet.h:18,
> from
> ../../../texk/web2c/luatexdir/luasocket/src/inet.c:13:
> C:/msys64/mingw64/x86_64-w64-mingw32/include/ws2tcpip.h:451:35: note:
> previous declaration of 'inet_ntop' was here 451 |
> WINSOCK_API_LINKAGE LPCSTR WSAAPI InetNtopA(INT Family, LPCVOID pAddr,
> LPSTR pStringBuf, size_t StringBufSize); |
> ^~~~~~~~~
> In file included from
> ../../../texk/web2c/luatexdir/luasocket/src/inet.c:13:
> ../../../texk/web2c/luatexdir/luasocket/src/inet.h:51:5: warning:
> 'inet_pton' redeclared without dllimport attribute: previous dllimport
> ignored [-Wattributes]
> 51 | int inet_pton(int af, const char *src, void *dst);
> | ^~~~~~~~~
> make[5]: *** [Makefile:12132:
> luatexdir/luasocket/src/libluasocket_a-inet.o] Error 1
> make[5]: Leaving directory '/tmp/tlsource/Work/texk/web2c'
> make[4]: *** [Makefile:16964: all-recursive] Error 1
> make[4]: Leaving directory '/tmp/tlsource/Work/texk/web2c'
> make[3]: *** [Makefile:5087: all] Error 2
> make[3]: Leaving directory '/tmp/tlsource/Work/texk/web2c'
> make[2]: *** [Makefile:909: recurse] Error 1
> make[2]: Leaving directory '/tmp/tlsource/Work/texk'
> make[1]: *** [Makefile:486: all-recursive] Error 1
> make[1]: Leaving directory '/tmp/tlsource/Work/texk'
> make: *** [Makefile:577: all-recursive] Error 1
> + echo 2
> done (exit status 2) Sun Mar 1 02:12:56 CET 2020
> -----------------------------------------------------------------
>
>
> GCC is
>
> -----------------------------------------------------------------
> g++ -v
> Using built-in specs.
> COLLECT_GCC=C:\msys64\mingw64\bin\g++.exe
>
> COLLECT_LTO_WRAPPER=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/lto-wrapper.exe
> Target: x86_64-w64-mingw32
> Configured with: ../gcc-9.2.0/configure --prefix=/mingw64
> --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32
> --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32
> --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include
> --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64
> --with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++
> --enable-shared --enable-static --enable-libatomic --enable-threads=posix
> --enable-graphite --enable-fully-dynamic-string
> --enable-libstdcxx-filesystem-ts=yes --enable-libstdcxx-time=yes
> --disable-libstdcxx-pch --disable-libstdcxx-debug
> --disable-isl-version-check --enable-lto --enable-libgomp
> --disable-multilib --enable-checking=release --disable-rpath
> --disable-win32-registry --disable-nls --disable-werror --disable-symvers
> --enable-plugin --with-libiconv --with-system-zlib --with-gmp=/mingw64
> --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64
> --with-pkgversion='Rev2, Built by MSYS2 project!
> ' --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as
> --with-gnu-ld
> Thread model: posix
> gcc version 9.2.0 (Rev2, Built by MSYS2 project)
> -----------------------------------------------------------------
>
hm. I will check it cross-compiling on my linux box .
--
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tlbuild/attachments/20200301/c7d250d6/attachment.html>
More information about the tlbuild
mailing list.