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

Gitian build fails with /bin/sh: 1: curl: not found #64

Closed
garethtdavies opened this issue Apr 30, 2019 · 4 comments
Closed

Gitian build fails with /bin/sh: 1: curl: not found #64

garethtdavies opened this issue Apr 30, 2019 · 4 comments

Comments

@garethtdavies
Copy link

Describe the issue

When building with Gitian the build fails with:

Fetching native_ccache...
/bin/sh: 1: curl: not found
/bin/sh: 1: curl: not found
funcs.mk:257: recipe for target '/home/debian/cache/common/download-stamps/.stamp_fetched-native_ccache-ccache-3.3.1.tar.bz2.hash' failed
make: *** [/home/debian/cache/common/download-stamps/.stamp_fetched-native_ccache-ccache-3.3.1.tar.bz2.hash] Error 127
make: Leaving directory '/home/debian/build/zcash/depends'

Can you reliably reproduce the issue?

If so, please list the steps to reproduce below:

  1. Destroy any existing zcash-builder VMs
  2. Run vagrant up zcash-build
  3. Once built vagrant ssh zcash-build
  4. Run ./gitian-build.sh
  5. gitian-builder/var/build.log errors with /bin/sh: 1: curl: not found

Expected behaviour

It should build successfully.

Actual behaviour + errors

The following error is in install.log:

W: Failed to fetch http://10.0.2.15:3142/ftp.debian.org/debian/dists/jessie-updates/InRelease  Unable to find expected entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.

The version of Zcash you were using:

Latest commit on master

Machine specs:

Vagrant 2.2.4
debian/stretch64 (virtualbox, 9.8.0)

Any extra information that might be useful in the debugging process.

I hadn't made any changes prior to this Gitian build other than changing the commit hash. @charlieok had this issue earlier during #3962 and as @charlieok suggested it may be related to Debian repositories being taken offline see https://www.lucas-nussbaum.net/blog/?p=947

@ianamunoz
Copy link
Contributor

Replicated. I believe that curl is no longer included in the base lxc image. Will close after I double confirm this fixes and have a PR in.

@ianamunoz
Copy link
Contributor

see zcash/zcash#3980

@ianamunoz
Copy link
Contributor

positive confirmation this fixes either debian 8 or a debian 9 lxc container.

zkbot added a commit to zcash/zcash that referenced this issue May 2, 2019
add curl to package list for gitian lxc container

This PR fixes the issue we are seeing in the gitian builder:
zcash/zcash-gitian#64

The base lxc image no longer contains curl by default so it must be installed.
@charlieok
Copy link
Contributor

So the message about jessie-updates in install.log is a separate issue from the curl: not found error.

The jessie-updates issue, while annoying, does not break the gitian build. The curl issue, which did break the build, is apparently due to curl being dropped from lxc images per Ian's comment above.

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

3 participants