Unable to cross compile Zeromq Dependency for arm64-apple-darwin #26420

issue BlockMechanic openend this issue on October 29, 2022
  1. BlockMechanic commented at 12:33 pm on October 29, 2022: contributor

    Trying to compile starting with dependencies fails with

    checking build system type… x86_64-pc-linux-gnu checking host system type… Invalid configuration arm64-apple-darwin': machine arm64-apple’ not recognized configure: error: /bin/bash config/config.sub arm64-apple-darwin failed

    Expected behavior

    Actual behavior

    checking for arm64-apple-darwin-pkg-config… no checking for pkg-config… /usr/bin/pkg-config checking pkg-config is at least version 0.9.0… yes checking for xmlto… no checking for asciidoc… no checking build system type… x86_64-pc-linux-gnu checking host system type… Invalid configuration arm64-apple-darwin': machine arm64-apple’ not recognized configure: error: /bin/bash config/config.sub arm64-apple-darwin failed make: *** [funcs.mk:289: /home/bitcoin/Downloads/bitcoin-master/depends/work/build/arm64-apple-darwin/zeromq/4.3.4-0f6f30942e0/./.stamp_configured] Error 1

    To reproduce

    command : make HOST=arm64-apple-darwin -j 8

    System information

    Master Branch Ubuntu 20.04 Core i5 intel 16GB RAM

  2. BlockMechanic added the label Bug on Oct 29, 2022
  3. maflcko added the label macOS on Oct 29, 2022
  4. maflcko added the label Build system on Oct 29, 2022
  5. fanquake commented at 1:42 pm on October 29, 2022: member
    Depends has it’s own config.guess and config.sub, that does recognise arm64-apple-darwin (which it converts to aarch64-apple-darwin), which we copy and use when building zeromq. I can’t recreate your issue using the details you’ve provided, so you’ll have to provide more information.
  6. BlockMechanic commented at 2:18 pm on October 29, 2022: contributor

    Not sure what other info i can possibly provide. I just cloned the git, go into depends and run

    make HOST=arm64-apple-darwin

    With the optional -j 8 for number of threads to use.

    I tested other builds namely x86_64-apple-darwin and x86_64-w64-mingw32

    Those worked just fine

  7. fanquake referenced this in commit 1914e470e3 on Oct 29, 2022
  8. fanquake commented at 2:55 pm on October 29, 2022: member

    Not sure what other info i can possibly provide.

    I see the problem now. I couldn’t recreate before, because I needed to use a slightly older verison of Ubuntu. Should be fixed by #26421.

  9. BlockMechanic commented at 4:12 pm on October 29, 2022: contributor

    Thank you. Finally. Depends built OK, but now running CONFIG_SITE=$PWD/depends/arm64-apple-darwin/share/config.site ./configure fails with

    0configure: loading site script /home/bitcoin/Downloads/bitcoin-master/depends/arm64-apple-darwin/share/config.site
    1checking for arm64-apple-darwin-pkg-config... /usr/bin/pkg-config --static
    2checking pkg-config is at least version 0.9.0... yes
    3checking build system type... x86_64-pc-linux-gnu
    4checking host system type... Invalid configuration `arm64-apple-darwin': machine `arm64-apple' not recognized
    5configure: error: /bin/bash build-aux/config.sub arm64-apple-darwin failed
    6make: *** No targets specified and no makefile found.  Stop.
    

    I looked at the generated config.guess and config.sub in build-aux , they seem dated. Replacing them worked.

  10. hebasto commented at 12:56 pm on October 30, 2022: member

    I looked at the generated config.guess and config.sub in build-aux , they seem dated. Replacing them worked.

    Fixed in #26422.

  11. ShoelessTom commented at 3:52 am on October 31, 2022: none
    is it fixed tho? the issue is still present 4 me, mine need to update some files
  12. luke-jr commented at 6:08 pm on November 5, 2022: member
    Seems like a distro bug. I’m not sure it makes sense to try too hard to workaround those, especially for something like cross compiling where it makes more sense to just say “use a non-broken distro”…?
  13. hebasto commented at 6:39 pm on November 5, 2022: member

    Seems like a distro bug.

    Is age a bug?

  14. luke-jr commented at 7:17 pm on November 5, 2022: member

    Or absence of a feature, if you prefer.

    (But failing for no reason because of an unknown platform seems like a bug IMO.)

  15. fanquake closed this on Feb 7, 2023

  16. fanquake referenced this in commit fe86616bb4 on Feb 7, 2023
  17. sidhujag referenced this in commit 7ea4a1a9dd on Feb 7, 2023
  18. josibake referenced this in commit f7f5282f6d on Apr 5, 2023
  19. fanquake referenced this in commit edd2a86445 on May 16, 2023
  20. sidhujag referenced this in commit 302086acc2 on May 17, 2023
  21. lyricidal referenced this in commit 0593d5e690 on Nov 6, 2023
  22. bitcoin locked this on Feb 7, 2024

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-21 15:12 UTC

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