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 failure on Arch Linux #6128
Comments
CI builds and tests on Arch, and AFAICT that is succeeding as recently as today. So the next step here would be to try and spot any differences between the Arch setup here and in CI. |
@dannasessha If you have docker you can sanity check the build against our CI image: I do recall some annoying issues on certain versions of ARCH, but this one in CI is pinned. If you still hit issues please let us know and I will try to reproduce on a newer version of ARCH. |
There is also some annoying link issues, see our docker file:
|
I encountered this same bug on latest master (
I was able to build fine on the docker image ( |
@AloeareV Nice! We are also working to update the arch image mentioned above to something more current. Hope to provide news on this soon. |
There is a difference in the build versions: 5.19.13 and 5.19.2 though I'm not sure if it might affect the outcome. |
I see the new docker image and I was wondering if there's any actual documentation for running zcashd on Arch? |
Not at the moment but we are trying to find the newer version that will actually build zcash.
The issues start around libtinfo linking and maybe some newer bugs. |
Ok, I'll try that at some point. The Docker appears to be running though. |
We think that this may be the same issue as #6193. |
Building from source on Alter Linux, which is an Arch flavor that supports apt, fails with a similar instance of not being able to build the C. I'll rebuild it and grab that specific error later today hopefully. Edit: Just a FYI but for some reason, and maybe it's just my system running this Alter distro, running pacman at all it seems breaks the keyring badly! |
I've reproduced this build error. |
Sorry I got distracted with zebra, it consistently build-fails with a rocksdb error 'cannot find stdarg.h'. But I think it's also not linked correctly, fills up the root dir (or something). The zebra docker fired right up and I'm gonna see how it does for a while and then come back. |
Same here on the
A clue? rust-lang/rust#97452 |
ldd reports that The native clang downloaded by v5.2.0 however does have libz: Related: ziglang/zig-bootstrap#57 |
I'm running into the same error as @chappjc, and I think their analysis is correct. The clang 14.0.0 changelog mentions a zlib-related change so maybe that's a clue:
|
My Arch Linux happens to have v14.0.6 of
This is not a good idea unless your system uses the same version as v5.3.0 does (14.0.6):
|
I was able to build 5.3.0 on Arch Linux like this: https://github.com/archlinux/svntogit-community/blob/b93b617866305f8c6d649f511ff0a7f0cb5d953e/trunk/PKGBUILD This doesn't use |
This is very interesting! However, I do notice that your script uses |
Yes: Line 3 in b67ffbb
Lines 32 to 35 in b67ffbb
Berkeley DB was bought by oracle at some point, Linux distributions usually only ship 5.3 but I don't know the reason for this, given that 6.2 is AGPL and could be distributed. |
Trying to build from zcash master branch, I am experiencing a build failure.
To reproduce...
./zcutil/clean.sh
./zcutil/build.sh -j $(nproc)
Expecting...
successful build with stdout including:
finished release [optimized] target(s) in ...
Observed behaviour...
build failure, stdout ending with:
The above error was from an attempt to build a specific commit, but I tried to investigate more using
git bisect
. The "breaking change" for me was between81764889c Merge pull request #6071 from str4d/llvm-14
(breaks) anddf6e05173 Merge pull request #6083 from zcash/leveldb-1.22
(works) onmaster
.Specifically it told me...
12c36670f (refs/bisect/bad) depends: Update Clang / libcxx to LLVM 14.0.6
Local machine running Arch Linux
Linux A 5.19.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 17 Aug 2022 13:48:51 +0000 x86_64 GNU/Linux
Plenty of CPU, RAM, disk space.
I've built zcash successfully many times on Arch.
The text was updated successfully, but these errors were encountered: