capnp fails when cross-compiling #28993

issue hebasto openend this issue on December 4, 2023
  1. hebasto commented at 2:33 pm on December 4, 2023: member

    On the master branch @ 160d23677ad799cf9b493eaa923b2ac080c3fb8e, the native/bin/capnp fails when cross-compiling with MULTIPROCESS=1:

    0  GEN      /home/hebasto/git/bitcoin/depends/x86_64-pc-linux-gnu/include/mp/proxy.capnp.h
    1/home/hebasto/git/bitcoin/depends/x86_64-pc-linux-gnu/include/mp/proxy.capnp: File is not in the current directory and does not match any prefix defined with --src-prefix. Please pass an appropriate --src-prefix so I can figure out where to write the output for this file.
    2/home/hebasto/git/bitcoin/depends/x86_64-apple-darwin/native/bin/capnp compile: /home/hebasto/git/bitcoin/depends/x86_64-pc-linux-gnu/include/mp/proxy.capnp: no such file
    3Try '/home/hebasto/git/bitcoin/depends/x86_64-apple-darwin/native/bin/capnp compile --help' for more information.
    4terminate called after throwing an instance of 'std::runtime_error'
    5  what():  Invoking /home/hebasto/git/bitcoin/depends/x86_64-apple-darwin/native/bin/capnp failed
    6make[2]: *** [/home/hebasto/git/bitcoin/depends/x86_64-apple-darwin/native/include/mpgen.mk:4: /home/hebasto/git/bitcoin/depends/x86_64-pc-linux-gnu/include/mp/proxy.capnp.h] Aborted (core dumped)
    

    Please note, that it looks for x86_64-pc-linux-gnu subdirectory, while HOST=x86_64-apple-darwin.

    UPDATE: The bug happens on Ubuntu 23.10, but not on Ubuntu 22.04.

  2. hebasto commented at 2:33 pm on December 4, 2023: member
  3. maflcko added the label Build system on Dec 4, 2023
  4. maflcko added the label Bug on Dec 4, 2023
  5. ryanofsky commented at 6:00 pm on December 4, 2023: contributor
    I’m struggling to get darwin build working locally, but I will try docker to reproduce this. Do you know if this might be a recent regression, or when was the last time it might have worked?
  6. hebasto commented at 7:58 pm on December 4, 2023: member
    Another detail. The bug happens on Ubuntu 23.10, but not on Ubuntu 22.04.
  7. ryanofsky commented at 8:02 pm on December 4, 2023: contributor

    I’m still working on this and not having any luck reproducing it. Can you give more complete steps to reproduce? I’m using the CI docker container and running:

    0cd /ci_container_base
    1make -C depends HOST=x86_64-apple-darwin MULTIPROCESS=1 NO_QT=1 V=1
    2mkdir build
    3cd build
    4CONFIG_SITE=$PWD/../depends/x86_64-apple-darwin/share/config.site ../configure
    5make
    

    ffb021612b8f581cbbaffacc80922d1bc5683706 is checked out. It looks like you’re doing something different, but I’m not sure what exactly. Alternately if you could run make with V=1 that would be helpful to see command line mpgen is invoked with

  8. hebasto commented at 10:08 pm on December 4, 2023: member

    I fail to reproduce the bug in clean docker environment. Perhaps, my machine has a broken environment.

    Closing.

  9. hebasto closed this on Dec 4, 2023

  10. ryanofsky commented at 10:10 pm on December 4, 2023: contributor
    That makes more sense. Thanks for the bug report in any case!
  11. hebasto commented at 1:23 pm on December 5, 2023: member

    That makes more sense. Thanks for the bug report in any case!

    I was careless and didn’t run make distclean.


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-06-29 07:13 UTC

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