# V5.3.0 RPi compile error 404, Error 22

**URL:** <https://forum.zcashcommunity.com/t/v5-3-0-rpi-compile-error-404-error-22/43355>\
**Category:** Technical Support\
**Created:** [November 16, 2022, 10:47am UTC](https://forum.zcashcommunity.com/t/v5-3-0-rpi-compile-error-404-error-22/43355 "2022-11-16T10:47:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![opacey](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@opacey](https://forum.zcashcommunity.com/u/opacey)\
**Post date:** [November 16, 2022, 10:47am UTC](https://forum.zcashcommunity.com/t/v5-3-0-rpi-compile-error-404-error-22/43355/1 "2022-11-16T10:47:11Z")

</div>

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:

```auto
$ ./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:

```auto
	$ 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

```

---

<div class="post-metadata">

**Author:** ![Autotunafish](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/autotunafish/32/7827_2.png) [@Autotunafish](https://forum.zcashcommunity.com/u/Autotunafish)\
**Post date:** [November 16, 2022, 1:54pm UTC](https://forum.zcashcommunity.com/t/v5-3-0-rpi-compile-error-404-error-22/43355/2 "2022-11-16T13:54:28Z")

</div>

Looking at a recent guide here, there are some differences in the build [zechub/RaspberryPi4FullNode.md at main · dismad/zechub · GitHub](https://github.com/dismad/zechub/blob/main/site/guides/RaspberryPi4FullNode.md)  
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.

---

<div class="post-metadata">

**Author:** ![opacey](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@opacey](https://forum.zcashcommunity.com/u/opacey)\
**Post date:** [November 16, 2022, 5:04pm UTC](https://forum.zcashcommunity.com/t/v5-3-0-rpi-compile-error-404-error-22/43355/3 "2022-11-16T17:04:56Z")

</div>

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](https://zcash.readthedocs.io/en/latest/rtd_pages/raspi-build.html)

---

<div class="post-metadata">

**Author:** ![sellout](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/sellout/32/20767_2.png) [@sellout](https://forum.zcashcommunity.com/u/sellout)\
**Post date:** [November 16, 2022, 6:22pm UTC](https://forum.zcashcommunity.com/t/v5-3-0-rpi-compile-error-404-error-22/43355/4 "2022-11-16T18:22:11Z")

</div>

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](https://github.com/zcash/zcash/pull/6255)

Hope that helps!

---

<div class="post-metadata">

**Author:** ![dismad](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/dismad/32/18432_2.png) [@dismad](https://forum.zcashcommunity.com/u/dismad)\
**Post date:** [November 17, 2022, 6:50am UTC](https://forum.zcashcommunity.com/t/v5-3-0-rpi-compile-error-404-error-22/43355/5 "2022-11-17T06:50:17Z")

</div>

Awesome update if this is fixed!

---

<div class="post-metadata">

**Author:** ![opacey](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@opacey](https://forum.zcashcommunity.com/u/opacey)\
**Post date:** [November 17, 2022, 9:48am UTC](https://forum.zcashcommunity.com/t/v5-3-0-rpi-compile-error-404-error-22/43355/6 "2022-11-17T09:48:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sellout](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/sellout/32/20767_2.png) [@sellout](https://forum.zcashcommunity.com/u/sellout)\
**Post date:** [November 17, 2022, 9:33pm UTC](https://forum.zcashcommunity.com/t/v5-3-0-rpi-compile-error-404-error-22/43355/7 "2022-11-17T21:33:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![opacey](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@opacey](https://forum.zcashcommunity.com/u/opacey)\
**Post date:** [December 8, 2022, 3:16pm UTC](https://forum.zcashcommunity.com/t/v5-3-0-rpi-compile-error-404-error-22/43355/8 "2022-12-08T15:16:51Z")

</div>

Fantastic - thank you!
