google / fuzztest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DFUZZTEST_COMPATIBILITY_MODE=libfuzzer failing on linking

rmarinbe opened this issue · comments

I am using Ubuntu 22.04.2 LTS and the default clang version (14)

I am following exactly the documentation for the cmake for first_fuzz_test.cc file, but it fails in the linking:

../lib/libfuzztest_compatibility_mode.a(compatibility_mode.cc.o): in function fuzztest::internal::FuzzTestExternalEngineAdaptor::RunInFuzzingMode(int*, char***, fuzztest::internal::Configuration const&)': compatibility_mode.cc:(.text+0x113d): undefined reference to LLVMFuzzerRunDriver'
clang: error: linker command failed with exit code 1 (use -v to see invocation

Is this compatibility mode really working with clang 14?

Hi, can you please try at HEAD. I believe I fixed your bug with: a53a208

@vrabaud
I am still facing this same linker issue, tried with 6a370ae, couldn't try main because of #1192
Using clang 17

Hi, I believe I definitely fixed it with ce454ac, can you please try? Thx

Can confirm it works now, thanks!
@vrabaud