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

Linux: Build fails at luajit if /tmp is mounted with noexec #14212

Closed
BigBigos opened this issue Nov 30, 2020 · 2 comments
Closed

Linux: Build fails at luajit if /tmp is mounted with noexec #14212

BigBigos opened this issue Nov 30, 2020 · 2 comments
Labels
area/build stale stalebot believes this issue/PR has not been touched recently

Comments

@BigBigos
Copy link

Title: Linux: Build fails at luajit if /tmp is mounted with noexec

Description:
It seems that envoy-1.16.0 fails to build on RHEL7 because /tmp is mounted with noexec option. It's possible that this is caused by the fix to issue 6188, which has changed the temporary directory from bazel cache to /tmp.
Remounting /tmp with exec option (including /var/tmp as /tmp is just a bind-mount to /var/tmp) fixes this issue for me.

Repro steps:
Setup RHEL7 to build Envoy (including setting up devtoolset-9 with GCC 9)
scl enable devtoolset-9 bazel build //source/exe:envoy-static --copt=-DENVOY_IGNORE_GLIBCXX_USE_CXX11_ABI_ERROR=1

Output tail:

host/minilua ../dynasm/dynasm.lua   -D ENDIAN_LE -D P64 -D JIT -D FFI -D FPU -D HFABI -D VER= -o host/buildvm_arch.h vm_x64.dasc
make[1]: execvp: host/minilua: Permission denied
make[1]: *** [host/buildvm_arch.h] Error 127
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/tmp/tmp.WOaDZvfeW7/com_github_luajit_luajit/src'
make: *** [src/luajit] Error 2
cp: cannot stat '/tmp/tmp.WOaDZvfeW7/luajit': No such file or directory

_____ END BUILD LOGS _____
@BigBigos BigBigos added bug triage Issue requires triage labels Nov 30, 2020
@mattklein123 mattklein123 added area/build and removed bug triage Issue requires triage labels Dec 7, 2020
@github-actions
Copy link

github-actions bot commented Jan 6, 2021

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale stalebot believes this issue/PR has not been touched recently label Jan 6, 2021
@github-actions
Copy link

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build stale stalebot believes this issue/PR has not been touched recently
Projects
None yet
Development

No branches or pull requests

2 participants