conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
966 stars 1.78k forks source link

[package] boost/1.78.0: fail to cross build #15163

Open lproj opened 1 year ago

lproj commented 1 year ago

Description

Hi, I have an application based on CMake which I am trying to cross-compile to ARM. CMake is integrated with Conan via cmake-conan. The call to the conan_cmake_install() function calls the conan client in turn (which I also retried from command line directly):

/usr/local/bin/conan install boost/1.78.0@ --update --remote conancenter --build missing --settings arch=armv7hf --settings build_type=Debug --settings compiler=gcc --settings compiler.version=11 --settings compiler.libcxx=libstdc++11 --settings compiler.cppstd=20 -pr:b=default

$CC, $CXX and other environment variables have been properly set and exported via a shell script.

The problem is that the boost configure step keeps detecting the x86/x64 as host, from the output (please see the detailed logs at the bottom).

However, I remember I had no problems in the past. It works if I specify an older recipe revision from command line:

CONAN_REVISIONS_ENABLED=1 /usr/local/bin/conan install boost/1.78.0@#662597c4e834b1f6e67b4ee6d7d634bd --update --remote conancenter --build missing --settings arch=armv7hf --settings build_type=Debug --settings compiler=gcc --settings compiler.version=11 --settings compiler.libcxx=libstdc++11 --settings compiler.cppstd=20 -pr:b=default

...
    - default address-model    : 32-bit [1]
    - default architecture     : arm [1]
...

...

Package and Environment Details

Conan profile

# Configuration (profile_host):
[settings]
arch=armv7hf
arch_build=x86_64
build_type=Debug
compiler=gcc
compiler.cppstd=20
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

# Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=11
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

Steps to reproduce

/usr/local/bin/conan install boost/1.78.0@ --update --remote conancenter --build missing --settings arch=armv7hf --settings build_type=Debug --settings compiler=gcc --settings compiler.version=11 --settings compiler.libcxx=libstdc++11 --settings compiler.cppstd=20 -pr:b=default

Logs

Click to expand log ``` Configuration (profile_host): [settings] arch=armv7hf arch_build=x86_64 build_type=Debug compiler=gcc compiler.cppstd=20 compiler.libcxx=libstdc++11 compiler.version=11 os=Linux os_build=Linux [options] [build_requires] [env] Configuration (profile_build): [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=gcc compiler.libcxx=libstdc++ compiler.version=11 os=Linux os_build=Linux [options] [build_requires] [env] bzip2/1.0.8: WARN: Can't update, no package in remote libbacktrace/cci.20210118: WARN: Can't update, no package in remote zlib/1.2.13: WARN: Can't update, no package in remote boost/1.78.0: WARN: Package binary is corrupted, removing: f46a02e3e1208e4ba2172ce4e3436bdfa0b84dc9 b2/4.9.2: WARN: Can't update, no package in remote Installing package: boost/1.78.0 Requirements boost/1.78.0 from 'conancenter' - Cache bzip2/1.0.8 from 'conancenter' - Cache libbacktrace/cci.20210118 from 'conancenter' - Cache zlib/1.2.13 from 'conancenter' - Cache Packages boost/1.78.0:f46a02e3e1208e4ba2172ce4e3436bdfa0b84dc9 - Build bzip2/1.0.8:cd05d4dc9ee01176355eaafc0b9b97048f3f3ecb - Cache libbacktrace/cci.20210118:17d0fcc517d726a18f148667256f6d4e42960ed8 - Cache zlib/1.2.13:17d0fcc517d726a18f148667256f6d4e42960ed8 - Cache Build requirements b2/4.9.2 from 'conancenter' - Cache Build requirements packages b2/4.9.2:4db1be536558d833e52e862fd84d64d75c2b3656 - Cache Cross-build from 'Linux:x86_64' to 'Linux:armv7hf' Installing (downloading, building) binaries... b2/4.9.2: Already installed! bzip2/1.0.8: Already installed! libbacktrace/cci.20210118: Already installed! zlib/1.2.13: Already installed! boost/1.78.0: Applying build-requirement: b2/4.9.2 boost/1.78.0: WARN: Build folder is dirty, removing it: /root/.conan/data/boost/1.78.0/_/_/build/f46a02e3e1208e4ba2172ce4e3436bdfa0b84dc9 boost/1.78.0: Building your package in /root/.conan/data/boost/1.78.0/_/_/build/f46a02e3e1208e4ba2172ce4e3436bdfa0b84dc9 boost/1.78.0: Generator txt created conanbuildinfo.txt boost/1.78.0: Calling generate() boost/1.78.0: Aggregating env generators boost/1.78.0: Calling build() boost/1.78.0: WARN: replace_in_file didn't find pattern '$(>) > $(<)' in '/root/.conan/data/boost/1.78.0/_/_/source/src/libs/stacktrace/build/Jamfile.v2' file. boost/1.78.0: WARN: replace_in_file didn't find pattern '/* thread_local */' in '/root/.conan/data/boost/1.78.0/_/_/source/src/boost/stacktrace/detail/libbacktrace_impls.hpp' file. boost/1.78.0: WARN: replace_in_file didn't find pattern '/* static __thread */' in '/root/.conan/data/boost/1.78.0/_/_/source/src/boost/stacktrace/detail/libbacktrace_impls.hpp' file. boost/1.78.0: WARN: replace_in_file didn't find pattern 'local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ;' in '/root/.conan/data/boost/1.78.0/_/_/source/src/tools/build/src/tools/gcc.jam' file. boost/1.78.0: WARN: replace_in_file didn't find pattern 'local no-threading = android beos haiku sgi darwin vxworks ;' in '/root/.conan/data/boost/1.78.0/_/_/source/src/tools/build/src/tools/gcc.jam' file. boost/1.78.0: WARN: replace_in_file didn't find pattern ' @numa' in '/root/.conan/data/boost/1.78.0/_/_/source/src/libs/fiber/build/Jamfile.v2' file. boost/1.78.0: WARN: Patching user-config.jam boost/1.78.0: WARN: using zlib : 1.2.13 : "/root/.conan/data/zlib/1.2.13/_/_/package/17d0fcc517d726a18f148667256f6d4e42960ed8/include" "/root/.conan/data/zlib/1.2.13/_/_/package/17d0fcc517d726a18f148667256f6d4e42960ed8/lib" z ; using bzip2 : 1.0.8 : "/root/.conan/data/bzip2/1.0.8/_/_/package/cd05d4dc9ee01176355eaafc0b9b97048f3f3ecb/include" "/root/.conan/data/bzip2/1.0.8/_/_/package/cd05d4dc9ee01176355eaafc0b9b97048f3f3ecb/lib" bz2 ; using "gcc" : : /home/user/yocto-arm/4.0.3/tmp/hosttools/g++ : "-I/root/.conan/data/libbacktrace/cci.20210118/_/_/package/17d0fcc517d726a18f148667256f6d4e42960ed8/include" "-L/root/.conan/data/libbacktrace/cci.20210118/_/_/package/17d0fcc517d726a18f148667256f6d4e42960ed8/lib" ; boost/1.78.0: Cross building, detecting compiler... boost/1.78.0: Cross building flags: ['-mfloat-abi=hard'] boost/1.78.0: WARN: b2 -mfloat-abi=hard -q numa=on target-os=linux architecture=arm address-model=32 binary-format=elf abi=aapcs --layout=system --user-config=/root/.conan/data/boost/1.78.0/_/_/source/src/tools/build/user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.icu=off --disable-icu boost.locale.iconv=on boost.locale.iconv.lib=libc 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-fiber --with-filesystem --with-graph --with-iostreams --with-json --with-locale --with-log --with-math --with-nowide --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=gcc cxxflags=-std=c++2a define=_GLIBCXX_USE_CXX11_ABI=1 pch=on linkflags="" cxxflags="-fPIC -DBOOST_STACKTRACE_ADDR2LINE_LOCATION=/usr/bin/addr2line" install --prefix=/root/.conan/data/boost/1.78.0/_/_/package/f46a02e3e1208e4ba2172ce4e3436bdfa0b84dc9 -j12 --abbreviate-paths -d0 --debug-configuration --build-dir="/root/.conan/data/boost/1.78.0/_/_/build/f46a02e3e1208e4ba2172ce4e3436bdfa0b84dc9/build-debug" notice: found boost-build.jam at /root/.conan/data/boost/1.78.0/_/_/source/src/boost-build.jam notice: loading B2 from /root/.conan/data/b2/4.9.2/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/.b2/kernel/bootstrap.jam notice: Searching '/etc' '/root' '/root/.conan/data/b2/4.9.2/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/.b2/kernel' '/root/.conan/data/b2/4.9.2/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/.b2/util' '/root/.conan/data/b2/4.9.2/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/.b2/build' '/root/.conan/data/b2/4.9.2/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/.b2/tools' '/root/.conan/data/b2/4.9.2/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/.b2/contrib' '/root/.conan/data/b2/4.9.2/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/.b2/.' for site-config configuration file 'site-config.jam'. notice: Configuration file 'site-config.jam' not found in '/etc' '/root' '/root/.conan/data/b2/4.9.2/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/.b2/kernel' '/root/.conan/data/b2/4.9.2/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/.b2/util' '/root/.conan/data/b2/4.9.2/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/.b2/build' '/root/.conan/data/b2/4.9.2/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/.b2/tools' '/root/.conan/data/b2/4.9.2/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/.b2/contrib' '/root/.conan/data/b2/4.9.2/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/.b2/.'. notice: Loading explicitly specified user configuration file: /root/.conan/data/boost/1.78.0/_/_/source/src/tools/build/user-config.jam notice: Searching '/root/.conan/data/boost/1.78.0/_/_/source/src/tools/build' for user-config configuration file 'user-config.jam'. notice: Loading user-config configuration file 'user-config.jam' from '/root/.conan/data/boost/1.78.0/_/_/source/src/tools/build'. notice: [zlib] Using pre-installed library notice: [zlib] Condition notice: [bzip2] Using pre-installed library notice: [bzip2] Condition notice: will use '/home/user/yocto-arm/4.0.3/tmp/hosttools/g++' for gcc, condition gcc-11 notice: using gcc libraries :: gcc-11 :: /home/user/yocto-arm/4.0.3/tmp/bin /home/user/yocto-arm/4.0.3/tmp/lib /home/user/yocto-arm/4.0.3/tmp/lib32 /home/user/yocto-arm/4.0.3/tmp/lib64 notice: using gcc archiver :: gcc-11 :: /home/user/yocto-arm/4.0.3/tmp/hosttools/ar warning: toolset gcc initialization: can not find tool windres warning: initialized from /root/.conan/data/boost/1.78.0/_/_/source/src/tools/build/user-config.jam:5 notice: using rc compiler :: gcc-11 :: /home/user/yocto-arm/4.0.3/tmp/hosttools/as 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\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...requested configuration matched! notice: [python-cfg] Details of this Python configuration: notice: [python-cfg] interpreter command: "python" notice: [python-cfg] include path: "/usr/include/python2.7" notice: [python-cfg] library path: "/usr/lib/python2.7/config" "/usr/lib" notice: [python-cfg] Checking for NumPy... notice: [python-cfg] running command 'python -c "import sys; sys.stderr = sys.stdout; import numpy; print(numpy.get_include())"' notice: [python-cfg] NumPy disabled. Reason: notice: [python-cfg] python -c "import sys; sys.stderr = sys.stdout; import numpy; print(numpy.get_include())" aborted with notice: [python-cfg] Traceback (most recent call last): File "", line 1, in ImportError: No module named numpy Performing configuration checks - default address-model : 64-bit [1] - default architecture : x86 [1] - has std::atomic_ref : yes [2] - has statx : yes [2] - has init_priority attribute : yes [2] - has stat::st_blksize : yes [2] - has stat::st_mtim : yes [2] - has stat::st_mtimensec : no [2] - has stat::st_mtimespec : no [2] - has stat::st_birthtim : no [2] - has stat::st_birthtimensec : no [2] - has stat::st_birthtimespec : no [2] - cxx11_auto_declarations : yes [2] - cxx11_constexpr : yes [2] - cxx11_defaulted_functions : yes [2] - cxx11_final : yes [2] - cxx11_hdr_mutex : yes [2] - cxx11_hdr_tuple : yes [2] - cxx11_lambdas : yes [2] - cxx11_noexcept : yes [2] - cxx11_nullptr : yes [2] - cxx11_rvalue_references : yes [2] - cxx11_template_aliases : yes [2] - cxx11_thread_local : yes [2] - cxx11_variadic_templates : yes [2] - has_icu builds : no [2] - zlib : yes [3] - bzip2 : yes [3] - cxx11_decltype : yes [2] - cxx11_basic_alignas : yes [2] - iconv (libc) : yes [2] - native atomic int32 supported : yes [2] - native syslog supported : yes [2] - pthread supports robust mutexes : yes [2] - lockfree boost::atomic_flag : yes [2] - gcc visibility : yes [2] - sfinae_expr : yes [2] - cxx11_unified_initialization_syntax : yes [2] - cxx11_hdr_initializer_list : yes [2] - cxx11_hdr_chrono : yes [2] - cxx11_numeric_limits : yes [2] - cxx11_hdr_array : yes [2] - cxx11_hdr_atomic : yes [2] - cxx11_hdr_type_traits : yes [2] - cxx11_allocator : yes [2] - cxx11_explicit_conversion_operators : yes [2] - long double support : yes [2] - cxx11_static_assert : yes [2] - std::fstream is moveable and swappable : yes [2] - Has Large File Support : yes [2] - Has attribute init_priority : yes [2] - libbacktrace builds : no [2] - libbacktrace builds : no [4] - addr2line builds : yes [2] - WinDbg builds : no [2] - WinDbg builds : no [4] - WinDbgCached builds : no [2] - WinDbgCached builds : no [4] - BOOST_COMP_GNUC >= 4.3.0 : yes [2] [1] gcc-11 [2] gcc-11/dbg/abi-apcs/adrs-mdl-32/archt-arm/bst.l-lbc/bst.l-on/bst.l-off/lnk-sttc/nm-on/pythn-2.7/thrdp-pthrd/thrd-mlt/vsblt-hdn [3] lnk-sttc [4] gcc-11/dbg/abi-apcs/adrs-mdl-32/archt-arm/bst.l-lbc/bst.l-on/bst.l-off/bld-no/lnk-sttc/nm-on/pythn-2.7/thrdp-pthrd/thrd-mlt/vsblt-hdn Component configuration: - atomic : building - chrono : building - container : building - context : building - contract : building - coroutine : building - date_time : building - exception : building - fiber : building - filesystem : building - graph : building - graph_parallel : not building - headers : not building - iostreams : building - json : building - locale : building - log : building - math : building - mpi : not building - nowide : 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 make_arm_aapcs_elf_gas.S: Assembler messages: make_arm_aapcs_elf_gas.S:46: Error: unknown pseudo-op: `.syntax' make_arm_aapcs_elf_gas.S:48: Error: junk at end of line, first unrecognized character is `@' make_arm_aapcs_elf_gas.S:49: Error: no such instruction: `bic a1,a1,' make_arm_aapcs_elf_gas.S:51: Error: junk at end of line, first unrecognized character is `@' make_arm_aapcs_elf_gas.S:52: Error: too many memory references for `sub' make_arm_aapcs_elf_gas.S:54: Error: junk at end of line, first unrecognized character is `@' make_arm_aapcs_elf_gas.S:55: Error: invalid char '[' beginning operand 2 `[a1' make_arm_aapcs_elf_gas.S:57: Error: junk at end of line, first unrecognized character is `@' make_arm_aapcs_elf_gas.S:58: Error: too many memory references for `add' make_arm_aapcs_elf_gas.S:59: Error: too many memory references for `mov' make_arm_aapcs_elf_gas.S:60: Error: invalid char '[' beginning operand 2 `[a1' make_arm_aapcs_elf_gas.S:62: Error: junk at end of line, first unrecognized character is `@' make_arm_aapcs_elf_gas.S:63: Error: no such instruction: `adr a2,finish' make_arm_aapcs_elf_gas.S:64: Error: junk at end of line, first unrecognized character is `@' make_arm_aapcs_elf_gas.S:65: Error: junk at end of line, first unrecognized character is `@' make_arm_aapcs_elf_gas.S:66: Error: invalid char '[' beginning operand 2 `[a1' make_arm_aapcs_elf_gas.S:71: Error: no such instruction: `bx lr@return pointer to context-data' make_arm_aapcs_elf_gas.S:74: Error: junk at end of line, first unrecognized character is `@' make_arm_aapcs_elf_gas.S:75: Error: expecting operand after ','; got nothing make_arm_aapcs_elf_gas.S:76: Error: junk at end of line, first unrecognized character is `@' make_arm_aapcs_elf_gas.S:77: Error: no such instruction: `bl _exit@PLT' make_arm_aapcs_elf_gas.S:80: Error: junk at end of line, first unrecognized character is `@' ontop_arm_aapcs_elf_gas.S: Assembler messages: ontop_arm_aapcs_elf_gas.S:46: Error: unknown pseudo-op: `.syntax' ontop_arm_aapcs_elf_gas.S:48: Error: junk at end of line, first unrecognized character is `@' ontop_arm_aapcs_elf_gas.S:49: Error: invalid char '{' beginning operand 1 `{lr}' ontop_arm_aapcs_elf_gas.S:50: Error: junk at end of line, first unrecognized character is `@' ontop_arm_aapcs_elf_gas.S:51: Error: invalid char '{' beginning operand 1 `{a1' ontop_arm_aapcs_elf_gas.S:53: Error: junk at end of line, first unrecognized character is `@' ontop_arm_aapcs_elf_gas.S:54: Error: too many memory references for `sub' ontop_arm_aapcs_elf_gas.S:60: Error: junk at end of line, first unrecognized character is `@' ontop_arm_aapcs_elf_gas.S:61: Error: too many memory references for `mov' ontop_arm_aapcs_elf_gas.S:63: Error: junk at end of line, first unrecognized character is `@' ontop_arm_aapcs_elf_gas.S:64: Error: too many memory references for `mov' ontop_arm_aapcs_elf_gas.S:66: Error: junk at end of line, first unrecognized character is `@' ontop_arm_aapcs_elf_gas.S:67: Error: too many memory references for `mov' ontop_arm_aapcs_elf_gas.S:73: Error: junk at end of line, first unrecognized character is `@' ontop_arm_aapcs_elf_gas.S:74: Error: too many memory references for `add' ontop_arm_aapcs_elf_gas.S:76: Error: junk at end of line, first unrecognized character is `@' ontop_arm_aapcs_elf_gas.S:77: Error: invalid char '{' beginning operand 1 `{a1' ontop_arm_aapcs_elf_gas.S:79: Error: junk at end of line, first unrecognized character is `@' ontop_arm_aapcs_elf_gas.S:80: Error: invalid char '[' beginning operand 2 `[a1' ontop_arm_aapcs_elf_gas.S:81: Error: invalid char '[' beginning operand 2 `[a1' ontop_arm_aapcs_elf_gas.S:82: Error: junk at end of line, first unrecognized character is `@' ontop_arm_aapcs_elf_gas.S:83: Error: junk at end of line, first unrecognized character is `@' ontop_arm_aapcs_elf_gas.S:85: Error: junk at end of line, first unrecognized character is `@' ontop_arm_aapcs_elf_gas.S:86: Error: too many memory references for `add' ontop_arm_aapcs_elf_gas.S:88: Error: junk at end of line, first unrecognized character is `@' ontop_arm_aapcs_elf_gas.S:89: Error: no such instruction: `bx a4' ontop_arm_aapcs_elf_gas.S:92: Error: junk at end of line, first unrecognized character is `@' cp: cannot stat '/root/.conan/data/boost/1.78.0/_/_/build/f46a02e3e1208e4ba2172ce4e3436bdfa0b84dc9/build-debug/boost/bin.v2/libs/date_time/build/install/boost_date_time-config.cmake': No such file or directory ...failed updating 3 targets... boost/1.78.0: boost/1.78.0: ERROR: Package 'f46a02e3e1208e4ba2172ce4e3436bdfa0b84dc9' build failed boost/1.78.0: WARN: Build folder /root/.conan/data/boost/1.78.0/_/_/build/f46a02e3e1208e4ba2172ce4e3436bdfa0b84dc9/build-debug ERROR: boost/1.78.0: Error in build() method, line 873 self.run(full_command) ConanException: Error 1 while executing b2 -mfloat-abi=hard -q numa=on target-os=linux architecture=arm address-model=32 binary-format=elf abi=aapcs --layout=system --user-config=/root/.conan/data/boost/1.78.0/_/_/source/src/tools/build/user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.icu=off --disable-icu boost.locale.iconv=on boost.locale.iconv.lib=libc 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-fiber --with-filesystem --with-graph --with-iostreams --with-json --with-locale --with-log --with-math --with-nowide --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=gcc cxxflags=-std=c++2a define=_GLIBCXX_USE_CXX11_ABI=1 pch=on linkflags="" cxxflags="-fPIC -DBOOST_STACKTRACE_ADDR2LINE_LOCATION=/usr/bin/addr2line" install --prefix=/root/.conan/data/boost/1.78.0/_/_/package/f46a02e3e1208e4ba2172ce4e3436bdfa0b84dc9 -j12 --abbreviate-paths -d0 --debug-configuration --build-dir="/root/.conan/data/boost/1.78.0/_/_/build/f46a02e3e1208e4ba2172ce4e3436bdfa0b84dc9/build-debug" ```
SpaceIm commented 1 year ago
    - default architecture     : x86 [1]

If you cross-build with 2 profiles and arch in host profile is armv7hf, it's not possible by design of boost recipe. Please try without cmake-conan to avoid adding an extra layer of potential bugs.

lproj commented 1 year ago

That is what I did afterwards: I did run conan install from command line only, but the problem remains. Note that the host profile specified in the above section of this bug report come from the output of the command (I did not write it by myself, I should have made this more clear).

This is the command from a fresh environment without any conan profiles:

. env.sh # ok, first set CC,CXX,etc...

/usr/local/bin/conan install boost/1.78.0@ --update --remote conancenter --build missing --settings arch=armv7hf --settings build_type=Debug --settings compiler=gcc --settings compiler.version=11 --settings compiler.libcxx=libstdc++11 --settings compiler.cppstd=20 -pr:b=default

SpaceIm commented 1 year ago

conan v2 helpers don't listen environment variables set externally, so I would say it's UB. They expect profiles to explicitly set them in [buildenv] so that conan can inject these env variables in the proper context.