Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: cryptotech on December 12, 2015, 12:49:55 AM



Title: Gitian Builder Help
Post by: cryptotech on December 12, 2015, 12:49:55 AM
Was wondering if someone could help me with this error. I haven't been able to get past the point.  Your help would be greatly appreciated.

Code:
--- Building for trusty amd64 ---
Stopping target if it is up
Making a new image copy
lxc-execute: failed to find gateway addresses
lxc-execute: failed to spawn 'gitian'
./bin/gbuild:21:in `system!': failed to run make-clean-vm --suite trusty --arch amd64 (RuntimeError)
        from ./bin/gbuild:57:in `build_one_configuration'
        from ./bin/gbuild:270:in `block (2 levels) in <main>'
        from ./bin/gbuild:265:in `each'
        from ./bin/gbuild:265:in `block in <main>'
        from ./bin/gbuild:263:in `each'
        from ./bin/gbuild:263:in `<main>'


Title: Re: Gitian Builder Help
Post by: cryptotech on December 16, 2015, 08:06:21 PM
i got passsed my first error.  However, this one I cannot seem to figure out.  Could someone please help me out here.


Code:
Creating build script (var/build-script)
Running build script (log in var/build.log)
./bin/gbuild:21:in `system!': failed to run on-target setarch x86_64 bash -x < var/build-script > var/build.log 2>&1 (RuntimeError)
        from ./bin/gbuild:137:in `build_one_configuration'
        from ./bin/gbuild:270:in `block (2 levels) in <main>'
        from ./bin/gbuild:265:in `each'
        from ./bin/gbuild:265:in `block in <main>'
        from ./bin/gbuild:263:in `each'
        from ./bin/gbuild:263:in `<main>'
debian@debian:~/gitian-builder$ tail -f var/build.log
+ sed -e '\''s|OS/version|MSWindows/5.1.2600|'\'' -e '\''s|MINIUPNPC_VERSION_STRING "version"|MINIUPNPC_VERSION_STRING "VERSIONHERE"|'\'' $< > $@

 minixml.o: minixml.c minixml.h miniupnpcstrings.h

'
++ cat VERSION
+ sed s/VERSIONHERE/1.9/
patching file Makefile.mingw
Hunk #1 FAILED at 67.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.mingw.rej

I thought  changing mkdir -p $BUILDDIR $INSTALLPREFIX/lib in the deps-win.yml file to sudo mkdir -p $BUILDDIR $INSTALLPREFIX/lib would fix the issue. It seems that it was because it didn't fail instead it asked for the ubuntu password.  I am using Debian so the path is wrong.  This is the error and log file when I done this.

Code:
Starting target
Checking if target is up
Preparing build environment
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)
Running build script (log in var/build.log)
[sudo] password for ubuntu:
[sudo] password for ubuntu:
[sudo] password for ubuntu:
./bin/gbuild:21:in `system!': failed to run on-target setarch x86_64 bash -x < var/build-script > var/build.log 2>&1 (RuntimeError)
        from ./bin/gbuild:137:in `build_one_configuration'
        from ./bin/gbuild:270:in `block (2 levels) in <main>'
        from ./bin/gbuild:265:in `each'
        from ./bin/gbuild:265:in `block in <main>'
        from ./bin/gbuild:263:in `each'
        from ./bin/gbuild:263:in `<main>'
debian@debian:~/gitian-builder$ tail -f var/install.log
stdin: is not a tty
^C
debian@debian:~/gitian-builder$ tail -f var/build.log
+ for BITS in 32 64
+ INSTALLPREFIX=/home/ubuntu/staging32
+ BUILDDIR=/home/ubuntu/build32
+ '[' 32 == 32 ']'
+ HOST=i686-w64-mingw32
+ sudo mkdir -p /home/ubuntu/build32 /home/ubuntu/staging32/lib
Sorry, try again.
Sorry, try again.
Sorry, try again.
sudo: 3 incorrect password attempts

i obviously don't know the password because i didn't make a user called ubuntu.  my user is called debian.  Thanks in advance for any help.


Title: Re: Gitian Builder Help
Post by: billotronic on December 17, 2015, 02:37:16 AM
well the easiest solution would be to do a search through your project looking for instances of ubuntu?


Title: Re: Gitian Builder Help
Post by: lhfly5201314 on December 18, 2017, 05:39:07 PM
Was wondering if someone could help me with this error. I haven't been able to get past the point.  Your help would be greatly appreciated.

Code:
--- Building for trusty amd64 ---
Stopping target if it is up
Making a new image copy
lxc-execute: failed to find gateway addresses
lxc-execute: failed to spawn 'gitian'
./bin/gbuild:21:in `system!': failed to run make-clean-vm --suite trusty --arch amd64 (RuntimeError)
        from ./bin/gbuild:57:in `build_one_configuration'
        from ./bin/gbuild:270:in `block (2 levels) in <main>'
        from ./bin/gbuild:265:in `each'
        from ./bin/gbuild:265:in `block in <main>'
        from ./bin/gbuild:263:in `each'
        from ./bin/gbuild:263:in `<main>'

Hi,dear friend.I met the same error "failed to find gateway address" when I compile the bitcoin code with gitian.
Could U tell me how did u fix the error?
Really appreciate!


Title: Re: Gitian Builder Help
Post by: lhfly5201314 on December 18, 2017, 05:40:12 PM
My email address:lhfly520@gmail.com
Thanks again!