[bug] [mac/catalyst] isysroot and arch are passed to the compiler more than once.
See original GitHub issueEnvironment Details (include every applicable attribute)
- Operating System+version: macOS Catalina 10.15.7
- Compiler+version: Apple clang version 12.0.0 (clang-1200.0.32.29)
- Conan version: 1.33.1
- Python version: 3.9.1
Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)
[settings]
arch=x86_64
build_type=Release
compiler=apple-clang
compiler.cppstd=14
compiler.libcxx=libc++
compiler.version=12.0
os=Macos
os.subsystem=catalyst
os.version=13.0
os_build=Macos
[options]
[build_requires]
*: darwin-toolchain/1.0.8@theodelrieu/stable
[env]
Steps to reproduce (Include if Applicable)
conan install xmlsec/1.2.31@ --build --profile ./conan/profiles/mac_catalyst
Error
configure: error: C compiler cannot create executables See `config.log’ for more details
from config.log clang: error: invalid argument ‘-mmacosx-version-min=13.0’ not allowed with ‘-mios-version-min=13.0’ clang: warning: overriding ‘-mmacosx-version-min=13.0’ option with ‘–target=x86_64-apple-ios-macabi’ [-Woverriding-t-option]
Logs (Executed commands with output) (Include/Attach if Applicable)
Click to expand log
> conan install xmlsec/1.2.31@ --build --profile ./conan/profiles/mac_catalyst
Configuration:
[settings]
arch=x86_64
build_type=Release
compiler=apple-clang
compiler.cppstd=14
compiler.libcxx=libc++
compiler.version=12.0
os=Macos
os.subsystem=catalyst
os.version=13.0
os_build=Macos
[options]
[build_requires]
*: darwin-toolchain/1.0.8@theodelrieu/stable
[env]
libiconv/1.16: Forced build from source
openssl/1.1.1h: Forced build from source
zlib/1.2.11: Forced build from source
libxml2/2.9.10: Forced build from source
xmlsec/1.2.31: Forced build from source
darwin-toolchain/1.0.8@theodelrieu/stable: Forced build from source
m4/1.4.18: Forced build from source
pkgconf/1.7.3: Forced build from source
autoconf/2.69: Forced build from source
automake/1.16.3: Forced build from source
libtool/2.4.6: Forced build from source
ninja/1.10.2: Forced build from source
meson/0.55.1: Forced build from source
Installing package: xmlsec/1.2.31
Requirements
libiconv/1.16 from 'conan-center' - Cache
libxml2/2.9.10 from 'conan-center' - Cache
openssl/1.1.1h from 'conan-center' - Cache
xmlsec/1.2.31 from 'conan-center' - Cache
zlib/1.2.11 from 'conan-center' - Cache
Packages
libiconv/1.16:9b8914c5dde0a5d85eb5fa9e8e2db5965f955509 - Build
libxml2/2.9.10:4cd0941c1a7c1c6e38494702ac8cfa7f4c9bfaa5 - Build
openssl/1.1.1h:9b8914c5dde0a5d85eb5fa9e8e2db5965f955509 - Build
xmlsec/1.2.31:2472fcd3271c0ff199dfe1128281c4650907d7e6 - Build
zlib/1.2.11:9b8914c5dde0a5d85eb5fa9e8e2db5965f955509 - Build
Build requirements
autoconf/2.69 from 'conan-center' - Cache
automake/1.16.3 from 'conan-center' - Cache
darwin-toolchain/1.0.8@theodelrieu/stable from 'conan-center' - Cache
libtool/2.4.6 from 'conan-center' - Cache
m4/1.4.18 from 'conan-center' - Cache
meson/0.55.1 from 'conan-center' - Cache
ninja/1.10.2 from 'conan-center' - Cache
pkgconf/1.7.3 from 'conan-center' - Cache
Build requirements packages
autoconf/2.69:f8a6b75ec9d75dcc308d4d290799eaf3a2e48e38 - Build
automake/1.16.3:b7c259b5bf2af4a02852460156ead3f5aa376fe2 - Build
darwin-toolchain/1.0.8@theodelrieu/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Build
libtool/2.4.6:cf30fba004a254ec3ff06bda4b04eeb30bf553d3 - Build
m4/1.4.18:6fd12d091314cb3c1d90f0f687892b43cdd15cc1 - Build
meson/0.55.1:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Build
ninja/1.10.2:f7a29a049a0a0aea424db993e9fe23696d7fdda5 - Build
pkgconf/1.7.3:9b8914c5dde0a5d85eb5fa9e8e2db5965f955509 - Build
Installing (downloading, building) binaries...
darwin-toolchain/1.0.8@theodelrieu/stable: Copying sources to build folder
darwin-toolchain/1.0.8@theodelrieu/stable: Building your package in /Users/dmn-star/.conan/data/darwin-toolchain/1.0.8/theodelrieu/stable/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
darwin-toolchain/1.0.8@theodelrieu/stable: Generator txt created conanbuildinfo.txt
[HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not found
[HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK
darwin-toolchain/1.0.8@theodelrieu/stable: Calling build()
darwin-toolchain/1.0.8@theodelrieu/stable: WARN: This conanfile has no build step
darwin-toolchain/1.0.8@theodelrieu/stable: Package '5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9' built
darwin-toolchain/1.0.8@theodelrieu/stable: Build folder /Users/dmn-star/.conan/data/darwin-toolchain/1.0.8/theodelrieu/stable/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
darwin-toolchain/1.0.8@theodelrieu/stable: Generated conaninfo.txt
darwin-toolchain/1.0.8@theodelrieu/stable: Generated conanbuildinfo.txt
darwin-toolchain/1.0.8@theodelrieu/stable: Generating the package
darwin-toolchain/1.0.8@theodelrieu/stable: Package folder /Users/dmn-star/.conan/data/darwin-toolchain/1.0.8/theodelrieu/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
darwin-toolchain/1.0.8@theodelrieu/stable: Calling package()
[HOOK - conan-center.py] post_package(): ERROR: [PACKAGE LICENSE (KB-H012)] No 'licenses' folder found in package: /Users/dmn-star/.conan/data/darwin-toolchain/1.0.8/theodelrieu/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H012)
[HOOK - conan-center.py] post_package(): ERROR: [DEFAULT PACKAGE LAYOUT (KB-H013)] Unknown file 'darwin-toolchain.cmake' in the package (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H013)
[HOOK - conan-center.py] post_package(): [DEFAULT PACKAGE LAYOUT (KB-H013)] If you are trying to package a tool put all the contents under the 'bin' folder
[HOOK - conan-center.py] post_package(): ERROR: [MATCHING CONFIGURATION (KB-H014)] Empty package (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H014)
[HOOK - conan-center.py] post_package(): ERROR: [MATCHING CONFIGURATION (KB-H014)] Packaged artifacts does not match the settings used: os=Macos, compiler=apple-clang (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H014)
[HOOK - conan-center.py] post_package(): [SHARED ARTIFACTS (KB-H015)] OK
[HOOK - conan-center.py] post_package(): [PC-FILES (KB-H020)] OK
[HOOK - conan-center.py] post_package(): [CMAKE-MODULES-CONFIG-FILES (KB-H016)] OK
[HOOK - conan-center.py] post_package(): [PDB FILES NOT ALLOWED (KB-H017)] OK
[HOOK - conan-center.py] post_package(): [LIBTOOL FILES PRESENCE (KB-H018)] OK
[HOOK - conan-center.py] post_package(): [MS RUNTIME FILES (KB-H021)] OK
darwin-toolchain/1.0.8@theodelrieu/stable package(): Packaged 1 '.cmake' file: darwin-toolchain.cmake
darwin-toolchain/1.0.8@theodelrieu/stable: Package '5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9' created
darwin-toolchain/1.0.8@theodelrieu/stable: Created package revision 6135d81324b23d439706dbc08033fe3d
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
libiconv/1.16: Applying build-requirement: darwin-toolchain/1.0.8@theodelrieu/stable
libiconv/1.16: WARN: Build folder is dirty, removing it: /Users/dmn-star/.conan/data/libiconv/1.16/_/_/build/9b8914c5dde0a5d85eb5fa9e8e2db5965f955509
libiconv/1.16: Copying sources to build folder
libiconv/1.16: Building your package in /Users/dmn-star/.conan/data/libiconv/1.16/_/_/build/9b8914c5dde0a5d85eb5fa9e8e2db5965f955509
libiconv/1.16: Generator txt created conanbuildinfo.txt
[HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK. 'fPIC' option found and apparently well managed
[HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK
libiconv/1.16: Calling build()
libiconv/1.16: Calling:
> ./configure '--enable-static' '--disable-shared' '--prefix=/Users/dmn-star/.conan/data/libiconv/1.16/_/_/package/9b8914c5dde0a5d85eb5fa9e8e2db5965f955509' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share'
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
checking whether the C compiler works... no
configure: error: in `/Users/dmn-star/.conan/data/libiconv/1.16/_/_/build/9b8914c5dde0a5d85eb5fa9e8e2db5965f955509/source_subfolder':
configure: error: C compiler cannot create executables
See `config.log' for more details
libiconv/1.16:
libiconv/1.16: ERROR: Package '9b8914c5dde0a5d85eb5fa9e8e2db5965f955509' build failed
libiconv/1.16: WARN: Build folder /Users/dmn-star/.conan/data/libiconv/1.16/_/_/build/9b8914c5dde0a5d85eb5fa9e8e2db5965f955509
ERROR: libiconv/1.16: Error in build() method, line 120
autotools = self._configure_autotools()
while calling '_configure_autotools', line 110
self._autotools.configure(args=configure_args, host=host, build=build)
ConanException: Error 77 while executing ./configure '--enable-static' '--disable-shared' '--prefix=/Users/dmn-star/.conan/data/libiconv/1.16/_/_/package/9b8914c5dde0a5d85eb5fa9e8e2db5965f955509' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share'
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
how to compile/build mac catalyst lib using clang -arch
Following error message comes up when I try to create archive for macosx(mac catalyst),. I'm using mac 10.15 and xcode 11 beta 7....
Read more >isysroot does not take multiple architectures into account
When multiple architectures are set in CMAKE_OSX_ARCHITECTURES, e.g. "arm64;armv7;x86_64", the -isysroot flag can't be passed ...
Read more >Can't compile a C program on a Mac after upgrading to ...
In my makefiles (and most other makefiles I see), CFLAGS is a lot more complex than one single option — the -isysroot option...
Read more >The -march, -mabi, and -mtune arguments to RISC-V Compilers
-march=ISA selects the architecture to target. This controls which instructions and registers are available for the compiler to use. -mabi=ABI ...
Read more >3. GCC Command Options
Other options are passed on to one stage of processing. ... If you specify `-o' when compiling more than one input file, or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ve just built
xmlsec/1.2.31successfully. command line:profile
catalyst:profile
default:is it possible
*: darwin-toolchain/1.0.8@theodelrieu/stableadds flags? may you try without it?Without darwin-toolchain/1.0.8@theodelrieu/stable, xmlsec was built successfully. Thanks a lot, @SSE4!