V5.3.0 RPi compile error 404, Error 22

A URL isn’t resolving early in the build process.
The same flow works for v5.2.0 but not for v5.3.0

Console:

$ ./zcutil/build.sh
+ eval make --version
+ make --version
GNU Make 4.3
Built for aarch64-unknown-linux-gnu
+ as --version
GNU assembler (GNU Binutils for Ubuntu) 2.38
Copyright (C) 2022 Free Software Foundation, Inc.
This assembler was configured for a target of `aarch64-linux-gnu'.
+ DEBUG=
+ HOST=aarch64-unknown-linux-gnu BUILD=aarch64-unknown-linux-gnu make -C ./depends/ DEBUG=
make: Entering directory '~/zcash/depends'
Fetching native_clang...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     9    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
make: *** [funcs.mk:262: ~/zcash/depends/sources/download-stamps/.stamp_fetched-native_clang-clang-llvm-14.0.6-aarch64-linux-gnu.tar.xz.hash] Error 22

Environment:
Host: Raspberry Pi 4 8GB
OS: Ubuntu 22.04.1 Server

Steps to reproduce:

	$ sudo apt update
	$ sudo apt install build-essential pkg-config libc6-dev m4 autoconf libtool libncurses-dev unzip git python3 python3-zmq zlib1g-dev curl bsdmainutils automake libtinfo5
	$ sudo apt install gcc-10 clang

	$ git clone https://github.com/zcash/zcash.git
	$ cd zcash
	$ git checkout v5.3.0
	$ ./zcutil/fetch-params.sh
	$ ./zcutil/clean.sh
	$ ./zcutil/build.sh
1 Like

Looking at a recent guide here, there are some differences in the build zechub/RaspberryPi4FullNode.md at main · dismad/zechub · GitHub
such as "

sudo apt-get install gcc-aarch64-linux-gnu

Next change directory into the freshly downloaded zcashd release and run:

HOST=aarch64-linux-gnu ./zcutil/build.sh
"
I’m not sure if this is why it’s 404’ing 4 U but I would suggest following it and trying again, see if that doesnt work.

2 Likes

Thank you for the response. I believe all of those highlighted differences are relevant only for cross compilation. I’m trying to build locally on the Pi (I know, its slow).

The compilation works fine for v5.2.0 without having to

  • install g++-multilib (unavailable on the pi anyway)
  • install gcc-aarch64-linux-gnu
  • specify HOST=aarch64-linux-gnu

…so I think there is something else amiss.

I’m following this guide which does include a 5.3.0 reference so has been updated recently.
https://zcash.readthedocs.io/en/latest/rtd_pages/raspi-build.html

1 Like

Sorry, @opacey. Our aarch64-linux builds in CI, etc. are all done via cross-compilation, so we missed this. Another user submitted a PR for this already, so you can try their branch, or wait for it to be merged (which should be soon): fix aarch64 dependency native clang download URL by 0xidm · Pull Request #6255 · zcash/zcash · GitHub

Hope that helps!

3 Likes

Awesome update if this is fixed!

2 Likes

Ah that’s great to hear, thanks so much for the information.
I’ll wait for the merge and try the official.

1 Like

This is now merged, so should work from you from master now. Bonne chance!

2 Likes