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

Can't build tests when ENABLE_LIBFUZZER is on #721

Open
isaacbrodsky opened this issue Oct 25, 2022 · 0 comments
Open

Can't build tests when ENABLE_LIBFUZZER is on #721

isaacbrodsky opened this issue Oct 25, 2022 · 0 comments
Assignees

Comments

@isaacbrodsky
Copy link
Collaborator

Error message reported looks like the following:

[  6%] Linking C executable bin/testH3Memory
/usr/bin/ld: CMakeFiles/testH3Memory.dir/src/apps/testapps/testH3Memory.c.o: in function `main':
.../h3/src/apps/testapps/testH3Memory.c:95: multiple definition of `main'; /usr/lib/llvm-14/lib/clang/14.0.0/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerMain.cpp.o):(.text.main+0x0): first defined here
/usr/bin/ld: /usr/lib/llvm-14/lib/clang/14.0.0/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerMain.cpp.o): in function `main':
(.text.main+0x12): undefined reference to `LLVMFuzzerTestOneInput'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@isaacbrodsky isaacbrodsky self-assigned this Oct 25, 2022
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

1 participant