Bitcoin Forum
July 07, 2024, 03:23:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [SOLVED] Gitian building help  (Read 1351 times)
lemipawa (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1003


View Profile
June 16, 2015, 07:52:20 PM
Last edit: June 16, 2015, 11:45:47 PM by lemipawa
 #1

I'm trying to build Bitcoin with the gitian build system, but it keeps giving me errors. I am following the instructions for building from here: https://github.com/bitcoin/bitcoin/blob/master/doc/release-process.md. When I run the first command, it gives me an error. This is the buld log:
Code:
lxc-init: failed to mount /dev/shm : No such file or directory
sudo: unable to resolve host ubuntu
+ set -e
+ export LANG=en_US.UTF-8
+ LANG=en_US.UTF-8
+ export LC_ALL=en_US.UTF-8
+ LC_ALL=en_US.UTF-8
+ umask 002
+ export OUTDIR=/home/ubuntu/out
+ OUTDIR=/home/ubuntu/out
+ GBUILD_BITS=64
+ GBUILD_CACHE_ENABLED=1
+ GBUILD_PACKAGE_CACHE=/home/ubuntu/cache/bitcoin-linux-0.10
+ GBUILD_COMMON_CACHE=/home/ubuntu/cache/common
+ MAKEOPTS=(-j2)
+ REFERENCE_DATETIME='2013-06-01 00:00:00'
+ REFERENCE_DATE=2013-06-01
+ REFERENCE_TIME=00:00:00
+ cd build/bitcoin
+ git reset -q --hard
+ git clean -q -f -d
+ cd build
+ WRAP_DIR=/home/ubuntu/wrapped
+ HOSTS='i686-pc-linux-gnu x86_64-unknown-linux-gnu'
+ CONFIGFLAGS='--enable-upnp-default --enable-glibc-back-compat'
+ FAKETIME_HOST_PROGS=
+ FAKETIME_PROGS='date ar ranlib nm strip'
+ export QT_RCC_TEST=1
+ QT_RCC_TEST=1
+ export GZIP=-9n
+ GZIP=-9n
+ export 'TAR_OPTIONS=--mtime=2013-06-01\ 00:00:00'
+ TAR_OPTIONS='--mtime=2013-06-01\ 00:00:00'
+ export TZ=UTC
+ TZ=UTC
++ pwd
+ export BUILD_DIR=/home/ubuntu/build
+ BUILD_DIR=/home/ubuntu/build
+ mkdir -p /home/ubuntu/wrapped
+ test -n 1
+ export SOURCES_PATH=/home/ubuntu/cache/common
+ SOURCES_PATH=/home/ubuntu/cache/common
+ export BASE_CACHE=/home/ubuntu/cache/bitcoin-linux-0.10
+ BASE_CACHE=/home/ubuntu/cache/bitcoin-linux-0.10
+ mkdir -p /home/ubuntu/cache/bitcoin-linux-0.10 /home/ubuntu/cache/common
+ for prog in '${FAKETIME_PROGS}'
+ echo '#!/bin/bash'
+ echo 'REAL=`which -a date | grep -v /home/ubuntu/wrapped/date | head -1`'
+ echo 'export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1'
+ echo 'export FAKETIME="2013-06-01 00:00:00"'
+ echo '$REAL $@'
+ chmod +x /home/ubuntu/wrapped/date
+ for prog in '${FAKETIME_PROGS}'
+ echo '#!/bin/bash'
+ echo 'REAL=`which -a ar | grep -v /home/ubuntu/wrapped/ar | head -1`'
+ echo 'export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1'
+ echo 'export FAKETIME="2013-06-01 00:00:00"'
+ echo '$REAL $@'
+ chmod +x /home/ubuntu/wrapped/ar
+ for prog in '${FAKETIME_PROGS}'
+ echo '#!/bin/bash'
+ echo 'REAL=`which -a ranlib | grep -v /home/ubuntu/wrapped/ranlib | head -1`'
+ echo 'export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1'
+ echo 'export FAKETIME="2013-06-01 00:00:00"'
+ echo '$REAL $@'
+ chmod +x /home/ubuntu/wrapped/ranlib
+ for prog in '${FAKETIME_PROGS}'
+ echo '#!/bin/bash'
+ echo 'REAL=`which -a nm | grep -v /home/ubuntu/wrapped/nm | head -1`'
+ echo 'export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1'
+ echo 'export FAKETIME="2013-06-01 00:00:00"'
+ echo '$REAL $@'
+ chmod +x /home/ubuntu/wrapped/nm
+ for prog in '${FAKETIME_PROGS}'
+ echo '#!/bin/bash'
+ echo 'REAL=`which -a strip | grep -v /home/ubuntu/wrapped/strip | head -1`'
+ echo 'export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1'
+ echo 'export FAKETIME="2013-06-01 00:00:00"'
+ echo '$REAL $@'
+ chmod +x /home/ubuntu/wrapped/strip
+ for i in '$HOSTS'
+ for i in '$HOSTS'
+ export PATH=/home/ubuntu/wrapped:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ PATH=/home/ubuntu/wrapped:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ cd bitcoin
++ pwd
+ BASEPREFIX=/home/ubuntu/build/bitcoin/depends
+ for i in '$HOSTS'
+ make -j2 -C /home/ubuntu/build/bitcoin/depends HOST=i686-pc-linux-gnu
make: Entering directory `/home/ubuntu/build/bitcoin/depends'
Fetching native_ccache...
wget: unable to resolve host address `samba.org'
wget: unable to resolve host address `bitcoincore.org'
make: *** [/home/ubuntu/cache/common/download-stamps/.stamp_fetched-native_ccache-ccache-3.1.9.tar.bz2] Error 4
make: Leaving directory `/home/ubuntu/build/bitcoin/depends'
Can someone help me here? I can't figure this out.
I have also had to add wget to the list of packages to install in the gitian-linux.yml file. I am running this on an Ubuntu 15.04 64-bit virtual machine in vmware.
cr1776
Legendary
*
Offline Offline

Activity: 4088
Merit: 1304


View Profile
June 16, 2015, 08:25:07 PM
 #2


Quote
sudo: unable to resolve host ubuntu
wget: unable to resolve host address `samba.org'
wget: unable to resolve host address `bitcoincore.org'

Two questions:
1. Can you specify which "first command" you are running?

2.Can you ping those hosts from your server?

e.g.
ping samba.org
ping bitcoincore.org

:-)
lemipawa (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1003


View Profile
June 16, 2015, 09:17:06 PM
 #3


Quote
sudo: unable to resolve host ubuntu
wget: unable to resolve host address `samba.org'
wget: unable to resolve host address `bitcoincore.org'

Two questions:
1. Can you specify which "first command" you are running?
This one, the first in the "Build Bitcoin Core..." section:
Code:
./bin/gbuild --commit bitcoin=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian-linux.yml

Quote
2.Can you ping those hosts from your server?

e.g.
ping samba.org
ping bitcoincore.org

:-)
From the server:
ubuntu - no
samba.org - yes
bitcoincore.org - yes

From the vm gitian made to do the build:
ubuntu - no
samba.org - no
bitcoincore.org -no

FYI, ubuntu is the hostname (at least it should be) of the vm that gitian created to do the building.
Also, when I ping from the VM it gives this message for each ping (but with different doman):
Code:
ping: unknown host bitcoincore.org
altcoinex
Sr. Member
****
Offline Offline

Activity: 293
Merit: 250


Director - www.cubeform.io


View Profile WWW
June 16, 2015, 09:41:41 PM
 #4

Sounds like the VM doesn't have network access.


                                     ╓╢╬╣╣╖
                                   ┌║██████║∩
                                   ]█████████
                                    ╜██████╝`
                                      ╙╜╜╜`
                                   ╓╥@@@@@@╥╓
         ╓╖@@╖,                 ,@║██████████╢@,                 ,╓@@╖╓
       ╓╢██████╢.              ╓╢███████████████╖               ║╢█████║╓
       ║█████████    ,,╓╓,,   ┌║█████████████████┐   ,,╓╓,,    ]█████████
       └╢██████║` ╓╢║██████╢║∩``╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙`»╢╢██████╢║╖  ║███████╜
         "╜╜╜╜` ╖╢█████████╣╜                      └╢██████████@ `╜╜╜╜╜
               ║██████████╜                          ╙╢██████████
              ┌█████████╜                              ╙╢█████████
              └███████╨`                                 ╜████████
               ║████╨╜                                    `╢█████
                ╙╢╣╜                                        └╢█╜
                ,,                                            ,,
             ╓@║██┐                                          ┌██║@╓
            ╢██████                                          ]█████H
           ╢███████∩                                        ┌████████
  ╓@@@@╓   █████████                                        ║████████`  ╓@@@@╖
╓╢██████║. █████████∩                                      ┌█████████ ,║███████╖
██████████ └█████████                                      ██████████ ]█████████
`║██████╜`  └╢████████                                    ┌███████╣╜   ╙██████╨`
  `╙╜╜╙`      `╙╨╢████                                    █████╝╜`       `╙╜╜`
                      ]@╓                              ╓╖H
                      ███╢║@╓,                    ,╓@╢╢███`
                      ████████╢@╖╓.           ╓╖@║████████`
                      ]███████████╢║@╓,  ,╓@╢╢████████████
                       ╙╢█████████████╨` ╜██████████████╜
                         ╙╝╢███████║╜`    `╜║████████╝╜`
                     ,╓@@@╓  `²╙``             `╙²`  ╓@@@╖,
                    ║╢█████╢H                      ╓╢██████H
                    █████████                      █████████`
                    ╙╢██████╜                      ╙╢██████╜
                      └╨╩╝┘                          └╨╩╝╜
WINFLOW.
██
██
██
██
██
██
██
██
██
██
██
██
██
..
██
██
██
██
██
██
██
██
██
██
██
██
██
.
altcoinex
Sr. Member
****
Offline Offline

Activity: 293
Merit: 250


Director - www.cubeform.io


View Profile WWW
June 16, 2015, 09:43:21 PM
 #5

https://github.com/bitcoin/bitcoin/issues/5428


                                     ╓╢╬╣╣╖
                                   ┌║██████║∩
                                   ]█████████
                                    ╜██████╝`
                                      ╙╜╜╜`
                                   ╓╥@@@@@@╥╓
         ╓╖@@╖,                 ,@║██████████╢@,                 ,╓@@╖╓
       ╓╢██████╢.              ╓╢███████████████╖               ║╢█████║╓
       ║█████████    ,,╓╓,,   ┌║█████████████████┐   ,,╓╓,,    ]█████████
       └╢██████║` ╓╢║██████╢║∩``╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙`»╢╢██████╢║╖  ║███████╜
         "╜╜╜╜` ╖╢█████████╣╜                      └╢██████████@ `╜╜╜╜╜
               ║██████████╜                          ╙╢██████████
              ┌█████████╜                              ╙╢█████████
              └███████╨`                                 ╜████████
               ║████╨╜                                    `╢█████
                ╙╢╣╜                                        └╢█╜
                ,,                                            ,,
             ╓@║██┐                                          ┌██║@╓
            ╢██████                                          ]█████H
           ╢███████∩                                        ┌████████
  ╓@@@@╓   █████████                                        ║████████`  ╓@@@@╖
╓╢██████║. █████████∩                                      ┌█████████ ,║███████╖
██████████ └█████████                                      ██████████ ]█████████
`║██████╜`  └╢████████                                    ┌███████╣╜   ╙██████╨`
  `╙╜╜╙`      `╙╨╢████                                    █████╝╜`       `╙╜╜`
                      ]@╓                              ╓╖H
                      ███╢║@╓,                    ,╓@╢╢███`
                      ████████╢@╖╓.           ╓╖@║████████`
                      ]███████████╢║@╓,  ,╓@╢╢████████████
                       ╙╢█████████████╨` ╜██████████████╜
                         ╙╝╢███████║╜`    `╜║████████╝╜`
                     ,╓@@@╓  `²╙``             `╙²`  ╓@@@╖,
                    ║╢█████╢H                      ╓╢██████H
                    █████████                      █████████`
                    ╙╢██████╜                      ╙╢██████╜
                      └╨╩╝┘                          └╨╩╝╜
WINFLOW.
██
██
██
██
██
██
██
██
██
██
██
██
██
..
██
██
██
██
██
██
██
██
██
██
██
██
██
.
altcoinex
Sr. Member
****
Offline Offline

Activity: 293
Merit: 250


Director - www.cubeform.io


View Profile WWW
June 16, 2015, 09:47:57 PM
 #6

Some info is contained here: https://bitcoinstats.com/irc/bitcoin-dev/logs/2014/12/04


                                     ╓╢╬╣╣╖
                                   ┌║██████║∩
                                   ]█████████
                                    ╜██████╝`
                                      ╙╜╜╜`
                                   ╓╥@@@@@@╥╓
         ╓╖@@╖,                 ,@║██████████╢@,                 ,╓@@╖╓
       ╓╢██████╢.              ╓╢███████████████╖               ║╢█████║╓
       ║█████████    ,,╓╓,,   ┌║█████████████████┐   ,,╓╓,,    ]█████████
       └╢██████║` ╓╢║██████╢║∩``╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙`»╢╢██████╢║╖  ║███████╜
         "╜╜╜╜` ╖╢█████████╣╜                      └╢██████████@ `╜╜╜╜╜
               ║██████████╜                          ╙╢██████████
              ┌█████████╜                              ╙╢█████████
              └███████╨`                                 ╜████████
               ║████╨╜                                    `╢█████
                ╙╢╣╜                                        └╢█╜
                ,,                                            ,,
             ╓@║██┐                                          ┌██║@╓
            ╢██████                                          ]█████H
           ╢███████∩                                        ┌████████
  ╓@@@@╓   █████████                                        ║████████`  ╓@@@@╖
╓╢██████║. █████████∩                                      ┌█████████ ,║███████╖
██████████ └█████████                                      ██████████ ]█████████
`║██████╜`  └╢████████                                    ┌███████╣╜   ╙██████╨`
  `╙╜╜╙`      `╙╨╢████                                    █████╝╜`       `╙╜╜`
                      ]@╓                              ╓╖H
                      ███╢║@╓,                    ,╓@╢╢███`
                      ████████╢@╖╓.           ╓╖@║████████`
                      ]███████████╢║@╓,  ,╓@╢╢████████████
                       ╙╢█████████████╨` ╜██████████████╜
                         ╙╝╢███████║╜`    `╜║████████╝╜`
                     ,╓@@@╓  `²╙``             `╙²`  ╓@@@╖,
                    ║╢█████╢H                      ╓╢██████H
                    █████████                      █████████`
                    ╙╢██████╜                      ╙╢██████╜
                      └╨╩╝┘                          └╨╩╝╜
WINFLOW.
██
██
██
██
██
██
██
██
██
██
██
██
██
..
██
██
██
██
██
██
██
██
██
██
██
██
██
.
lemipawa (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1003


View Profile
June 16, 2015, 11:45:30 PM
 #7

Thanks. I've solved it. The solution in that issue works for me  Cheesy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!