-
Notifications
You must be signed in to change notification settings - Fork 36.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
depends: Avoid using the -ffile-prefix-map
compiler option
#31800
base: master
Are you sure you want to change the base?
Conversation
The `-ffile-prefix-map` compiler option implicitly enables `-fprofile-prefix-map` in GCC or `-fcoverage-prefix-map` in Clang, which can cause issues with coverage builds. This change ensures that only the options necessary for build reproducibility are applied.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31800. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
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. |
My Guix build:
UPD. Same hashes for |
Tested ACK 407062f. The oss-fuzz coverage build failure described in #31770 that I am able to reproduce locally does not happen on this branch. Steps to reproduce# setup
git clone --depth 1 https://github.com/google/oss-fuzz.git
git clone https://github.com/bitcoin/bitcoin oss-fuzz/bitcoin
git clone --depth 1 https://github.com/bitcoin-core/qa-assets oss-fuzz/bitcoin/assets
cd oss-fuzz
python infra/helper.py build_image bitcoin-core
# check out master and run fuzz coverage
cd bitcoin && git switch master && cd ..
python infra/helper.py build_fuzzers --sanitizer coverage bitcoin-core bitcoin/
python infra/helper.py coverage bitcoin-core --fuzz-target psbt # fails
# check out branch and run fuzz coverage
cd bitcoin && git fetch origin pull/31800/head:31800 && git checkout 407062f2ac93624f350e9e8a4f641c882a2aaf2f && cd ..
python infra/helper.py build_fuzzers --sanitizer coverage bitcoin-core bitcoin/
python infra/helper.py coverage bitcoin-core --fuzz-target psbt # succeeds |
This PR is similar to #31337 and applies analogous changes to all dependency packages.
The issue was recently noticed when
-ffile-prefix-map
was added to thelibevent
package, which is built in OSS-Fuzz.This PR replaces
-ffile-prefix-map
in all packages for consistency.Fixes #31770.