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

Build failed on Arch Linux #5

Open
Pryx opened this issue Nov 18, 2014 · 1 comment
Open

Build failed on Arch Linux #5

Pryx opened this issue Nov 18, 2014 · 1 comment

Comments

@Pryx
Copy link

Pryx commented Nov 18, 2014

servo/servo#4032 When trying to build servo, build fails at this script. As @SimonSapin mentioned, problem is with Python version. The script assumes version 2.x, whereas on Arch Linux it is 3.x.

Build failed, waiting for other jobs to finish...
Failed to run custom build command for `rustuv v0.0.1 (https://github.com/servo/green-rs?ref=servo#9300d7e7)`
Process didn't exit successfully: `make -C build` (status=2)
--- stdout
make: Entering directory '/home/pryx/.cargo/git/checkouts/green-rs-b9cfdf70c4e4296e/servo/librustuv/build'
(cd libuv && python ./gyp_uv.py -f make -Dtarget_arch=x64 \
   -D ninja \
   -DOS=linux \
   -Goutput_dir=/home/pryx/servo/target/native/rustuv-31b2f01c9f5360db/libuv  --generator-output /home/pryx/servo/target/native/rustuv-31b2f01c9f5360db/libuv)
Makefile:50: recipe for target '/home/pryx/servo/target/native/rustuv-31b2f01c9f5360db/libuv/Makefile' failed
make: Leaving directory '/home/pryx/.cargo/git/checkouts/green-rs-b9cfdf70c4e4296e/servo/librustuv/build'

--- stderr
  File "./gyp_uv.py", line 51
    print 'Error running GYP'
                            ^
SyntaxError: Missing parentheses in call to 'print'
make: *** [/home/pryx/servo/target/native/rustuv-31b2f01c9f5360db/libuv/Makefile] Error 1
@SimonSapin
Copy link

In librustuv/build/Makefile, replace the two instances of python ./gyp_uv.py with $(PYTHON) ./gyp_uv.py, add add near the top of the file something like PYTHON = $(shell which python2.7 > /dev/null && echo python2.7 || echo python) (untested.)

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