Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: gatra on May 05, 2017, 04:16:06 PM



Title: couldn't generate 0.14.1 binaries - gitian build broken?
Post by: gatra on May 05, 2017, 04:16:06 PM
Hi! I'm trying to use gitian to make the binaries for v0.14.1 using LXC but I'm having problems, this is what gbuild prints:

Code:
--- Building for trusty amd64 ---
Stopping target if it is up
Making a new image copy
sudo: unable to resolve host gitian
stdin: is not a tty
Starting target
Checking if target is up
sudo: unknown user: ubuntu
sudo: unable to initialize policy plugin
Preparing build environment
sudo: unknown user: ubuntu
sudo: unable to initialize policy plugin
sudo: unknown user: ubuntu
sudo: unable to initialize policy plugin
sudo: unknown user: ubuntu
sudo: unable to initialize policy plugin
Updating apt-get repository (log in var/install.log)
Installing additional packages (log in var/install.log)
Upgrading system, may take a while
Creating package manifest
stdin: is not a tty
Creating build script (var/build-script)
sudo: unknown user: ubuntu
sudo: unable to initialize policy plugin
Running build script (log in var/build.log)
Grabbing results from target
sudo: unknown user: ubuntu
sudo: unable to initialize policy plugin
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
./bin/gbuild:21:in `system!': failed to run copy-from-target  out build (RuntimeError)
from ./bin/gbuild:288:in `block (2 levels) in <main>'
from ./bin/gbuild:280:in `each'
from ./bin/gbuild:280:in `block in <main>'
from ./bin/gbuild:278:in `each'
from ./bin/gbuild:278:in `<main>'

the host is linux Mint, and the guest in the VM seems to to have internet access... what's with the "unknown user: ubuntu" error? and what about "sudo: unable to resolve host gitian"?
any help please?
I've done this a couple of years ago but I forgot about the details now

Also, I had to add the line
Code:
lxc.autodev = 0
to gitian-builder/etc/lxc.config.in, otherwise I was getting a "failed to mount /dev/shm" error. Is that ok?

Thanks in advance!


Title: Re: couldn't generate 0.14.1 binaries - gitian build broken?
Post by: achow101 on May 05, 2017, 09:03:10 PM
Have you tried using KVM instead of LXC? I have had issues with LXC and KVM works for me.


Title: Re: couldn't generate 0.14.1 binaries - gitian build broken?
Post by: gatra on May 10, 2017, 04:20:48 PM
Have you tried using KVM instead of LXC? I have had issues with LXC and KVM works for me.

thanks but KVM fails too...

when I run make-base-vm for KVM (without the --lxc option) it just hangs. I know it's supposed to take a whlie, but it's been hours after the "Calling hook: bootstrap" message.

Then I tried another host, (ubuntu 12 instead of mint) and this time with LXC gbuild fails with "./bin/gbuild:199: must supply reference_datetime (RuntimeError)".



Title: Re: couldn't generate 0.14.1 binaries - gitian build broken?
Post by: gatra on May 22, 2017, 01:13:25 PM
Finally gave up on LXC, made it work with KVM so your suggestion helped, thanks!

I'm now running trusty inside KVM from another trusty installation that runs inside Windows VMWare with hardware-assisted virtualization (required by KVM) simulated by the VMWare software.
Kinda slow.... but works.