Comments (4)
Many distros are setting MAKEFLAGS+=--jobs=$(nproc)
or similar by default now for package build environments and some even for user environments.
I think it would make sense to add a mitigation to the Makefile:
# This makefile has known race conditions that will fail if targets are run in parallel.
# Force at least GNU Make 4.3+ to only use a single job to run targets in serial order.
MAKEFLAGS += --jobs=1
This only works in GNU Make 4.3+. It will be ignored in older versions of make that already setup the job server by the time they parse the Makefile. But in 4.3 plus it actually does parse and respond to this early enough to be able to override the value from inside the Makefile.
But here's the thing: many/most of the distros that are aggressively setting defaults to parallel builds are also the ones that have a fresh enough GNU Make for this to work.
from luarocks.
Hi! Thanks for reporting, but the LuaRocks makefile was not designed (or documented) for parallel invocation. Also, it "builds" really fast (it is pure Lua and just copies a few files around) so there's no gain in running it in parallel. So in effect unfortunately this is a "wont fix". Just run make
as normal and you'll be fine.
from luarocks.
yeah, make sense 👍
from luarocks.
Just ran into this issue as well, when installing via mise
. As mentioned, my default MAKEFLAGS
sets --jobs=$(nproc)
so the make bootstrap
of Luarocks fails.
This should at the very least be mentioned in the documentation here: https://github.com/luarocks/luarocks/wiki/Installation-instructions-for-Unix and in the README as well.
But ideally the override as mentioned above should be put in place in the makefile, why is this not being considered?
from luarocks.
Related Issues (20)
- Could this third-party toolkit be any harder on windows? I've never done anything this hard
- Error: LuaRocks 3.11.0 bug - win32-x86_64 (fs_use_modules = true) (binary) - when installing a package that transitively depends on LuaFileSystem HOT 3
- cannot force reinstall package on v3.11.0
- enable ssl cert check by default
- How does luarocks check wether a dependency exists ? HOT 9
- API failure when uploading rockspec HOT 4
- luarocks.lock in cwd not respected by `luarocks install`
- Purl specification for Lua (Sofwtare supply chain) HOT 1
- transfer ownership of lua-vips to a new maintainer HOT 3
- Unable to do download manifests, files, etc etc HOT 2
- fetch.lua:67: attempt to index a nil value (local 'fd') HOT 1
- Non-root "Luarocks install" should suggest --local installation HOT 2
- luarocks-admin add AWS S3 HOT 1
- assertation failed on 883 line during installing from install.bat HOT 2
- error says to set source.dir but source.dir is set HOT 3
- `luarocks test` no longer respects `lua_interpreter` HOT 1
- luarocks namespaced query
- Integrity Hash in lock file HOT 1
- Set `rocks_trees` in project config file during `luarocks init` HOT 1
- `local_by_default=true` breaks project rocks tree detection HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luarocks.