build: Allow to configure --with-sanitizers=fuzzer #15047

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:Mf1812-buildSanFuzz changing 2 files +33 −10
  1. MarcoFalke commented at 9:49 PM on December 27, 2018: member

    No description provided.

  2. MarcoFalke added the label Build system on Dec 27, 2018
  3. MarcoFalke added the label Needs gitian build on Dec 27, 2018
  4. fanquake requested review from theuni on Dec 27, 2018
  5. practicalswift commented at 8:20 PM on December 28, 2018: contributor

    Concept ACK

  6. laanwj commented at 10:44 AM on January 2, 2019: member

    Might be useful to document this somewhere.

  7. MarcoFalke force-pushed on Jan 2, 2019
  8. MarcoFalke force-pushed on Jan 2, 2019
  9. MarcoFalke force-pushed on Jan 5, 2019
  10. MarcoFalke force-pushed on Jan 5, 2019
  11. build: Allow to configure --with-sanitizers=fuzzer fad058a79f
  12. MarcoFalke force-pushed on Jan 5, 2019
  13. MarcoFalke commented at 6:06 PM on January 5, 2019: member

    Added documentation

  14. fanquake commented at 6:04 AM on January 7, 2019: member

    Concept/utACK fad058a

    Annoyingly, this doesn't work out of the box on macOS:

    checking whether C++ compiler accepts -Werror... yes
    checking whether C++ compiler accepts -fsanitize=fuzzer,address... yes
    checking whether the linker accepts -fsanitize=fuzzer,address... no
    configure: error: linker did not accept requested flags, you are missing required libraries
    

    Seemingly because Xcode 10 doesn't include a copy of libclang_rt.fuzzer_osx.a. i.e:

    clang++ -fsanitize=fuzzer -o fuzzme fuzzme.cpp
    ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.0/lib/darwin/libclang_rt.fuzzer_osx.a
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    

    Configuring Core with all other sanitizers, address, thread, undefined etc, works correctly.

    Will test in a Linux env shortly.

  15. DrahtBot commented at 10:55 PM on January 9, 2019: member

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #15043 (test: Build fuzz targets into seperate executables by MarcoFalke)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  16. DrahtBot commented at 5:13 PM on January 10, 2019: member

    <!--a722867cd34abeea1fadc8d60700f111-->

    Gitian builds for commit 5da08e0ac51682376767d823e76d2a92c61a5d97 (master):

    Gitian builds for commit 830fd7c66bef66cac0acd33d4300f04cea47a8c1 (master and this pull):

  17. DrahtBot removed the label Needs gitian build on Jan 10, 2019
  18. practicalswift commented at 5:26 PM on January 10, 2019: contributor

    utACK fad058a79fe6f8d85e408d1c1954de8b86944039

  19. MarcoFalke merged this on Jan 10, 2019
  20. MarcoFalke closed this on Jan 10, 2019

  21. MarcoFalke referenced this in commit b68bac83d9 on Jan 10, 2019
  22. MarcoFalke deleted the branch on Jan 10, 2019
  23. random-zebra referenced this in commit 44b5327e61 on May 28, 2021
  24. PastaPastaPasta referenced this in commit 50221d6ef8 on Jun 26, 2021
  25. PastaPastaPasta referenced this in commit 5983a8877d on Jun 28, 2021
  26. MarcoFalke locked this on Dec 16, 2021

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: 2026-04-17 06:15 UTC

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