Skip to content
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

DFUZZTEST_COMPATIBILITY_MODE=libfuzzer failing on linking #787

Open
rmarinbe opened this issue Nov 23, 2023 · 4 comments
Open

DFUZZTEST_COMPATIBILITY_MODE=libfuzzer failing on linking #787

rmarinbe opened this issue Nov 23, 2023 · 4 comments

Comments

@rmarinbe
Copy link

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?

@rmarinbe rmarinbe changed the title DFUZZTE ST_COMPATIBILITY_MODE=libfuzzer failing on linking DFUZZTEST_COMPATIBILITY_MODE=libfuzzer failing on linking Dec 4, 2023
@vrabaud
Copy link
Contributor

vrabaud commented Feb 1, 2024

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

@KanishAnand
Copy link
Contributor

KanishAnand commented May 30, 2024

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

@vrabaud
Copy link
Contributor

vrabaud commented Jun 19, 2024

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

@KanishAnand
Copy link
Contributor

Can confirm it works now, thanks!
@vrabaud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants