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

python/3.10/alpine3.15/ build error - make: /bin/sh: Operation not permitted #689

Closed
michal-jagiello-tmpl opened this issue Jan 31, 2022 · 2 comments
Labels
question Usability question, not directly related to an error with the image

Comments

@michal-jagiello-tmpl
Copy link

I'm trying to build an image using Dockerfile and I have an error

+ nproc
+ nproc=8
+ make -j 8 'EXTRA_CFLAGS=-DTHREAD_STACK_SIZE=0x100000' 'LDFLAGS=-Wl,--strip-all'
make: /bin/sh: Operation not permitted
make: *** [Makefile:516: profile-run-stamp] Error 127
@wglambert wglambert added the question Usability question, not directly related to an error with the image label Jan 31, 2022
@wglambert
Copy link

Looks like docker-library/php#1177 (comment)
If your Docker version is older than 20.10 you'll encounter that issue from Alpine

https://alpinelinux.org/posts/Alpine-3.14.0-released.html

The faccessat2 syscall has been enabled in musl. This can result in issues on docker hosts with older versions of docker (<20.10.0) and libseccomp (<2.4.4), which blocks this syscall.

@michal-jagiello-tmpl
Copy link
Author

👍 works, thanks @wglambert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

2 participants