Makefile platform detection fails with modern MinGW64 (MINGW64_NT-10.0-26200)

32 views
Skip to first unread message

Usman

unread,
Dec 23, 2025, 4:07:17 PM (23 hours ago) Dec 23
to lua-l

  1. Environment: Windows 11, WinLibs MinGW64, Lua 5.5.0
  2. Problemuname returns detailed MinGW64 string not handled by guess target
  3. Error Message: "No rule to make target 'MINGW64_NT-10.0-26200'"
  4. Proposed Fix: Show your modified guess target with case statement
  5. Impact: Prevents compilation on modern Windows MinGW64 environments

    So yeah, to summarize, was trying to compile the latest 5.5 release using my winlibs downloaded mingw64( no mysys2) on windows, and turns out the build is missing targets. 


Augusto Goulart

unread,
Dec 23, 2025, 4:24:43 PM (23 hours ago) Dec 23
to lu...@googlegroups.com
You can use "make mingw test" which should build and output:
./lua -v
Lua 5.5.0  Copyright (C) 1994-2025 Lua.org, PUC-Rio

Then use "make install", that will do:
cd src && mkdir -p /usr/local/bin /usr/local/include /usr/local/lib /usr/local/man/man1 /usr/local/share/lua/5.5 /usr/local/lib/lua/5.5
cd src && install -p -m 0755 lua luac /usr/local/bin
cd src && install -p -m 0644 lua.h luaconf.h lualib.h lauxlib.h lua.hpp /usr/local/include
cd src && install -p -m 0644 liblua.a /usr/local/lib
cd doc && install -p -m 0644 lua.1 luac.1 /usr/local/man/man1

Just tested on:
uname -s
MINGW64_NT-10.0-26100

Augusto

--
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lua-l+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/984c113e-6815-4302-bc89-a795b52faf8an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages