-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
PermissionError: [Errno 13] Permission denied: '/usr/lib/emscripten/cache.lock' #11313
Comments
Haha, I just came to post the same issue (on manjaro). I ended up doing a chown on the directory but it is not ideal. |
I think this may be related to @sbc100 's recent changes to make emscripten use a different place for the cache, rather than the user's home directory. But I'm not sure since |
This should be fixed in top of tree. See #11301 |
@sbc100 Thanks. When is a release planned? |
Today I hope. Is using 1.39.15 not an option for you? Is that even possible with arch linux? You can also set |
You can downgrade packages, but it's severely discouraged because of dependencies which may also be downgraded. It has basically the same issues as mixing repositories in Debian. See also https://wiki.archlinux.org/index.php/Downgrading_packages. |
How does the upgrade process work? Its seems like this package must have been releases with basically zero testing. Does the |
@svenstaro is there some way to could run some basic tests before releasing new versions of the arch linux package? |
Sadly, due to limitations in our packaging infrastructure, we can't automatically run tests of the to-be-installed package after its packaging and with user permissions. We can only run basic software suite tests such as I do usually run Since you want to deprecate the implicit $HOME-based cache/config dir, I have to wonder: How do you want downstream packagers to set a user-writable default dir for the config and cache? That said, a release soon would be appreciated as the patch of the MR doesn't apply cleanly. |
Great question! I've tried to document some of this in the new docs/packaging.md. I think it would be great if downstream distos would ship an embedded You could also set "CACHE = ~/.emscripten" in that file.. or you could let the new code that detects the read-only installation fall back to this. the added benefit of this is that you won't see that first use message when emcc if first run asking you to configure it. It should "just work" on first use. |
Regarding testing.. ah I see.. makes sense. This issue would only show up in some kind of true post-installation testing. |
I'll try that. Related: Can we now finally use system LLVM without compiling a custom version for Emscripten? I'd much prefer that as we'd get fewer duplications that way, a smaller package and less complexity all around. |
Eventually it would be nice to use the system version of LLVM yes. Perhaps starting with LLVM 11 we could support the current LLVM stable as well as ToT (with certainly features only available with ToT). As of today we do unfortunately depend on LLVM ToT so you can't depend on the system LLVM (unless you can get a ToT packages of LLVM?) |
I'm now shipping an Check out our whole build here: https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/emscripten I believe this issue can now be closed. |
Awesome! Thanks @svenstaro .. this is great. |
@svenstaro, my advise would be to remove all the comments and unused sections from the config file, since its not designed to be modified by the user directly. I imagine you will also need to set BINARYEN to something non-empty. And I think you can remove the os.getenv stuff since emscripten implicitly supports EM_XXXX environment variables for overriding all config variables already. A good example would be the config files that are written by emsdk:
|
I now have this: https://git.archlinux.org/svntogit/community.git/tree/trunk/emscripten-config?h=packages/emscripten&id=5de697d3a401d2318a82f437d3910963de30da84 Seems to work ok. Does it look good to you? |
Looks great! I think you can drop the JAVA line as it will look for java by default. |
Alright, thanks. I made the change. Then, can we close this? |
Sounds good to me. |
Using emscripten v3.1.6 via debian package, I also get an PermissionError after calling
edit: actually |
Hi, I just installed emscripten 1.39.16 via the Arch Linux package.
When I run
emcc --version
I get this onm the first run:When I run it again, I get an error:
Why is it trying to write in /usr/lib/emscripten?
The text was updated successfully, but these errors were encountered: