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

[bug] AutotoolsToolchain injects flags from build system on macOS #15429

Closed
kambala-decapitator opened this issue Jan 9, 2024 · 7 comments · Fixed by #15948
Closed

[bug] AutotoolsToolchain injects flags from build system on macOS #15429

kambala-decapitator opened this issue Jan 9, 2024 · 7 comments · Fixed by #15948
Assignees
Labels
Milestone

Comments

@kambala-decapitator
Copy link
Contributor

Environment details

  • Operating System+version: macOS 14.2.1
  • Compiler+version: Clang 14 from Android NDK r25c / Apple-Clang 14 from Xcode 14.2
  • Conan version: 1.62
  • Python version: 3.9.6

Steps to reproduce

  1. try cross-compiling to iOS or Android a recipe that uses Autotools like FFmpeg or OpenSSL
  2. observe "C compiler is broken" error

Logs

see conan-io/conan-center-index#20513

Such issue didn't exist in v1.59

@memsharded
Copy link
Member

Hi @kambala-decapitator

Thanks for your report.

The conan-io/conan-center-index#20513 link is a bit confusing, the user says they are using Conan 1.18, so this most likely doesn't apply.

It would be great to reproduce the issue with a simple recipe, now we have the conan new hello/0.1 -m=autotools_lib templates that could be used to validate things.

@kambala-decapitator
Copy link
Contributor Author

kambala-decapitator commented Jan 10, 2024

The conan-io/conan-center-index#20513 link is a bit confusing, the user says they are using Conan 1.18, so this most likely doesn't apply.

true, looks like the PR author made a typo or copied some old template. But you can check my comment there: conan-io/conan-center-index#20513 (comment)

It would be great to reproduce the issue with a simple recipe, now we have the conan new hello/0.1 -m=autotools_lib templates that could be used to validate things.

Thanks, tried that. On first attempt I received /bin/sh: autoreconf: command not found, then installed autoconf and automake packages from Homebrew. On the second attempt I could reproduce the problem reported in that CCI issue. Although in this case linker isn't called separately (no ld call) as it's invoked through clang, but you can still see incorrect flags (-isysroot and -arch) being passed to compiler.

$ conan new hello/0.1 -m=autotools_lib
WARN: Migration: Updating settings.yml
File saved: Makefile.am
File saved: conanfile.py
File saved: configure.ac
File saved: src/Makefile.am
File saved: src/hello.cpp
File saved: src/hello.h
File saved: test_package/Makefile.am
File saved: test_package/conanfile.py
File saved: test_package/configure.ac
File saved: test_package/main.cpp

$ conan create -pr:b default -pr:h=android-32 .
Conan 1 is on a deprecation path, please consider migrating to Conan 2
Exporting package recipe
hello/0.1 exports_sources: Copied 1 '.ac' file: configure.ac
hello/0.1 exports_sources: Copied 2 '.am' files: Makefile.am, Makefile.am
hello/0.1 exports_sources: Copied 1 '.cpp' file: hello.cpp
hello/0.1 exports_sources: Copied 1 '.h' file: hello.h
hello/0.1: A new conanfile.py version was exported
hello/0.1: Folder: /Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/export
hello/0.1: Exported revision: 111fd8e5c0089e4ce244fa9b4382792a
Configuration (profile_host):
[settings]
arch=armv7
build_type=Release
compiler=clang
compiler.libcxx=c++_shared
compiler.version=14
os=Android
os.api_level=19
[options]
[build_requires]
*: android-ndk/r25c
[env]

Configuration (profile_build):
[settings]
arch=armv8
arch_build=armv8
build_type=Release
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=14
os=Macos
os_build=Macos
[options]
[build_requires]
[env]

hello/0.1: Forced build from source
android-ndk/r25c: Not found in local cache, looking in remotes...
android-ndk/r25c: Trying with 'conancenter'...
Downloading conanmanifest.txt completed [0.23k]                                          
Downloading conanfile.py completed [19.35k]                                              
Downloading conan_export.tgz completed [0.45k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
android-ndk/r25c: Downloaded recipe revision 0
hello/0.1 (test package): Installing package
Requirements
    hello/0.1 from local cache - Cache
Packages
    hello/0.1:d090287d2964ca97d994bb14a0399627b0723325 - Build
Build requirements
    android-ndk/r25c from 'conancenter' - Cache
Build requirements packages
    android-ndk/r25c:06d313f2ce6737a31e5d7ccd4d516d2ac742276a - Download

Cross-build from 'Macos:armv8' to 'Android:armv7'
Installing (downloading, building) binaries...
android-ndk/r25c: Retrieving package 06d313f2ce6737a31e5d7ccd4d516d2ac742276a from remote 'conancenter' 
Downloading conanmanifest.txt completed [823.07k]                                        
Downloading conaninfo.txt completed [0.32k]                                              
Downloading conan_package.tgz completed [696012.25k]                                     
Decompressing conan_package.tgz completed [0.00k]                                        
android-ndk/r25c: Package installed 06d313f2ce6737a31e5d7ccd4d516d2ac742276a
android-ndk/r25c: Downloaded package revision 0
android-ndk/r25c: WARN: Could not find a valid CMAKE_SYSTEM_PROCESSOR variable, supported by CMake
android-ndk/r25c: WARN: Could not find a valid CMAKE_SYSTEM_PROCESSOR variable, supported by CMake
hello/0.1: Applying build-requirement: android-ndk/r25c
hello/0.1: Configuring sources in /Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/source/.
hello/0.1: Copying sources to build folder
hello/0.1: Building your package in /Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/build/d090287d2964ca97d994bb14a0399627b0723325
hello/0.1: Generator txt created conanbuildinfo.txt
hello/0.1: Calling generate()
hello/0.1: Aggregating env generators
hello/0.1: Calling build()
/bin/sh: autoreconf: command not found
hello/0.1: 
hello/0.1: ERROR: Package 'd090287d2964ca97d994bb14a0399627b0723325' build failed
hello/0.1: WARN: Build folder /Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/build/d090287d2964ca97d994bb14a0399627b0723325/build-release
ERROR: hello/0.1: Error in build() method, line 41
	autotools.autoreconf()
	ConanException: Error 127 while executing autoreconf '--force' '--install'

$ brew install autoconf automake
...

$ conan create -pr:b default -pr:h=android-32 .
Conan 1 is on a deprecation path, please consider migrating to Conan 2
Exporting package recipe
hello/0.1 exports_sources: Copied 1 '.ac' file: configure.ac
hello/0.1 exports_sources: Copied 2 '.am' files: Makefile.am, Makefile.am
hello/0.1 exports_sources: Copied 1 '.cpp' file: hello.cpp
hello/0.1 exports_sources: Copied 1 '.h' file: hello.h
hello/0.1: The stored package has not changed
hello/0.1: Exported revision: 111fd8e5c0089e4ce244fa9b4382792a
Configuration (profile_host):
[settings]
arch=armv7
build_type=Release
compiler=clang
compiler.libcxx=c++_shared
compiler.version=14
os=Android
os.api_level=19
[options]
[build_requires]
*: android-ndk/r25c
[env]

Configuration (profile_build):
[settings]
arch=armv8
arch_build=armv8
build_type=Release
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=14
os=Macos
os_build=Macos
[options]
[build_requires]
[env]

hello/0.1: Forced build from source
hello/0.1 (test package): Installing package
Requirements
    hello/0.1 from local cache - Cache
Packages
    hello/0.1:d090287d2964ca97d994bb14a0399627b0723325 - Build
Build requirements
    android-ndk/r25c from 'conancenter' - Cache
Build requirements packages
    android-ndk/r25c:06d313f2ce6737a31e5d7ccd4d516d2ac742276a - Cache

Cross-build from 'Macos:armv8' to 'Android:armv7'
Installing (downloading, building) binaries...
android-ndk/r25c: Already installed!
android-ndk/r25c: WARN: Could not find a valid CMAKE_SYSTEM_PROCESSOR variable, supported by CMake
android-ndk/r25c: WARN: Could not find a valid CMAKE_SYSTEM_PROCESSOR variable, supported by CMake
hello/0.1: Applying build-requirement: android-ndk/r25c
hello/0.1: WARN: Build folder is dirty, removing it: /Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/build/d090287d2964ca97d994bb14a0399627b0723325
hello/0.1: Copying sources to build folder
hello/0.1: Building your package in /Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/build/d090287d2964ca97d994bb14a0399627b0723325
hello/0.1: Generator txt created conanbuildinfo.txt
hello/0.1: Calling generate()
hello/0.1: Aggregating env generators
hello/0.1: Calling build()
glibtoolize: putting auxiliary files in '.'.
glibtoolize: copying file './ltmain.sh'
glibtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
glibtoolize: and rerunning glibtoolize and aclocal.
glibtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:5: installing './ar-lib'
configure.ac:5: installing './compile'
configure.ac:6: installing './config.guess'
configure.ac:6: installing './config.sub'
configure.ac:3: installing './install-sh'
configure.ac:3: installing './missing'
src/Makefile.am: installing './depcomp'
hello/0.1: Calling:
 > "/Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/build/d090287d2964ca97d994bb14a0399627b0723325/./configure" '--disable-shared' '--enable-static' '--prefix=/' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--host=arm-linux-androideabi' '--build=aarch64-apple-darwin' 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-androideabi-strip... /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-strip
checking for a race-free mkdir -p... mkdir -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 the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether the compiler supports GNU C++... yes
checking whether /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++ accepts -g... yes
checking for /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++ option to enable C++11 features... none needed
checking whether make supports the include directive... yes (GNU style)
checking dependency style of /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++... gcc3
checking for arm-linux-androideabi-gcc... /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang
checking whether the compiler supports GNU C... yes
checking whether /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang accepts -g... yes
checking for /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang option to enable C11 features... none needed
checking whether /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang understands -c and -o together... yes
checking dependency style of /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang... gcc3
checking for arm-linux-androideabi-ar... /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar
checking the archiver (/Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar) interface... ar
checking build system type... aarch64-apple-darwin
checking host system type... arm-unknown-linux-androideabi
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang... /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld
checking if the linker (/Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-nm
checking the name lister (/Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking how to convert aarch64-apple-darwin file names to arm-unknown-linux-androideabi format... func_convert_file_noop
checking how to convert aarch64-apple-darwin file names to toolchain format... func_convert_file_noop
checking for /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld option to reload object files... -r
checking for arm-linux-androideabi-file... no
checking for file... file
configure: WARNING: using cross tools not prefixed with host triplet
checking for arm-linux-androideabi-objdump... /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objdump
checking how to recognize dependent libraries... pass_all
checking for arm-linux-androideabi-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-linux-androideabi-ar... (cached) /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar
checking for archiver @FILE support... @
checking for arm-linux-androideabi-strip... (cached) /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-strip
checking for arm-linux-androideabi-ranlib... /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib
checking command to parse /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-nm output from /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for arm-linux-androideabi-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang supports -fno-rtti -fno-exceptions... yes
checking for /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang option to produce PIC... -fPIC -DPIC
checking if /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang PIC flag -fPIC -DPIC works... yes
checking if /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang static flag -static works... yes
checking if /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang supports -c -o file.o... yes
checking if /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang supports -c -o file.o... (cached) yes
checking whether the /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang linker (/Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... Android linker
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++ -E
checking for ld used by /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++... /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld
checking if the linker (/Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld) is GNU ld... yes
checking whether the /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++ linker (/Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld) supports shared libraries... yes
checking for /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++ option to produce PIC... -fPIC -DPIC
checking if /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++ PIC flag -fPIC -DPIC works... yes
checking if /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++ static flag -static works... no
checking if /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++ supports -c -o file.o... yes
checking if /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++ supports -c -o file.o... (cached) yes
checking whether the /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++ linker (/Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... Android linker
checking how to hardcode library paths into programs... immediate
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
Making all in src
/bin/sh ../libtool  --tag=CXX   --mode=compile /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++ -DPACKAGE_NAME=\"hello\" -DPACKAGE_TARNAME=\"hello\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"hello\ 0.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hello\" -DVERSION=\"0.1\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I/Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/build/d090287d2964ca97d994bb14a0399627b0723325/./src   -DNDEBUG  -fPIC --sysroot /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -O3 -isysroot /Applications/Xcode-15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -arch armv7 -MT hello.lo -MD -MP -MF .deps/hello.Tpo -c -o hello.lo /Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/build/d090287d2964ca97d994bb14a0399627b0723325/./src/hello.cpp
libtool: compile:  /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++ -DPACKAGE_NAME=\"hello\" -DPACKAGE_TARNAME=\"hello\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"hello 0.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hello\" -DVERSION=\"0.1\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I/Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/build/d090287d2964ca97d994bb14a0399627b0723325/./src -DNDEBUG -fPIC --sysroot /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -O3 -isysroot /Applications/Xcode-15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -arch armv7 -MT hello.lo -MD -MP -MF .deps/hello.Tpo -c /Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/build/d090287d2964ca97d994bb14a0399627b0723325/./src/hello.cpp -o hello.o
clang-14: warning: argument unused during compilation: '-arch armv7' [-Wunused-command-line-argument]
mv -f .deps/hello.Tpo .deps/hello.Plo
/bin/sh ../libtool  --tag=CXX   --mode=link /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++  -fPIC --sysroot /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -O3 -isysroot /Applications/Xcode-15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -arch armv7  --sysroot /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -isysroot /Applications/Xcode-15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -arch armv7 -o libhello.la -rpath //lib hello.lo  
libtool: link: /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar cr .libs/libhello.a  hello.o
libtool: link: /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib .libs/libhello.a
libtool: link: ( cd ".libs" && rm -f "libhello.la" && ln -s "../libhello.la" "libhello.la" )
make[1]: Nothing to be done for `all-am'.
hello/0.1: Package 'd090287d2964ca97d994bb14a0399627b0723325' built
hello/0.1: Build folder /Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/build/d090287d2964ca97d994bb14a0399627b0723325/build-release
hello/0.1: Generated conaninfo.txt
hello/0.1: Generated conanbuildinfo.txt
hello/0.1: Generating the package
hello/0.1: Package folder /Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/package/d090287d2964ca97d994bb14a0399627b0723325
hello/0.1: Calling package()
Making install in src
 mkdir -p '/Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/package/d090287d2964ca97d994bb14a0399627b0723325//lib'
 mkdir -p '/Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/package/d090287d2964ca97d994bb14a0399627b0723325//include'
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libhello.la '/Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/package/d090287d2964ca97d994bb14a0399627b0723325//lib'
 /usr/bin/install -c -m 644 /Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/build/d090287d2964ca97d994bb14a0399627b0723325/./src/hello.h '/Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/package/d090287d2964ca97d994bb14a0399627b0723325//include'
libtool: install: /usr/bin/install -c .libs/libhello.lai /Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/package/d090287d2964ca97d994bb14a0399627b0723325//lib/libhello.la
libtool: install: /usr/bin/install -c .libs/libhello.a /Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/package/d090287d2964ca97d994bb14a0399627b0723325//lib/libhello.a
libtool: install: chmod 644 /Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/package/d090287d2964ca97d994bb14a0399627b0723325//lib/libhello.a
libtool: install: /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib /Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/package/d090287d2964ca97d994bb14a0399627b0723325//lib/libhello.a
libtool: warning: remember to run 'libtool --finish //lib'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
hello/0.1 package(): Packaged 1 '.h' file: hello.h
hello/0.1 package(): Packaged 1 '.la' file: libhello.la
hello/0.1 package(): Packaged 1 '.a' file: libhello.a
hello/0.1: Package 'd090287d2964ca97d994bb14a0399627b0723325' created
hello/0.1: Created package revision 55c46e92d384468d680d4a9f6987dc34
hello/0.1 (test package): Applying build-requirement: android-ndk/r25c
hello/0.1 (test package): Generator txt created conanbuildinfo.txt
hello/0.1 (test package): Generator 'AutotoolsDeps' calling 'generate()'
hello/0.1 (test package): Generator 'VirtualRunEnv' calling 'generate()'
hello/0.1 (test package): Generator 'VirtualBuildEnv' calling 'generate()'
hello/0.1 (test package): Generator 'AutotoolsToolchain' calling 'generate()'
hello/0.1 (test package): Aggregating env generators
hello/0.1 (test package): Generated conaninfo.txt
hello/0.1 (test package): Generated graphinfo
Using lockfile: '/Users/andrey.filipenkov/dev/other/conan-test-autotools/test_package/build-release/conan/conan.lock'
Using cached profile from lockfile
hello/0.1 (test package): Calling build()
configure.ac:6: installing './ar-lib'
configure.ac:6: installing './compile'
configure.ac:3: installing './install-sh'
configure.ac:3: installing './missing'
Makefile.am: installing './depcomp'
hello/0.1 (test package): Calling:
 > "/Users/andrey.filipenkov/dev/other/conan-test-autotools/test_package/./configure" '--prefix=/' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--host=arm-linux-androideabi' '--build=aarch64-apple-darwin' 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-androideabi-strip... /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-strip
checking for a race-free mkdir -p... mkdir -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 the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether the compiler supports GNU C++... yes
checking whether /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++ accepts -g... yes
checking for /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++ option to enable C++11 features... none needed
checking whether make supports the include directive... yes (GNU style)
checking dependency style of /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++... gcc3
checking for arm-linux-androideabi-ranlib... /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib
checking for arm-linux-androideabi-gcc... /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang
checking whether the compiler supports GNU C... yes
checking whether /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang accepts -g... yes
checking for /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang option to enable C11 features... none needed
checking whether /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang understands -c and -o together... yes
checking dependency style of /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang... gcc3
checking for arm-linux-androideabi-ar... /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar
checking the archiver (/Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar) interface... ar
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
/Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++ -DPACKAGE_NAME=\"main\" -DPACKAGE_TARNAME=\"main\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"main\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"main\" -DVERSION=\"1.0\" -I. -I/Users/andrey.filipenkov/dev/other/conan-test-autotools/test_package/.   -I/Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/package/d090287d2964ca97d994bb14a0399627b0723325/include -DNDEBUG  --sysroot /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -O3 -isysroot /Applications/Xcode-15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -arch armv7 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o /Users/andrey.filipenkov/dev/other/conan-test-autotools/test_package/./main.cpp
clang-14: warning: argument unused during compilation: '-arch armv7' [-Wunused-command-line-argument]
mv -f .deps/main.Tpo .deps/main.Po
/Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi19-clang++  --sysroot /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -O3 -isysroot /Applications/Xcode-15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -arch armv7  -L/Users/andrey.filipenkov/.conan/data/hello/0.1/_/_/package/d090287d2964ca97d994bb14a0399627b0723325/lib --sysroot /Users/andrey.filipenkov/.conan/data/android-ndk/r25c/_/_/package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -isysroot /Applications/Xcode-15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -arch armv7 -o main main.o  -lhello
clang-14: warning: argument unused during compilation: '-arch armv7' [-Wunused-command-line-argument]
clang-14: warning: argument unused during compilation: '-arch armv7' [-Wunused-command-line-argument]
hello/0.1 (test package): Running test()

@franramirez688 franramirez688 self-assigned this Jan 10, 2024
@memsharded memsharded added this to the 2.1 milestone Jan 10, 2024
@kambala-decapitator
Copy link
Contributor Author

memsharded added this to the 2.1 milestone

sorry, I don't know about release management in Conan, but will this also be backported to 1.x? As my report is about 1.x, I haven't checked how it works in 2.x.

@memsharded
Copy link
Member

We will discuss about the backport later, the priority would be understanding if Conan 2.0 is affected by this, and fix it asap if that is the case. From there, we can backport to 1.X if necessary, depending on the bug type, if regression (it looks like it, but we will see), etc, but that will be lower priority.

@franramirez688
Copy link
Contributor

Hi @kambala-decapitator,

Thanks a lot for reporting the issue.

I have been figuring out this one, and, IMO, I think it's not a bug but a problem with the recipe itself.
I just tried the original issue: conan-io/conan-center-index#20513 and it happened to me for several versions (from Conan 1.57.0 to 2.x) so it does not seem a regression bug.

Apart from that, I was running locally the recipe, and I made some changes (please, check the PR conan-io/conan-center-index#22263) that let me cross-compile successfully to iOS.
Sorry but I did not try to make the same for Android, could you try it? I don't even know if the CI is going to pass for all the platforms but it's working on my local at least.

On the second attempt I could reproduce the problem reported in that CCI issue. Although in this case linker isn't called separately (no ld call) as it's invoked through clang, but you can still see incorrect flags (-isysroot and -arch) being passed to compiler.

I don't get what you mean. The compiler has those parameters as valid ones and it's not complaining at all, so why do you say that they are invalid?

@kambala-decapitator
Copy link
Contributor Author

Hi @franramirez688

I have been figuring out this one, and, IMO, I think it's not a bug but a problem with the recipe itself.
I just tried the original issue: conan-io/conan-center-index#20513 and it happened to me for several versions (from Conan 1.57.0 to 2.x) so it does not seem a regression bug.

well, my own comment in that issue has nothing to do with libvpx as I don't build it, I was talking about FFmpeg. But let's have a closer look at there error posted by the issue author:

Unable to invoke compiler: gcc -m64 -fPIC -O3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -arch x86_64 -mios-simulator-version-min=13.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -mmacosx-version-min=10.7 -m64 -arch x86_64

I hope you agree that it's very strange that when you try to build for iOS simulator, path to macOS SDK (as well as macOS deployment target flag) is also passed in compile flags. Also, it's passed after simulator SDK, and afaik the later parameter has higher priority, which means that here it actually tries to build for macOS, not for iOS simulator.

Apart from that, I was running locally the recipe, and I made some changes (please, check the PR conan-io/conan-center-index#22263) that let me cross-compile successfully to iOS.
Sorry but I did not try to make the same for Android, could you try it?

I will try to see if your PR fixes android build as well (will also test original recipe).

I don't get what you mean. The compiler has those parameters as valid ones and it's not complaining at all, so why do you say that they are invalid?

Sorry if my initial report was unclear. Let me fix that.

Now let's have a look at my attempt above to build the test recipe for android, namely conan new hello/0.1 -m=autotools_lib. Will quote the compile command and leave out unnecessary flag:

.../armv7a-linux-androideabi19-clang++ --sysroot /Users/andrey.filipenkov/.conan/data/android-ndk/r25c///package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -O3 -isysroot /Applications/Xcode-15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -arch armv7 /Users/andrey.filipenkov/dev/other/conan-test-autotools/test_package/./main.cpp

with the --sysroot option the android NDK's sysroot is passed (which is required), but then we can see -isysroot (this is apple-clang's way to pass sysroot btw) pointing to macOS SDK as well as -arch flag passing Apple-style architecture (armv7 would target 32-bit iOS devices, and I'm building for 32-bit android). Doesn't that sound strange that flag from build system is passed to the host?

Fortunately, in the test recipe linker is invoked along the compiler instead of direct ld invocation, that's why we don't see any errors and only warnings about "argument unused during compilation: '-arch armv7'". But now if you check my comment in that FFmpeg/libvpx issue, you'll also see that the same incorrect flags from build system are passed to compiler as well as linker, and linker actually throws errors (also removed unnecessary flags from the invocation):

.../ld --sysroot /Users/kambala/dev/vcmi/conan-deps-android32-25/.conan/data/android-ndk/r25c///package/06d313f2ce6737a31e5d7ccd4d516d2ac742276a/bin/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch armv7
ld: error: unknown argument '-isysroot', did you mean '--sysroot'
ld: error: unknown argument '-arch'
ld: error: unknown argument '-isysroot', did you mean '--sysroot'
ld: error: unknown argument '-arch'
ld: error: cannot open /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk: Is a directory

I hope now it's clear what I mean by invalid flags.

@memsharded
Copy link
Member

Closed in #15948 for next Conan 1.64

(it was already fixed and released in Conan 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants