Skip to content

rustc requires executable stack #798

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

Closed
espindola opened this issue Aug 3, 2011 · 2 comments
Closed

rustc requires executable stack #798

espindola opened this issue Aug 3, 2011 · 2 comments
Labels
O-linux Operating system: Linux

Comments

@espindola
Copy link

Trying to build on a fedora system I got:

stage0/rustc: error while loading shared libraries: librustrt.so: cannot enable executable stack as shared object requires: Permission denied

@brson
Copy link
Contributor

brson commented Sep 27, 2011

Seems like we should be able to support Fedora before we do a release

@thoughtpolice
Copy link
Contributor

To be more specific, this is most likely because of an SELinux policy. Fedora just ships with SELinux and policies enabled by default if memory serves correctly. On a minimal (dev-tools only) 32-bit fedora installation, you can run the whole testsuite without issue.

Curiously I couldn't find very exact reasoning as to why librustrt.so was compiled with an executable stack, but the other libraries weren't. It Just Is, and it's the only problematic file (rustc, librustllvm.so etc aren't affected.) Might be a fedora-specific thing?

Either way I've fixed this in a branch with a linker flag. It doesn't seem to hurt anything. It'll need to be pulled and snapshots will need to be registered, so builds on SELinux-enabled machines can work out of the box.

@brson brson closed this as completed in 7a8e12c Oct 24, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
Fix glibc 2.26 incompatibilities rust-lang#788

Hopefully the `xlocale.h` → `locale.h` change won't break something else somewhere...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-linux Operating system: Linux
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants