Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luarocks: fails to install Lua modules written in C on CLANG64 and CLANGARM64 #23493

Open
3 of 6 tasks
luau-project opened this issue Feb 24, 2025 · 0 comments · May be fixed by #23494
Open
3 of 6 tasks

luarocks: fails to install Lua modules written in C on CLANG64 and CLANGARM64 #23493

luau-project opened this issue Feb 24, 2025 · 0 comments · May be fixed by #23494
Labels

Comments

@luau-project
Copy link
Contributor

Description / Steps to reproduce the issue

In the current LuaRocks setup for CLANG64 and CLANGARM64, the default configuration has a fallback to use gcc as standard C compiler when the CC environment variable is not set. This configuration makes the building of any Lua module with parts written in C to fail, because LuaRocks tries to use gcc rather than clang.

To reproduce this issue, make sure that: 1) LuaRocks is installed; 2) CC environment variable is unset; 3) uninstall luafilesystem module if it is installed.

Once the conditions outlined above are met, run the following command in a CLANG64 shell:

luarocks install luafilesystem

Note

The same behavior should be observed for other Lua modules like luasocket and lua-cjson.

Expected behavior

The Lua module should install normally.

Actual behavior

The building of C code fails.

Verification

Windows Version

MSYS_NT-10.0-26100

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANGARM64

Are you willing to submit a PR?

Yes, I have a PR prepared to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant