build: `CPPFLAGS` usage in OSS-Fuzz #29385

issue hebasto opened this issue on February 5, 2024
  1. hebasto commented at 9:58 AM on February 5, 2024: member

    In OSS-Fuzz, dependencies are built with DEBUG=1, which implies usage of the additional preprocessor definitions:

    $ make -C depends print-host_debug_CPPFLAGS HOST=x86_64-pc-linux-gnu DEBUG=1
    ...
    host_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_LIBCPP_ENABLE_DEBUG_MODE=1
    

    However, explicit setting CPPFLAGS breaks this assumption:

    $ make -C depends print-host_debug_CPPFLAGS HOST=x86_64-pc-linux-gnu DEBUG=1 CPPFLAGS="-DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE"
    ...
    host_debug_CPPFLAGS=-DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE
    

    Is this expected/desired behaviour?

  2. maflcko commented at 10:08 AM on February 5, 2024: member

    Same in ci/test/00_setup_env_native_fuzz_with_msan.sh?

  3. maflcko added the label Build system on Feb 5, 2024
  4. fanquake commented at 8:51 AM on April 10, 2024: member
  5. fanquake closed this on May 31, 2024

  6. bitcoin locked this on May 31, 2025

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-24 21:13 UTC

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