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 error #5

Closed
AoyunTech opened this issue Apr 12, 2024 · 3 comments
Closed

build error #5

AoyunTech opened this issue Apr 12, 2024 · 3 comments

Comments

@AoyunTech
Copy link

Hi Josh,
Would you know how to fix this build errs?

Thanks

~/github/mjbots/fdcanusb$ ./tools/bazel build //fw:fdcanusb.bin
Downloading bazel 5.4.1 from https://github.com/bazelbuild/bazel/releases/download/5.4.1/bazel-5.4.1-linux-x86_64
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:32 --:--:-- 0
100 49.4M 100 49.4M 0 0 45333 0 0:19:03 0:19:03 --:--:-- 1738k
Traceback (most recent call last):
File "./tools/bazel", line 108, in
main()
File "./tools/bazel", line 101, in main
download_bazel(bazel_bin_loc)
File "./tools/bazel", line 88, in download_bazel
raise RuntimeError(
RuntimeError: bazel sha256 does not match, expected e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 got 5d90515f84b5ee1fd6ec22ee9e83103e77ed1a907ee5eec198fef3a5b45abf13

@jpieper
Copy link
Member

jpieper commented Apr 12, 2024

You likely have a proxy or something that is modifying the contents of the file that it is downloading: https://github.com/bazelbuild/bazel/releases/download/5.4.1/bazel-5.4.1-linux-x86_64

I just downloaded it here again and got the expected hash of 5d90515f84b5ee1fd6ec22ee9e83103e77ed1a907ee5eec198fef3a5b45abf13 which is what is present in

BAZEL_VERSION_SHA = "5d90515f84b5ee1fd6ec22ee9e83103e77ed1a907ee5eec198fef3a5b45abf13"

@AoyunTech
Copy link
Author

You likely have a proxy or something that is modifying the contents of the file that it is downloading: https://github.com/bazelbuild/bazel/releases/download/5.4.1/bazel-5.4.1-linux-x86_64

I just downloaded it here again and got the expected hash of 5d90515f84b5ee1fd6ec22ee9e83103e77ed1a907ee5eec198fef3a5b45abf13 which is what is present in

BAZEL_VERSION_SHA = "5d90515f84b5ee1fd6ec22ee9e83103e77ed1a907ee5eec198fef3a5b45abf13"

Hi Josh,
It's my mistakes.

Thanks for your reply!
Thanks

But i missed another issue when retry building again.
LOG as
1:~/github/mjbots/fdcanusb$ ./tools/bazel build //fw:fdcanusb.bin
Traceback (most recent call last):
File "./tools/bazel", line 107, in
main()
File "./tools/bazel", line 102, in main
os.execv(bazel_bin_loc, ['bazel', ] + sys.argv[1:])
OSError: [Errno 8] Exec format error

Hope your suggestions please.

@jpieper
Copy link
Member

jpieper commented Apr 13, 2024

The build process is only supported on a x64 Linux system. I'm guessing you have a different architecture or OS.

@jpieper jpieper closed this as completed Oct 16, 2024
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