Skip to content

Ubuntu Jammy can't compile fuzz tests with libc++? #24289

@maflcko

Description

@maflcko

Steps to reproduce on a fresh Ubuntu install:

export DEBIAN_FRONTEND=noninteractive && apt update && apt install curl wget htop git vim ccache -y && git clone https://github.com/bitcoin/bitcoin.git bitcoin-core && cd bitcoin-core && apt install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3-zmq     libevent-dev libboost-system-dev libboost-test-dev  clang llvm libc++-dev libc++abi-dev  -y   &&  ./autogen.sh && ./configure CC=clang CXX='clang++ -stdlib=libc++'   --enable-fuzz --with-sanitizers=fuzzer && make -j$(nproc)

Ubuntu Focal: (Passes)
Ubuntu Jammy: (fails)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions