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 fails on AArch64, Fedora 33 #6506

Closed
LutzWeischerFujitsu opened this issue Apr 20, 2021 · 3 comments · Fixed by #6701
Closed

build fails on AArch64, Fedora 33 #6506

LutzWeischerFujitsu opened this issue Apr 20, 2021 · 3 comments · Fixed by #6701
Labels
contributions welcome The JAX team has not prioritized work on this. Community contributions are welcome. enhancement New feature or request

Comments

@LutzWeischerFujitsu
Copy link

[jw@cn06 jax]$ python3 build/build.py

 _   _  __  __
| | / \ \ \/ /

_ | |/ _ \ \ /
| || / ___ /
___/
/ /_/_\

Downloading bazel from: https://github.com/bazelbuild/bazel/releases/download/3.7.2/bazel-3.7.2-linux-x86_64
bazel-3.7.2-linux-x86_64 [########################################] 100%
Traceback (most recent call last):
File "/data/jw/jax/build/build.py", line 521, in
main()
File "/data/jw/jax/build/build.py", line 439, in main
bazel_path = get_bazel_path(args.bazel_path)
File "/data/jw/jax/build/build.py", line 165, in get_bazel_path
if check_bazel_version(path):
File "/data/jw/jax/build/build.py", line 174, in check_bazel_version
version_output = shell([bazel_path, "--bazelrc=/dev/null", "version"])
File "/data/jw/jax/build/build.py", line 51, in shell
output = subprocess.check_output(cmd)
File "/usr/lib64/python3.9/subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib64/python3.9/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib64/python3.9/subprocess.py", line 947, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib64/python3.9/subprocess.py", line 1819, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: './bazel-3.7.2-linux-x86_64'
[jw@cn06 jax]$

@LutzWeischerFujitsu LutzWeischerFujitsu added the bug Something isn't working label Apr 20, 2021
@hawkinsp
Copy link
Collaborator

The build script doesn't support aarch64 on Linux yet! But that's ok, we accept contributions.

I suspect we need to teach this logic about aarch64:
https://cs.opensource.google/jax/jax/+/master:build/build.py;drc=7b7a2a1ba83fec86f6fa6e4526a12c5e33f80ebb;l=81

Do you want to send a PR adding an Aarch64 case? (Another option is that we may be able to use something like Bazelisk instead of having our own "download bazel" logic.)

(I suspect once the build script is fixed, there's a pretty good chance that everything will work.)

@hawkinsp hawkinsp added contributions welcome The JAX team has not prioritized work on this. Community contributions are welcome. enhancement New feature or request and removed bug Something isn't working labels Apr 23, 2021
@LutzWeischerFujitsu
Copy link
Author

It's pretty common that build processes have unintentional "Intel-isms".
You, please, do a PR, I'll test it and keep on reporting issues. BTW, Bazel does work already.

@hawkinsp
Copy link
Collaborator

#6701 was my best guess at a fix. I don't have such a machine to test with, though. Please try it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributions welcome The JAX team has not prioritized work on this. Community contributions are welcome. enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants