fuzz:crc32c::ExtendArm64 Undefined symbols for architecture arm64: #28223

issue Smiril openend this issue on August 5, 2023
  1. Smiril commented at 5:51 pm on August 5, 2023: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    configure success make failed

    Expected behaviour

    make Failed

    Steps to reproduce

    ./configure –enable-fuzz –disable-asm …. Build Options: with external callbacks = no with benchmarks = no with tests = yes with ctime tests = no with coverage = no with examples = no module ecdh = no module recovery = yes module extrakeys = yes module schnorrsig = yes module ellswift = yes

    asm = no ecmult window size = 15 ecmult gen prec. bits = 4

    valgrind = no CC = gcc CPPFLAGS = SECP_CFLAGS = -O2 -std=c89 -pedantic -Wno-long-long -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wno-overlength-strings -Wall -Wno-unused-function -Wextra -Wcast-align -Wconditional-uninitialized -Wreserved-identifier -fvisibility=hidden CFLAGS = -g -O2 LDFLAGS =

    Options used to compile and link: external signer = no multiprocess = no with libs = no with wallet = yes with sqlite = yes with bdb = yes with gui / qt = no with zmq = no with test = not building test_bitcoin because fuzzing is enabled with fuzz binary = yes with bench = no with upnp = no with natpmp = no use asm = no USDT tracing = no sanitizers = debug enabled = no gprof enabled = no werror = no LTO = no

    target os = darwin22.6.0 build os = darwin22.6.0

    CC = gcc CFLAGS = -pthread -g -O2 CPPFLAGS = -DABORT_ON_FAILED_ASSUME -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -DHAVE_BUILD_INFO -Xclang -internal-isystem/usr/local/include -DMAC_OSX -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -DPROVIDE_FUZZ_MAIN_FUNCTION CXX = g++ -std=c++17 CXXFLAGS = -Wstack-protector -fstack-protector-all -Wall -Wextra -Wgnu -Wformat -Wformat-security -Wvla -Wshadow-field -Wthread-safety -Wloop-analysis -Wredundant-decls -Wunused-member-function -Wdate-time -Wconditional-uninitialized -Woverloaded-virtual -Wsuggest-override -Wunreachable-code-loop-increment -Wimplicit-fallthrough -Wdocumentation -Wno-unused-parameter -Wno-self-assign -g -O2 LDFLAGS = -lpthread -Wl,-bind_at_load -Wl,-fixup_chains -Wl,-headerpad_max_install_names -Wl,-dead_strip -Wl,-dead_strip_dylibs AR = /usr/bin/ar ARFLAGS = cr …. make

    Relevant log output

    AR libbitcoin_util.a CXX libbitcoin_consensus_a-arith_uint256.o CXX consensus/libbitcoin_consensus_a-merkle.o CXX consensus/libbitcoin_consensus_a-tx_check.o CXX libbitcoin_consensus_a-hash.o CXX primitives/libbitcoin_consensus_a-block.o CXX primitives/libbitcoin_consensus_a-transaction.o CXX libbitcoin_consensus_a-pubkey.o CXX script/libbitcoin_consensus_a-bitcoinconsensus.o CXX script/libbitcoin_consensus_a-interpreter.o CXX script/libbitcoin_consensus_a-script.o CXX libbitcoin_consensus_a-uint256.o AR libbitcoin_consensus.a CXX crypto/libbitcoin_crypto_base_la-chacha_poly_aead.lo CXX crypto/libbitcoin_crypto_base_la-chacha20.lo CXX crypto/libbitcoin_crypto_base_la-poly1305.lo CXX crypto/libbitcoin_crypto_base_la-muhash.lo CXX crypto/libbitcoin_crypto_base_la-ripemd160.lo CXX crypto/libbitcoin_crypto_base_la-sha1.lo CXX crypto/libbitcoin_crypto_base_la-sha256.lo CXX crypto/libbitcoin_crypto_base_la-sha3.lo CXX crypto/libbitcoin_crypto_base_la-sha512.lo CXX crypto/libbitcoin_crypto_base_la-siphash.lo CXXLD crypto/libbitcoin_crypto_base.la CXX rpc/libbitcoin_cli_a-client.o AR libbitcoin_cli.a 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_la-crc32c.o) ld: symbol(s) not found for architecture arm64 clang: 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

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    25.x

    Operating system and version

    MacOS Ventura 13.5

    Machine specifications

    M1 MacBook Pro 16" 10/32/64GB 1TB

  2. jonatack commented at 6:03 pm on August 5, 2023: contributor

    Try this (from doc/fuzzing.md) – it works for me with the same equipment.

    0./autogen.sh && ./configure --enable-fuzz --with-sanitizers=fuzzer,address,undefined --disable-asm CC=$(brew --prefix llvm)/bin/clang CXX=$(brew --prefix llvm)/bin/clang++ && make clean && make -j11
    
  3. MarcoFalke added the label macOS on Aug 6, 2023
  4. MarcoFalke added the label Tests on Aug 6, 2023
  5. MarcoFalke added the label Questions and Help on Aug 6, 2023
  6. MarcoFalke commented at 7:49 am on August 6, 2023: member
    Closing for now. Let us know if this is still an issue or if you have any other questions.
  7. MarcoFalke closed this on Aug 6, 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-07-01 10:13 UTC

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