Skip to content

Build fails on Arch Linux unless PYTHON env. variable is set #129

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
marmistrz opened this issue Nov 26, 2017 · 1 comment
Closed

Build fails on Arch Linux unless PYTHON env. variable is set #129

marmistrz opened this issue Nov 26, 2017 · 1 comment

Comments

@marmistrz
Copy link
Contributor

cargo build bails out with

--- stderr
  File "/home/marcin/.cargo/registry/src/gb.xjqchip.workers.dev-1ecc6299db9ec823/mozjs_sys-0.50.0/mozjs/js/src/../../configure.py", line 83
    os.chmod('config.status', 0755)
                                 ^
SyntaxError: invalid token
cat: config.log: No such file or directory
make: *** [makefile.cargo:140: maybe-configure] Error 1
thread 'main' panicked at 'assertion failed: result.success()', /home/marcin/.cargo/registry/src/gb.xjqchip.workers.dev-1ecc6299db9ec823/mozjs_sys-0.50.0/build.rs:53
note: Run with `RUST_BACKTRACE=1` for a backtrace.

No such error occurs if the invocation is PYTHON=python2 cargo build.

@JordanMajd
Copy link

This happened for me as well, thanks for sharing your solution. Worked great!

marmistrz added a commit to marmistrz/mozjs that referenced this issue Feb 26, 2018
If python2 seems to be a valid Python 2 interpreter, the configure
script will use it. Otherwise, it will fall back to python, as
previously.

We also bump the crate version so that this change can be propagated
further the dependency tree.

Closes servo#129.
marmistrz added a commit to marmistrz/mozjs that referenced this issue Feb 26, 2018
If python2 seems to be a valid Python 2 interpreter, the configure
script will use it. Otherwise, it will fall back to python, as
previously.

We also bump the crate version so that this change can be propagated
further the dependency tree.

Closes servo#129.
bors-servo pushed a commit that referenced this issue Feb 26, 2018
Use python2 for the build whenever possible and bump the version.

If python2 seems to be a valid Python 2 interpreter, the configure
script will use it. Otherwise, it will fall back to python, as
previously.

We also bump the crate version so that this change can be propagated
further the dependency tree.

Closes #129.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/mozjs/132)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants