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

[elfutils] show config.log when ./configure fails #6963

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

evverx
Copy link
Contributor

@evverx evverx commented Dec 3, 2021

to make it easier to figure out why configure fails with something like

Step #3 - "compile-afl-address-x86_64": configure: error: in `/src/elfutils':
Step #3 - "compile-afl-address-x86_64": configure: error: C compiler cannot create executables
Step #3 - "compile-afl-address-x86_64": See `config.log' for more details

@evverx
Copy link
Contributor Author

evverx commented Dec 3, 2021

In that particular case it failed due to #6957 and that cryptic message didn't exactly help me :-) With this patch applied it shows

configure:3990: /src/aflplusplus/afl-clang-fast -Wno-error -O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=address -fsanitize-address-use-after-scope   -O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=address -fsanitize-address-use-after-scope  conftest.c  >&5
error: unable to load plugin '/src/aflplusplus/SanitizerCoveragePCGUARD.so': '/src/aflplusplus/SanitizerCoveragePCGUARD.so: cannot open shared object file: No such file or directory'
configure:3994: $? = 1

to make it easier to figure out why configure fails with something like
```
Step #3 - "compile-afl-address-x86_64": configure: error: in `/src/elfutils':
Step #3 - "compile-afl-address-x86_64": configure: error: C compiler cannot create executables
Step #3 - "compile-afl-address-x86_64": See `config.log' for more details
```
@jonathanmetzman jonathanmetzman merged commit 467ad6b into google:master Dec 7, 2021
@evverx evverx deleted the config-log branch December 7, 2021 21:06
MartinPetkov pushed a commit to MartinPetkov/oss-fuzz that referenced this pull request Aug 15, 2022
to make it easier to figure out why configure fails with something like
```
Step google#3 - "compile-afl-address-x86_64": configure: error: in `/src/elfutils':
Step google#3 - "compile-afl-address-x86_64": configure: error: C compiler cannot create executables
Step google#3 - "compile-afl-address-x86_64": See `config.log' for more details
```
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.

2 participants