boost-linux.yml missing g++ dependency #3610

issue gavinandresen opened this issue on January 31, 2014
  1. gavinandresen commented at 2:33 PM on January 31, 2014: contributor

    I'm setting up VirtualBox gitian VMs from scratch, and building the first dependency (boost-linux.yml) failed because of missing "g++".

    apt-get install g++ into my base VM fixes it, but I think the .yml file (or maybe several of our gitian-descriptor .yml files) needs g++ as a required package.

  2. laanwj commented at 4:07 PM on January 31, 2014: member

    Hmm, weird that I never got an error about this. But yes it makes sense to add it.

  3. Diapolo commented at 5:11 PM on January 31, 2014: none

    Is there a recent "how to setup and Gitian build" doc? I'm considering to participate in this finally :).

  4. laanwj commented at 9:15 PM on January 31, 2014: member

    More changes necessary in linux-deps, for libqrencode:

    • -with-pic should be --with-pic
    • add --disable-maintainer-mode and --disable-dependency-tracking to configure parameters to prevent it from trying to rebuild configure and subsequently crashing on missing m4 directory
  5. gavinandresen commented at 9:50 PM on January 31, 2014: contributor

    @Diapolo : I'm keeping track of exactly what I'm doing in an unpublished blog post for gavintech.blogspot.com -- when I actually get a build working, I'll publish it.

  6. laanwj commented at 7:26 AM on February 1, 2014: member

    I've again built the deps without any errors, without adding any of the above things. I simply used bin/make-base-vm --arch i386 --suite precise and bin/make-base-vm --arch amd64 --suite precise to make the VMs, but it's already a while ago. This is really weird.

    One possible reason is that the VM building in gitian master changed since I did it (and it no longer includes g++ by default?). We had a similar problem with the disk size that was increased to 10GB. Some people still had old images and couldn't build the Qt dep due to lack of space. So maybe we need to add a recommendation to re-generate your precise images even if you already have them...

    Edit: going to re-generate images and see. Edit2: WIth pristine images dependency building still goes fine. I don't get it. Somehow, the setup must make a difference.

  7. laanwj commented at 8:58 AM on February 1, 2014: member

    @gavinandresen do you perhaps use LXC? @wtogami and me did the testing with qemu, maybe there is a sneaky difference there.

  8. gavinandresen commented at 1:58 PM on February 1, 2014: contributor

    I use VirtualBox; I forgot I wrote a make-virtualbox-vm, but it still requires manual installation/setup because there is no VirtualBox equivalent of 'vmbuilder' (which is what make-base-vm calls to do a non-interactive VM creation).

    gitian make-base-vm has: addpkg=openssh-server,pciutils,build-essential,git-core,subversion

    ... so I'm guessing one of those packages pulls in g++. Still, wouldn't hurt to be more explicit about dependencies in the .yml files.

    I've run into (and worked around) another problem with building in VirtualBox; I'll open another issue about it.

  9. tlrobinson commented at 6:40 PM on February 1, 2014: none

    It would be great to have a Vagrantfile (https://www.vagrantup.com/) for setting up a gitian environment. I'm happy to do it myself once you publish the steps.

  10. gavinandresen commented at 7:24 PM on February 1, 2014: contributor

    Would be awesome to have a Vagrantfile!

    I'm still tracking down one mystery (that might have involved me screwing up and snapshotting the VM image at the wrong spot), but writeup is at: http://gavintech.blogspot.com/2014/02/gitian-building-bitcoin-releases.html

  11. int03h commented at 1:16 AM on February 2, 2014: none

    I added a few comments to the bottom of that blogspot Gavin. Your write-up it really useful. I am still trying to get a windows build out and have been failing for a few days. Its getting closer though.

  12. laanwj referenced this in commit 9debb6b3d3 on Feb 3, 2014
  13. laanwj referenced this in commit 68d9c408a7 on Feb 3, 2014
  14. laanwj referenced this in commit 6ee222fdeb on Feb 3, 2014
  15. laanwj referenced this in commit 65615a3a78 on Feb 3, 2014
  16. laanwj closed this on Feb 3, 2014

  17. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 18:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me