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

Fix installation on Clang-15 #37

Merged
merged 3 commits into from
Aug 8, 2022
Merged

Conversation

jonathanmetzman
Copy link
Contributor

@jonathanmetzman jonathanmetzman commented Aug 4, 2022

Fix finding of ASan and UBSan static libraries.

Fixes: #36

1. Fix finding of libFuzzer static library.
2. Fix finding of ASan and UBSan static libraries.
@@ -24,11 +24,11 @@ if [[ "$uname" == "Darwin" ]]; then
elif [[ "$uname" == "Linux" ]]; then
machine="$(uname -m)"
if [[ "$machine" == "x86_64" ]]; then
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I haven't fixed OSX because I have no way to test this or determine the triple correctly.

@@ -24,11 +24,11 @@ if [[ "$uname" == "Darwin" ]]; then
elif [[ "$uname" == "Linux" ]]; then
machine="$(uname -m)"
if [[ "$machine" == "x86_64" ]]; then
libpath="lib/linux/libclang_rt.fuzzer_no_main-x86_64.a"
libpath="lib/x86_64-unknown-linux-gnu/libclang_rt.fuzzer_no_main.a"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I frankly don't need the changes in this file for OSS-Fuzz, I can hack around this files problems with LIBFUZZER_LIB. I'm happy to undo my changes to this file and let you figure out how to handle the differences between clang versions.

@jonathanmetzman
Copy link
Contributor Author

CC @TheShiftedBit

@TheShiftedBit
Copy link
Contributor

This will break builds with earlier versions of LLVM. Per discussion offline, Jonathan will post a partial change that allows clang-15 to work with LIBFUZZER_LIB. We'll make it automatic at a later point.

@TheShiftedBit TheShiftedBit merged commit 0cfd3c7 into google:master Aug 8, 2022
@jonathanmetzman jonathanmetzman deleted the clang15 branch August 8, 2022 23:47
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

Successfully merging this pull request may close these issues.

Installation doesn't work with clang 15
2 participants