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
[package] libelf/0.8.13: can't compile with apple-clang 12 #2795
Comments
The script cannot determine the size of the basic types.
It tries to compile+run the following source:
with the following command:
Please check these environment variables + the |
Here is the config.log file: Click to expand log
|
Can you try applying the following patch? --- a/recipes/libelf/all/conanfile.py
+++ b/recipes/libelf/all/conanfile.py
@@ -40,6 +40,9 @@ class LibelfConan(ConanFile):
if self.options.shared:
raise ConanInvalidConfiguration("libelf can not be built as shared library on non linux platforms")
+ def build_requirements(self):
+ self.build_requires("autoconf/2.69")
+
def source(self):
tools.get(**self.conan_data["sources"][self.version])
extracted_dir = self.name + "-" + self.version
@@ -69,6 +72,8 @@ class LibelfConan(ConanFile):
return self._autotools
def _build_autotools(self):
+ with tools.chdir(self._source_subfolder):
+ self.run("autoreconf -fiv", run_environment=True)
autotools = self._configure_autotools()
autotools.make() |
The patch solved the problem! Many thanks! |
|
Package and Environment Details (include every applicable attribute)
Conan profile
Steps to reproduce (Include if Applicable)
conan install libelf/0.8.13@ --build missing
Logs (Include/Attach if Applicable)
Click to expand log
The text was updated successfully, but these errors were encountered: