-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
libelf: fix build failure using mingw #25276
Conversation
Relates to #25275 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
Please consider joda01#1 |
@AbrilRBS Was this what you meant with better way to provide a patch? When you say 'upstream', do you mean https://directory.fsf.org/wiki/Libelf? I'm curious if anyone else has encountered similar build issues when using MingW? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Conan v1 pipeline ❌Failure in build 9 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. Conan v2 pipeline ❌
The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping Failure in build 9 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. |
1c0146b
to
1efdb6c
Compare
Thanks @joda01 for reporting this. I've amended the PR description with a copy of the actual compilation error, for traceability and in case its useful to others. With your proposed fix of added the missing include, that broke the build with MSVC - but fixed it with gcc/mingw. Looking further into it, it shouldn't have been necessary to include stdlib.h - as that should've been handled by the config.h - which shouldve already been including it (via private.h). Turns out that there was a bug in the Conan Center specific CMakeLists.txt - I've fixed that and now it should work for both msvc and mingw. I've enabled a mingw build for this PR, results here: https://github.com/conan-io/conan-center-index/pull/25276/checks?check_run_id=34040477957 - as evidence this fixes your issue :) Thanks for contributing to Conan Center! |
* libelf: fix missing inclusion of config.h on windows, remove test_v1_package * Assume settings_build is defined --------- Co-authored-by: Luis Caro Campos <3535649+jcar87@users.noreply.github.com>
Fixed missing include which allows to use getenv
Summary
Changes to recipe: lib/0.8.13
Motivation
Fix build error with mingw under Windows
Details
Added patch which adds
#include <stdlib.h>