Build broken when enabling fuzzing on Apple M1 hw using homebrew llvm. #24386

issue john-difool openend this issue on February 19, 2022
  1. john-difool commented at 9:05 am on February 19, 2022: none

    Enabling fuzzing on macos (Monterey) with Apple M1 hw (arm64) breaks the build:

    • I did the steps required to use llvm with homebrew (brew install llvm). Then passed CC & CXX env vars pointing their new respective binaries. Most fuzz tests compiled till I got to crc32c.

    ./configure –enable-fuzz –with-sanitizers=fuzzer,address,undefined CC=/opt/homebrew/opt/llvm/bin/clang CXX=/opt/homebrew/opt/llvm/bin/clang++ –disable-asm

    CXXLD test/fuzz/fuzz Undefined symbols for architecture arm64: “crc32c::ExtendArm64(unsigned int, unsigned char const*, unsigned long)”, referenced from: crc32c::Extend(unsigned int, unsigned char const*, unsigned long) in libcrc32c.a(libcrc32c_a-crc32c.o) ld: symbol(s) not found for architecture arm64 clang-13: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [test/fuzz/fuzz] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1

  2. john-difool added the label Feature on Feb 19, 2022
  3. fanquake removed the label Feature on Feb 21, 2022
  4. fanquake added the label Build system on Feb 21, 2022
  5. fanquake added the label macOS on Feb 21, 2022
  6. fanquake commented at 1:18 pm on February 23, 2022: member
    @hebasto @jarolrod can either of you confirm this failure? I don’t currently have access to an M1 box.
  7. hebasto commented at 7:52 pm on February 23, 2022: member

    Tested the recent master branch (0a76bf848c72211f986a6cc5b1c13de820b861dd) on Mac mini (M1, 2020) + macOS Monterey 12.2.1 (21D62):

    0% brew info llvm | head -1
    1llvm: stable 13.0.1 (bottled), HEAD [keg-only]
    2% ./autogen.sh
    3% ./configure --enable-fuzz --with-sanitizers=fuzzer,address,undefined --enable-suppress-external-warnings CC=/opt/homebrew/opt/llvm/bin/clang CXX=/opt/homebrew/opt/llvm/bin/clang++
    4% make clean
    5% make  # no errors
    

    Also successfully compiled with:

    0% ./configure --enable-fuzz --with-sanitizers=fuzzer,address,undefined --disable-asm CC=/opt/homebrew/opt/llvm/bin/clang CXX=/opt/homebrew/opt/llvm/bin/clang++
    
  8. fanquake commented at 4:40 pm on March 7, 2022: member
    Going to close for now. @john-difool if this is still broken for you can you provide any more info?
  9. fanquake closed this on Mar 7, 2022

  10. DrahtBot locked this on Mar 7, 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-30 15:12 UTC

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