build: mingw GUIX build is failing on current master #24055

issue laanwj openend this issue on January 13, 2022
  1. laanwj commented at 11:08 am on January 13, 2022: member

    Current HEAD commit 290ff5ef6d3886409e5e8688f7d28a4c8246c617 fails to build on guix (on a GUIX VM) here:

    Build command

    0time ( SOURCES_PATH="${HOME}/sources" BASE_CACHE="${HOME}/base-cache" SDK_PATH="${HOME}/sdk-path" contrib/guix/guix-build ) 2>&1 | tee "${HOME}/build.log"
    

    Last output:

     0INFO: Building 290ff5ef6d38 for platform triple x86_64-linux-gnu:
     1      ...using reference timestamp: 1642008478
     2      ...running at most 8 jobs
     3      ...from worktree directory: '/home/guest/bitcoin'
     4          ...bind-mounted in container to: '/bitcoin'
     5      ...in build directory: '/home/guest/bitcoin/guix-build-290ff5ef6d38/distsrc-290ff5ef6d38-x86_64-linux-gnu'
     6          ...bind-mounted in container to: '/distsrc-base/distsrc-290ff5ef6d38-x86_64-linux-gnu'
     7      ...outputting in: '/home/guest/bitcoin/guix-build-290ff5ef6d38/output/x86_64-linux-gnu'
     8          ...bind-mounted in container to: '/outdir-base/x86_64-linux-gnu'
     9Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
    10Computing Guix derivation for 'x86_64-linux'...  
    11substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
    12substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
    13The following derivation will be built:
    14   /gnu/store/cscw4gwah43lagqlljb19s26dhvlr6m6-profile.drv
    15
    16building package cache...
    17builder for `/gnu/store/ni374dsml56hdgsqdg2zpa5qvl1mban4-guix-package-cache.drv' failed to produce output path `/gnu/store/bd7zd6fx23k3z18c73zb288yz8v6f5lb-guix-package-cache'
    18build of /gnu/store/ni374dsml56hdgsqdg2zpa5qvl1mban4-guix-package-cache.drv failed
    19View build log at '/var/log/guix/drvs/ni/374dsml56hdgsqdg2zpa5qvl1mban4-guix-package-cache.drv.bz2'.
    20note: keeping build directory `/tmp/guix-build-guix-package-cache.drv-1'
    21cannot build derivation `/gnu/store/cscw4gwah43lagqlljb19s26dhvlr6m6-profile.drv': 1 dependencies couldn't be built
    22guix time-machine: error: build of `/gnu/store/cscw4gwah43lagqlljb19s26dhvlr6m6-profile.drv' failed
    

    Looking in the mentioned log:

    0$ bunzip2 < /var/log/guix/drvs/ni/374dsml56hdgsqdg2zpa5qvl1mban4-guix-package-cache.drv.bz2
    1(repl-version 0 1 1)
    2Generating package cache for '/gnu/store/h9app05jj4bc45fjp1hgld86ij6n8bv4-profile'...
    3(exception unbound-variable (value #f) (value "Unbound variable: ~S") (value (gnupg-2.2.32)) (value #f))
    
  2. laanwj added the label Build system on Jan 13, 2022
  3. laanwj renamed this:
    GUIX build is failing on current master
    build: GUIX build is failing on current master
    on Jan 13, 2022
  4. 0xB10C commented at 11:31 am on January 13, 2022: member
    Can reproduce on 31db3dd874df (the next commit after 290ff5ef6d3886409e5e8688f7d28a4c8246c617). Guess it’s not a problem with your setup.
  5. laanwj commented at 11:47 am on January 13, 2022: member
    It looks like #24057 fixes this. At least the process continues longer, will take a while to finish.
  6. laanwj commented at 9:19 am on January 14, 2022: member

    It fixed the original problem. However it fails in a new place while building the win32 cross-compiler now:

    0building /gnu/store/6qvzfb0sf24giqril64jsymspng6avyb-gcc-cross-x86_64-w64-mingw32-10.3.0.drv...
    1note: keeping build directory `/tmp/guix-build-gcc-cross-x86_64-w64-mingw32-10.3.0.drv-0'
    2builder for `/gnu/store/6qvzfb0sf24giqril64jsymspng6avyb-gcc-cross-x86_64-w64-mingw32-10.3.0.drv' failed with exit code 1
    3build of /gnu/store/6qvzfb0sf24giqril64jsymspng6avyb-gcc-cross-x86_64-w64-mingw32-10.3.0.drv failed
    4View build log at '/var/log/guix/drvs/6q/vzfb0sf24giqril64jsymspng6avyb-gcc-cross-x86_64-w64-mingw32-10.3.0.drv.bz2'.
    5building /gnu/store/1jqzirixzsmkcbzg3mk62h5l1cncgwrn-mingw-w64-x86_64-winpthreads-8.0.0.drv...
    6cannot build derivation `/gnu/store/jd9dfysdmk7y8hq2abdrllyy9hmns7l5-nsis-x86_64-3.05.drv': 1 dependencies couldn't be built
    7note: keeping build directory `/tmp/guix-build-mingw-w64-x86_64-winpthreads-8.0.0.drv-0'
    8cannot build derivation `/gnu/store/2i9lg9yxrbir7rhkda9zd8hjz3mnrawi-profile.drv': 1 dependencies couldn't be built
    9guix environment: error: build of `/gnu/store/2i9lg9yxrbir7rhkda9zd8hjz3mnrawi-profile.drv' failed
    

    With a linker error:

    0/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash ../../../gcc-10.3.0/libgcc/../mkinstalldirs .
    1ln -s -f libgcc.map libgcc.map.def && if [ ! -d ./shlib ]; then mkdir ./shlib; else true; fi && /tmp/guix-build-gcc-cross-x86_64-w64-mingw32-10.3.0.drv-0/build/./gcc/xgcc -B/tmp/guix-build-gcc-cross-x86_64-w64-mingw32-10.3.0.drv-0/build/./gcc/ -B/gnu/store/4fh9s2n54m57gcapc0kslaicc4pxf13g-mingw-w64-x86_64-8.0.0/lib    -O2 -I../../../gcc-10.3.0/libgcc/../winsup/w32api/include -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag -Wold-style-definition  -isystem ./include   -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -shared -nodefaultlibs libgcc.map.def -Wl,--out-implib,./shlib/libgcc_s.a.tmp -o ./shlib/libgcc_s_seh-1.dll.tmp -g -O2 -B./ _chkstk_s.o _chkstk_ms_s.o _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulhc3_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divhc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _divmoddi4_s.o _udivdi3_s.o _umoddi3_s.o _udivmoddi4_s.o _udiv_w_sdiv_s.o gthr-win32_s.o cpuinfo_s.o sfp-exceptions_s.o addtf3_s.o divtf3_s.o eqtf2_s.o getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o fixtfti_s.o fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o enable-execute-stack_s.o unwind-seh_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o libgcc.a  -lmingwthrd -lmingw32 -lmingwex -lmoldname -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 && if [ -f ./shlib/libgcc_s_seh-1.dll ]; then mv -f ./shlib/libgcc_s_seh-1.dll ./shlib/libgcc_s_seh-1.dll.backup; else true; fi && mv ./shlib/libgcc_s_seh-1.dll.tmp ./shlib/libgcc_s_seh-1.dll && mv ./shlib/libgcc_s.a.tmp ./shlib/libgcc_s.a
    2x86_64-w64-mingw32-ld: final link failed: bad value
    3collect2: error: ld returned 1 exit statu
    

    This is a really weird problem, will try again to see if it happens deterministically. Edit: yes, it keeps happening.

  7. MarcoFalke closed this on Jan 24, 2022

  8. laanwj commented at 6:07 pm on February 2, 2022: member

    I have this issue again with master as of 219d728fcbde8c313940788838afa46c2fb88762.

    0building /gnu/store/6qvzfb0sf24giqril64jsymspng6avyb-gcc-cross-x86_64-w64-mingw32-10.3.0.drv...
    1note: keeping build directory `/tmp/guix-build-gcc-cross-x86_64-w64-mingw32-10.3.0.drv-1'
    2builder for `/gnu/store/6qvzfb0sf24giqril64jsymspng6avyb-gcc-cross-x86_64-w64-mingw32-10.3.0.drv' failed with exit code 1
    3build of /gnu/store/6qvzfb0sf24giqril64jsymspng6avyb-gcc-cross-x86_64-w64-mingw32-10.3.0.drv failed
    4View build log at '/var/log/guix/drvs/6q/vzfb0sf24giqril64jsymspng6avyb-gcc-cross-x86_64-w64-mingw32-10.3.0.drv.bz2'.
    5cannot build derivation `/gnu/store/i2pp5in7bl4ghq8apphmwdjsksw724pr-nsis-x86_64-3.05.drv': 1 dependencies couldn't be built
    6guix environment: error: build of `/gnu/store/i2pp5in7bl4ghq8apphmwdjsksw724pr-nsis-x86_64-3.05.drv' failed
    
     0x86_64-w64-mingw32-ld: final link failed: bad value
     1collect2: error: ld returned 1 exit status
     2make[2]: *** [Makefile:994: libgcc_s.dll] Error 1
     3make[2]: Leaving directory '/tmp/guix-build-gcc-cross-x86_64-w64-mingw32-10.3.0.drv-0/build/x86_64-w64-mingw32/libgcc'
     4make[1]: *** [Makefile:12748: all-target-libgcc] Error 2
     5make[1]: Leaving directory '/tmp/guix-build-gcc-cross-x86_64-w64-mingw32-10.3.0.drv-0/build'
     6make: *** [Makefile:957: all] Error 2
     7error: in phase 'build': uncaught exception:
     8%exception #<&invoke-error program: "make" arguments: ("-j" "8" "FLAGS_FOR_TARGET=-B/gnu/store/4fh9s2n54m57gcapc0kslaicc4pxf13g-mingw-w64-x86_64-8.0.0/lib" "CFLAGS=-g0 -O2") exit-status: 2 term-signal: #f stop-signal: #f>
     9phase `build' failed after 409.0 seconds
    10command "make" "-j" "8" "FLAGS_FOR_TARGET=-B/gnu/store/4fh9s2n54m57gcapc0kslaicc4pxf13g-mingw-w64-x86_64-8.0.0/lib" "CFLAGS=-g0 -O2" failed with status 2
    
  9. laanwj reopened this on Feb 2, 2022

  10. dongcarl commented at 3:23 am on February 3, 2022: member

    Upstream tracking: Issue: https://issues.guix.gnu.org/53426 Patch: https://issues.guix.gnu.org/53706

    I’m also testing a branch that fixes this in manifest.scm without any upstream intervention (ofc fixed upstream is better).

  11. laanwj renamed this:
    build: GUIX build is failing on current master
    build: mingw GUIX build is failing on current master
    on Feb 3, 2022
  12. dongcarl commented at 6:44 pm on February 3, 2022: member

    The patch is now a blocker for the next Guix release: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=53214;msg=51

    Fixing in manifest.scm is turning out to be a little more involved than I thought, but will keep at it.

  13. dongcarl commented at 9:48 pm on February 7, 2022: member

    Patch pushed to master for Guix: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=2d78b27711d44f39fabf170d044b45247af7babe

    I’d recommend that we wait until the next convergence (when the guix package within Guix is bumped) to bump our time-machine target. However, if 1.4.0 is released before our next release, we should target that instead.

  14. hebasto commented at 10:15 pm on February 7, 2022: member

    Patch pushed to master for Guix: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=2d78b27711d44f39fabf170d044b45247af7babe

    I’d recommend that we wait until the next convergence (when the guix package within Guix is bumped) to bump our time-machine target. However, if 1.4.0 is released before our next release, we should target that instead.

    Considering recently merged #20744 and its follow ups that really should be tested for Windows target, I’d suggest to switch to the current top commit in the Guix master branch, and unfreeze Windows builds.

  15. dongcarl commented at 5:49 pm on February 8, 2022: member
    Sounds good, feel free to PR!
  16. fanquake referenced this in commit eb9699bcd7 on Feb 9, 2022
  17. fanquake referenced this in commit f6ff8d8604 on Feb 9, 2022
  18. laanwj commented at 8:46 am on February 17, 2022: member
    This is confirmed fixed by #24348.
  19. fanquake closed this on Feb 17, 2022

  20. sidhujag referenced this in commit 41068c845b on Feb 18, 2022
  21. DrahtBot locked this on Feb 17, 2023

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: 2024-12-19 03:12 UTC

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