Skip to content

Failing to build luajit rolling release on windows #53

@tobil4sk

Description

@tobil4sk
$ pipx install git+https://github.com/luarocks/hererocks
...
$ hererocks C:\Users\runneradmin/haxe-ci/lua_env/lua-j@v2.1 -j@v2.1 -r@v3.13.0 -i --target mingw
Cloning LuaJIT from https://github.com/LuaJIT/LuaJIT @v2.1
Building LuaJIT @26fd1a7 (target: mingw)
"==== Building LuaJIT 2.1 ===="

mingw32-make -C src

mingw32-make[1]: Entering directory 'C:/Users/RUNNER~1/AppData/Local/Temp/tmpadzy1my3/LuaJIT/src'

"HOSTCC    host/minilua.o"

"HOSTLINK  host/minilua.exe"

"VERSION   luajit.h"

Error: host/genversion.lua:14: run from the wrong directory

mingw32-make[1]: *** [Makefile:673: luajit.h] Error 1

mingw32-make[1]: Leaving directory 'C:/Users/RUNNER~1/AppData/Local/Temp/tmpadzy1my3/LuaJIT/src'

mingw32-make: *** [Makefile:127: default] Error 2

Error: got exitcode 2 from command mingw32-make SHELL=cmd

Bisect points to: #26, specifically, the SHELL=cmd part. While SHELL=cmd is needed when running from cmd or powershell, it breaks when building in msys bash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions