From e4951edd3d3251626f859590c3c5802eb422d933 Mon Sep 17 00:00:00 2001 From: maflcko <6399679+maflcko@users.noreply.github.com> Date: Fri, 5 Jul 2024 18:58:22 +0200 Subject: [PATCH] bitcoin-core: Temporarily disable AFL, fix build (#12152) It's broken anyway, so might as well give https://github.com/google/oss-fuzz/issues/12142#issuecomment-2204027194 a try. --------- Co-authored-by: MarcoFalke <6399679+MarcoFalke@users.noreply.github.com> --- projects/bitcoin-core/build.sh | 8 ++++++++ projects/bitcoin-core/project.yaml | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/projects/bitcoin-core/build.sh b/projects/bitcoin-core/build.sh index e97d0fc50f09..a28ba792986d 100755 --- a/projects/bitcoin-core/build.sh +++ b/projects/bitcoin-core/build.sh @@ -15,6 +15,9 @@ # ################################################################################ +# Print date to embed it into build logs +date + if [ "$SANITIZER" != "introspector" ]; then # Temporarily skip this under introspector $SRC/build_cryptofuzz.sh @@ -26,6 +29,11 @@ cd $SRC/bitcoin-core/ # This will also force static builds if [ "$ARCHITECTURE" = "i386" ]; then export BUILD_TRIPLET="i686-pc-linux-gnu" + + # Temp workaround + mkdir /usr/local/lib/clang/18/lib/linux + ln -s /usr/local/lib/clang/18/lib/i386-unknown-linux-gnu/libclang_rt.asan_static.a /usr/local/lib/clang/18/lib/linux/libclang_rt.asan_static-i386.a + ln -s /usr/local/lib/clang/18/lib/i386-unknown-linux-gnu/libclang_rt.asan.a /usr/local/lib/clang/18/lib/linux/libclang_rt.asan-i386.a else export BUILD_TRIPLET="x86_64-pc-linux-gnu" fi diff --git a/projects/bitcoin-core/project.yaml b/projects/bitcoin-core/project.yaml index 5931a1ae2915..a20f6708e6fd 100644 --- a/projects/bitcoin-core/project.yaml +++ b/projects/bitcoin-core/project.yaml @@ -1,4 +1,4 @@ -homepage: "https://github.com/bitcoin/bitcoin" +homepage: "https://bitcoincore.org/" main_repo: 'https://github.com/bitcoin/bitcoin.git' language: c++ primary_contact: "macro.fuzzing.uxuga@aleeas.com" @@ -16,7 +16,7 @@ architectures: - x86_64 - i386 fuzzing_engines: +# - afl # temporarily disabled to debug https://github.com/google/oss-fuzz/issues/12142#issuecomment-2204027194 # - centipede # temporarily disabled due to spurious "Step #22 - "build-check-centipede-none-x86_64": OSError: [Errno 28] No space left on device" - libfuzzer - honggfuzz - - afl