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

[package] boost/1.75.0: Apple-clang cannot cross-compile for arm64 on x86_64 hosts #4802

Closed
dgaribaldi opened this issue Mar 6, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@dgaribaldi
Copy link

In order to build boost for Apple silicon, I'd like to cross-compile boost libraries on my x86_64 dev machine so that I can eventually build other software with both arm64 and x86_64 versions of the library using Conan's cmake_multi generator.

While attempting to cross-compile for arm64, I ran into three issues right off the bat, and I suspect there are more lurking farther beyond.

First off, b2 needs to be told to use a 64-bit address model when the arm64 arch is specified. This check is missing.

Secondly, the to_apple_arch() conversion from the conan-package-tools library used here returns None, which causes b2 to pass "-arch None" to the compiler which then promptly fails. This should be updated with either a special case for arm64, or conan-package-tools needs to be updated to correctly handle this input (which just should just return "arm64").

Thirdly, the test_package conanfile.py needs to propagate the settings.arch value to the CMAKE_OSX_ARCHITECTURES value definition. Right now, it's being set to the host architecture (x86_64) by default.

There seem to be some other issues actually getting the tests to run, and I haven't tried to get boost::locale library to build properly yet, but that will likely have issues building as well. I am happy to create a dev branch with the fixes I indicated, but I still don't know where to go from here in debugging the tests. Let me know if there's any more information I can provide as well. Thanks!

Environment Details

  • Package Name/Version: boost/1.75.0
  • Operating System: MacOS
  • Operation System Version: Big Sur 11.0.1
  • Compiler+version: apple-clang 12.0
  • Docker image: None
  • Conan version: conan 1.34.0
  • Python version: python 3.9.0
  • Conan Package Tools Version: 0.35.0

Conan profile

[settings]
os=Macos
os_build=Macos
build_type=Debug
compiler=apple-clang
compiler.version=12.0
compiler.libcxx=libc++
[options]
[build_requires]
[env]
CC=/usr/bin/clang
CXX=/usr/bin/clang++

Steps to reproduce

  1. Check out the conan-package-tools repo from Github.
  2. cd to recipes/boost/all, and create a package using "conan create . boost/1.75.0@mytestrepo/stable -s arch=arm64"

Logs

Click to expand log
Exporting package recipe
boost/1.75.0@testuser/stable exports: File 'conandata.yml' found. Exporting it...
boost/1.75.0@testuser/stable exports: Copied 1 '.yml' file: conandata.yml
boost/1.75.0@testuser/stable: Calling export()
boost/1.75.0@testuser/stable export() method: Copied 1 '.yml' file: dependencies-1.75.0.yml
boost/1.75.0@testuser/stable exports_sources: Copied 15 '.patch' files
boost/1.75.0@testuser/stable: A new conanfile.py version was exported
boost/1.75.0@testuser/stable: Folder: /Users/me/.conan/data/boost/1.75.0/testuser/stable/export
boost/1.75.0@testuser/stable: Exported revision: de41c3548b59137b2b78ab31da901393
Configuration:
[settings]
arch=arm64
build_type=Debug
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=12.0
os=Macos
os_build=Macos
[options]
[build_requires]
[env]
CC=/usr/bin/clang
CXX=/usr/bin/clang++
boost/1.75.0@testuser/stable: Forced build from source
boost/1.75.0@testuser/stable (test package): Installing package
Requirements
    boost/1.75.0@testuser/stable from local cache - Cache
    bzip2/1.0.8 from 'conan-center' - Cache
    libiconv/1.16 from 'conan-center' - Cache
    zlib/1.2.11 from 'conan-center' - Cache
Packages
    boost/1.75.0@testuser/stable:14991188001b186509c01c1ca5af0f71026a0910 - Build
    bzip2/1.0.8:789bae5c90322a0641ecc799a49a645aaae101c1 - Cache
    libiconv/1.16:ffa0ffd976b776b96d407656bc10b1545bd40be8 - Cache
    zlib/1.2.11:ffa0ffd976b776b96d407656bc10b1545bd40be8 - Cache
Build requirements
    b2/4.2.0 from 'conan-center' - Cache
Build requirements packages
    b2/4.2.0:bf0312aa484361d851de6aa7609f35f7ce1d002c - Cache

Cross-build from 'Macos:x86_64' to 'Macos:arm64'
Installing (downloading, building) binaries...
b2/4.2.0: Already installed!
bzip2/1.0.8: Already installed!
bzip2/1.0.8: Appending PATH environment variable: /Users/me/.conan/data/bzip2/1.0.8/_/_/package/789bae5c90322a0641ecc799a49a645aaae101c1/bin
libiconv/1.16: Already installed!
libiconv/1.16: Appending PATH environment var: /Users/me/.conan/data/libiconv/1.16/_/_/package/ffa0ffd976b776b96d407656bc10b1545bd40be8/bin
zlib/1.2.11: Already installed!
boost/1.75.0@testuser/stable: Applying build-requirement: b2/4.2.0
boost/1.75.0@testuser/stable: Configuring sources in /Users/me/.conan/data/boost/1.75.0/testuser/stable/source
Downloading boost_1_75_0.tar.bz2 completed [118993.73k]                                  

boost/1.75.0@testuser/stable: Building your package in /Users/me/.conan/data/boost/1.75.0/testuser/stable/build/14991188001b186509c01c1ca5af0f71026a0910
boost/1.75.0@testuser/stable: Generator txt created conanbuildinfo.txt
boost/1.75.0@testuser/stable: Calling build()
boost/1.75.0@testuser/stable: WARN: Patching user-config.jam
boost/1.75.0@testuser/stable: WARN: 
using zlib : 1.2.11 : <include>"/Users/me/.conan/data/zlib/1.2.11/_/_/package/ffa0ffd976b776b96d407656bc10b1545bd40be8/include" <search>"/Users/me/.conan/data/zlib/1.2.11/_/_/package/ffa0ffd976b776b96d407656bc10b1545bd40be8/lib" <name>z ;
using bzip2 : 1.0.8 : <include>"/Users/me/.conan/data/bzip2/1.0.8/_/_/package/789bae5c90322a0641ecc799a49a645aaae101c1/include" <search>"/Users/me/.conan/data/bzip2/1.0.8/_/_/package/789bae5c90322a0641ecc799a49a645aaae101c1/lib" <name>bz2 ;
using "clang-darwin" :  :  /usr/bin/clang++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -arch None : 
<archiver>"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar" <ranlib>"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib"  ;
boost/1.75.0@testuser/stable: Cross building, detecting compiler...
boost/1.75.0@testuser/stable: Cross building flags: []
boost/1.75.0@testuser/stable: WARN: b2 -q target-os=darwin architecture=arm address-model=32 binary-format=mach-o abi=aapcs --layout=system --user-config=/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.iconv=on boost.locale.icu=off --disable-icu threading=multi visibility=hidden link=static variant=debug --with-atomic --with-chrono --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --with-filesystem --with-graph --with-iostreams --with-locale --with-log --with-math --with-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-wave toolset=clang-darwin pch=on -sICONV_PATH=/Users/me/.conan/data/libiconv/1.16/_/_/package/ffa0ffd976b776b96d407656bc10b1545bd40be8 linkflags="-stdlib=libc++" cxxflags="-fPIC -stdlib=libc++" install --prefix=/Users/me/.conan/data/boost/1.75.0/testuser/stable/package/14991188001b186509c01c1ca5af0f71026a0910 -j2 --abbreviate-paths -d0 --debug-configuration --build-dir="/Users/me/.conan/data/boost/1.75.0/testuser/stable/build/14991188001b186509c01c1ca5af0f71026a0910"
notice: found boost-build.jam at /Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/boost-build.jam
notice: loading B2 from /Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src
warning: mismatched versions of B2 engine and core
warning: B2 engine (b2) is 4.2.0
warning: B2 core (at /Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src) is 4.3-git
notice: Searching '/etc' '/Users/me' '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src' '/Users/me/.conan/data/b2/4.2.0/_/_/package/bf0312aa484361d851de6aa7609f35f7ce1d002c/bin/b2_src/src/kernel' '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src/kernel' '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src/util' '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src/build' '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src/tools' '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src/contrib' '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src/.' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in '/etc' '/Users/me' '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src' '/Users/me/.conan/data/b2/4.2.0/_/_/package/bf0312aa484361d851de6aa7609f35f7ce1d002c/bin/b2_src/src/kernel' '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src/kernel' '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src/util' '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src/build' '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src/tools' '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src/contrib' '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/src/.'.
notice: Loading explicitly specified user configuration file:
    /Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/user-config.jam
notice: Searching '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build' for user-config configuration file 'user-config.jam'.
notice: Loading user-config configuration file 'user-config.jam' from '/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build'.
notice: [zlib] Using pre-installed library
notice: [zlib] Condition
notice: [bzip2] Using pre-installed library
notice: [bzip2] Condition
notice: will use '/usr/bin/clang++' '-isysroot' '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk' '-arch' 'None' for clang-darwin, condition <toolset>clang-12.0
notice: [zlib] zlib is already configured
notice: [bzip2] bzip is already configured
notice: iostreams: not using lzma compression 
notice: iostreams: not using zstd compression 
notice: [python-cfg] Configuring python...
notice: [python-cfg] Checking interpreter command "python"...
notice: [python-cfg] running command 'python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/3.4/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/3.4/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/3.3/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/3.3/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/3.2/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/3.2/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/3.1/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/3.1/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/3.0/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/3.0/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/2.9/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/2.9/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/2.8/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/2.8/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/2.6/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/2.6/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/2.4/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/2.4/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/2.3/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/2.3/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/2.2/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/2.2/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/2.1/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/2.1/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/2.0/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/2.0/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/1.9/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/1.9/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/1.8/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/1.8/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/1.7/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/1.7/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/1.6/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/1.6/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/System/Library/Frameworks/Python.framework/Versions/1.5/bin/python"...
notice: [python-cfg] running command '/System/Library/Frameworks/Python.framework/Versions/1.5/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/3.4/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/3.4/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/3.3/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/3.3/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/3.2/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/3.2/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/3.1/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/3.1/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/3.0/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/3.0/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.9/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.9/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.8/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.8/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.7/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.7/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.6/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.6/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.5/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.5/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.4/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.4/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.3/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.3/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.2/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.2/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.1/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.1/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.0/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.0/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/1.9/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/1.9/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/1.8/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/1.8/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/1.7/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/1.7/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/1.6/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/1.6/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/1.5/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/1.5/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nbase_prefix=%s\nbase_exec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,base_prefix,base_exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Python headers and libraries not found.
Performing configuration checks

    - default address-model    : none
    - default architecture     : none
    - C++11 mutex              : no
    - lockfree boost::atomic_flag : no
    - has stat::st_mtim        : no
    - has stat::st_mtimensec   : no
    - has stat::st_mtimespec   : no
    - has stat::st_birthtim    : no
    - has stat::st_birthtimensec : no
    - has stat::st_birthtimespec : no
    - has statx                : no
    - has statx syscall        : no
    - has_icu builds           : no
    - zlib                     : no
    - bzip2                    : no
    - iconv (libc)             : no
    - iconv (separate)         : no
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
    - native atomic int32 supported : no
    - native syslog supported  : no
    - pthread supports robust mutexes : no
    - gcc visibility           : no
    - long double support      : no
    - libbacktrace builds      : no
    - addr2line builds         : no
    - WinDbg builds            : no
    - WinDbgCached builds      : no
    - BOOST_COMP_GNUC >= 4.3.0 : no

Component configuration:

    - atomic                   : building
    - chrono                   : building
    - container                : building
    - context                  : building
    - contract                 : building
    - coroutine                : building
    - date_time                : building
    - exception                : building
    - fiber                    : not building
    - filesystem               : building
    - graph                    : building
    - graph_parallel           : not building
    - headers                  : not building
    - iostreams                : building
    - json                     : not building
    - locale                   : building
    - log                      : building
    - math                     : building
    - mpi                      : not building
    - nowide                   : not building
    - program_options          : building
    - python                   : not building
    - random                   : building
    - regex                    : building
    - serialization            : building
    - stacktrace               : building
    - system                   : building
    - test                     : building
    - thread                   : building
    - timer                    : building
    - type_erasure             : building
    - wave                     : building

clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
clang: error: invalid arch name '-arch None'
...failed updating 29 targets...
boost/1.75.0@testuser/stable: 
boost/1.75.0@testuser/stable: ERROR: Package '14991188001b186509c01c1ca5af0f71026a0910' build failed
boost/1.75.0@testuser/stable: WARN: Build folder /Users/me/.conan/data/boost/1.75.0/testuser/stable/build/14991188001b186509c01c1ca5af0f71026a0910
ERROR: boost/1.75.0@testuser/stable: Error in build() method, line 671
	self.run(full_command, run_environment=True)
	ConanException: Error 1 while executing DYLD_LIBRARY_PATH="/Users/me/.conan/data/zlib/1.2.11/_/_/package/ffa0ffd976b776b96d407656bc10b1545bd40be8/lib:/Users/me/.conan/data/bzip2/1.0.8/_/_/package/789bae5c90322a0641ecc799a49a645aaae101c1/lib:/Users/me/.conan/data/libiconv/1.16/_/_/package/ffa0ffd976b776b96d407656bc10b1545bd40be8/lib" DYLD_FRAMEWORK_PATH="" b2 -q target-os=darwin architecture=arm address-model=32 binary-format=mach-o abi=aapcs --layout=system --user-config=/Users/me/.conan/data/boost/1.75.0/testuser/stable/source/source_subfolder/tools/build/user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.iconv=on boost.locale.icu=off --disable-icu threading=multi visibility=hidden link=static variant=debug --with-atomic --with-chrono --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --with-filesystem --with-graph --with-iostreams --with-locale --with-log --with-math --with-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-wave toolset=clang-darwin pch=on -sICONV_PATH=/Users/me/.conan/data/libiconv/1.16/_/_/package/ffa0ffd976b776b96d407656bc10b1545bd40be8 linkflags="-stdlib=libc++" cxxflags="-fPIC -stdlib=libc++" install --prefix=/Users/me/.conan/data/boost/1.75.0/testuser/stable/package/14991188001b186509c01c1ca5af0f71026a0910 -j2 --abbreviate-paths -d0 --debug-configuration --build-dir="/Users/me/.conan/data/boost/1.75.0/testuser/stable/build/14991188001b186509c01c1ca5af0f71026a0910"
@dgaribaldi dgaribaldi added the bug Something isn't working label Mar 6, 2021
@prince-chrismc
Copy link
Contributor

please open a PR with any fixes!

The test not running seems normal at first glance... they are skipped when cross building

if tools.cross_building(self.settings):
return

@SSE4
Copy link
Contributor

SSE4 commented Sep 26, 2021

you better use -s arch=armv8 instead of arm64. right now, boost cross-compiles successfully from x86_64 to arm64 (M1), and it's being tested on CI.

@SSE4
Copy link
Contributor

SSE4 commented Sep 26, 2021

but I agree we should prevent this error message:

clang: error: invalid arch name '-arch None'

I'll add a necessary sanity check, so it won't try to pass None for unrecognized architectures.

@perseoGI
Copy link
Contributor

Hi there,
I was reviewing old issues and I have come across this one.
Is this issue still active?
I don't have actually an x86_64 environment to test this out!

Thank you in advance :)

@dgaribaldi
Copy link
Author

Hello! I'm afraid I can't tell you whether or not this is still an active issue, as I unfortunately no longer have the x86-based Apple machine that I used to cross-compile and reproduce these errors in the first place. I'll go ahead and close it accordingly; thank you for following up!

@dgaribaldi dgaribaldi closed this as not planned Won't fix, can't repro, duplicate, stale Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants