conan-center-index: autotools builds not working on apple silicon native
Package and Environment Details (include every applicable attribute)
- Operating System+version: macos 11.0.1
- Compiler+version: apple clang
- Conan version: conan 1.32.1
- Python version: Python 3.8.2
Conan profile (output of conan profile show default
or conan profile show <profile>
if custom profile is in use)
[settings]
os=Macos
os_build=Macos
arch=armv8
arch_build=armv8
compiler=apple-clang
compiler.version=12.0
compiler.libcxx=libc++
build_type=Release
[options]
[build_requires]
[env]
Steps to reproduce (Include if Applicable)
require any library built with autotools, like libjpeg, yasm, iconv…
Logs (Include/Attach if Applicable)
Click to expand log
yasm/1.3.0:
yasm/1.3.0: WARN: Package binary is corrupted, removing: 3eb32b976fb0626f3c40a8b87ace72156aa44204
yasm/1.3.0: WARN: Build folder is dirty, removing it: /Users/daniel/.conan/data/yasm/1.3.0/_/_/build/3eb32b976fb0626f3c40a8b87ace72156aa44204
yasm/1.3.0: ERROR: Package '3eb32b976fb0626f3c40a8b87ace72156aa44204' build failed
yasm/1.3.0: WARN: Build folder /Users/daniel/.conan/data/yasm/1.3.0/_/_/build/3eb32b976fb0626f3c40a8b87ace72156aa44204
ERROR: yasm/1.3.0: Error in build() method, line 67
autotools = self._configure_autotools()
while calling '_configure_autotools', line 60
self._autotools.configure(args=conf_args, configure_dir=self._source_subfolder)
ConanException: Error 77 while executing source_subfolder/configure '--enable-debug=no' '--disable-rpath' '--disable-nls' '--prefix=/Users/daniel/.conan/data/yasm/1.3.0/_/_/package/3eb32b976fb0626f3c40a8b87ace72156aa44204' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share' --build=x86_64-apple-darwin --host=aarch64-apple-darwin
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 25 (25 by maintainers)
I would say, to spot the problem you need to look into the whole configure part, not just one line
because there are packages building with autotools on M1 (have libcurl for example)
my guess: the else part from
if self.settings.compiler == "Visual Studio":
looks a little bit hardcoded to one architectureso I do not think that the general statement, that autotools builds not working, can be made