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] tools.gnu:host_triplet ignored for build context #14425

Closed
DoDoENT opened this issue Aug 4, 2023 · 3 comments
Closed

[bug] tools.gnu:host_triplet ignored for build context #14425

DoDoENT opened this issue Aug 4, 2023 · 3 comments
Assignees

Comments

@DoDoENT
Copy link
Contributor

DoDoENT commented Aug 4, 2023

Environment details

  • Operating System+version: Macos 13.4.1
  • Compiler+version: apple clang 14.0.3
  • Conan version: 2.0.9
  • Python version: 3.11

Steps to reproduce

Attempt to cross build any autotools-based recipe from conan center, such as libbacktrace/cci.20210118, while having [conf] section in your build profile. The flags and settings get leaked into the host context.

From the logs below, you can clearly see:

in the Requirements section:

libbacktrace/cci.20210118#ec1aa63bbc10145c6a299e68e711670c:8d4455ce70884ca03fcc6d108c197cdbacfe5775 - Build

In the Build requirements section:

    libbacktrace/cci.20210118#ec1aa63bbc10145c6a299e68e711670c:86b93d2aa3f84474082e36a0af8c4ed16d409469#d6903dbe0b9443b55fb55cc86ee1afcd - Cache

So, only libbacktrace for the host context (Android) should be built.

Yet, I get the error

ERROR: libbacktrace/cci.20210118: Error in generate() method, line 72
	tc = AutotoolsToolchain(self)
	ConanException: Unknown 'x86_64_haswell' machine, Conan doesn't know how to translate it to the GNU triplet, please report at  https://github.com/conan-io/conan/issues

which should not happen when building for Android.

Logs

======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=DevRelease
compiler=clang
compiler.libcxx=c++_static
compiler.libcxx.version=2
compiler.version=14.0.7
os=Android
os.api_level=21
[tool_requires]
*: android_ndk/r25c@microblink/stable
[conf]
tools.cmake.cmake_layout:build_folder_vars=['settings.os', 'settings.os.sdk', 'settings.arch', 'settings.compiler', 'settings.compiler.version', 'settings.compiler.sanitizers', 'settings.compiler.link_time_optimization']
tools.files.download:retry=5
tools.files.download:retry_wait=2
tools.cmake.cmaketoolchain:generator=Ninja

Profile build:
[settings]
arch=x86_64_haswell
build_type=Release
compiler=clang
compiler.libcxx=libc++v2
compiler.version=16.0.5
os=Linux
[tool_requires]
*: mb_foundation/0.1.0@microblink/stable
[conf]
tools.cmake.cmake_layout:build_folder_vars=['settings.os', 'settings.os.sdk', 'settings.arch', 'settings.compiler', 'settings.compiler.version', 'settings.compiler.sanitizers', 'settings.compiler.link_time_optimization']
tools.files.download:retry=5
tools.files.download:retry_wait=2
tools.cmake.cmaketoolchain:generator=Ninja
tools.build:compiler_executables={'c': '/usr/bin/clang', 'cpp': '/usr/bin/clang++'}
tools.cmake.cmaketoolchain:system_name=Linux
tools.cmake.cmaketoolchain:system_processor=x86_64
tools.build:cflags=['-mavx', '-march=haswell', '-mtune=haswell', '-mavx2']
tools.build:cxxflags=['-mavx', '-march=haswell', '-mtune=haswell', '-mavx2']
tools.build:sharedlinkflags=['-Wl,-rpath,/usr/local/lib/x86_64-unknown-linux-gnu']
tools.build:exelinkflags=['-Wl,-rpath,/usr/local/lib/x86_64-unknown-linux-gnu']


======== Computing dependency graph ========
android_ndk/r25c@microblink/stable: Not found in local cache, looking in remotes...
android_ndk/r25c@microblink/stable: Checking remote: mbtemp
android_ndk/r25c@microblink/stable: Downloaded recipe revision b13140059da04a09f3fdd1adbc080408
Graph root
    conanfile.py (ml_models_image_capture/1.0.0): /opt/jenkins/android-arm64-samsung-s21-ultra/root/E0/b/core-nn-models-image-capture/conanfile.py
Requirements
    adv_obfuscator/20170904.0@nenad/testing#35b6a767471e030de9640d6676d3035b - Cache
    boost/1.80@nenad/testing#b5f6784ab18ef24bc1423972f4d4c54e - Cache
    cmake_build/0.1.0@nenad/testing#40d33964dbe3f77e4f766bb8c34afd82 - Cache
    concurrent_queue/0.1.0@nenad/testing#63dcb9780d5aec456a2a83217fa55d79 - Cache
    config_ex/0.1.0@nenad/testing#8ac20ee44de37e4bcf5dc764d5d9f9fb - Cache
    core_utils/1.0.0@nenad/testing#5a16b213ec5f90cf8c61e4590efd82b0 - Cache
    cpuinfo/20230428.1@nenad/testing#c1e17d1098c745caa4462abaef85f8c6 - Cache
    eigen/3.4.0@nenad/testing#f0f42f40b9dcd259bae0b92feacca4f5 - Cache
    err/1.0.0@nenad/testing#deb27027360b5937da47ff192cdeb3e4 - Cache
    functionoid/0.1.0@nenad/testing#c1f5773dcea65d05d27a7f83075c777a - Cache
    gtest/1.11.0@nenad/testing#b86e737a89c05fb7e92eeb24dcfd4e05 - Cache
    hash/1.0.0@nenad/testing#5ec3db8c88c4a679e5d5ad6c6b0e1fe4 - Cache
    kiwaku/20230522.1@nenad/testing#caab153f2877dacbbaf89b0b8fb46de0 - Cache
    libbacktrace/cci.20210118#ec1aa63bbc10145c6a299e68e711670c - Cache
    libjpeg_turbo/2.1.4.1@nenad/testing#328a17322058cd185ed6a6c4899b9e2e - Cache
    libpng/1.6.38.1@nenad/testing#7c45891acf66fd0e7b9c6f136c8ccfbe - Cache
    log_and_timer/0.1.0@nenad/testing#6346bb0a705637150950be0af5af33ad - Cache
    micro_ecc/1.0.0@nenad/testing#e3617d4b177b9e352ae1fde6839839fe - Cache
    mmap/1.0.0@nenad/testing#3aafec364b424c5b266a7bae5938b6a7 - Cache
    nlohmann_json/3.10.4#2d3ba0c641692cca9fb4514e05154688 - Cache
    opencv/4.6.0.2@nenad/testing#a037b128042b4e7f9d5ff6663bcb61ed - Cache
    protection/1.0.0@nenad/testing#a4005e34e83d1701812c8194f66c2fa2 - Cache
    protobuf/3.21.7@nenad/testing#4968cc8799438f3746a0ffef6f8c267a - Cache
    range-v3/0.12.0#abb9932b80d96eaf8fc992debe3870ed - Cache
    rapidjson/1.1.5@nenad/testing#d9cb20226d91dc7437d38f4433f0072c - Cache
    runner/1.0.0@nenad/testing#b266af8dce15521fa423ae03cc117d72 - Cache
    std_fix/1.0.0@nenad/testing#49129ddf1d1a32deef32ba86f2897bde - Cache
    sweater/1.0.0@nenad/testing#5aa855c096711beb6d24b207f7c13d90 - Cache
    utfcpp/3.2.1@nenad/testing#a1f070448470fee48fe8377c5e64e08b - Cache
    version_and_paths/0.1.0@nenad/testing#1d4ece2deec299f3dc8594539e89328a - Cache
    xnnpack/20230525.0@nenad/testing#2d11e64818e995d6376f3e7f9a3a75ed - Cache
    zlib/1.2.13@nenad/testing#73ea6005846950a84f51347ff7e13b99 - Cache
Test requirements
    boost/1.80@nenad/testing#b5f6784ab18ef24bc1423972f4d4c54e - Cache
    cmake_build/0.1.0@nenad/testing#40d33964dbe3f77e4f766bb8c34afd82 - Cache
    config_ex/0.1.0@nenad/testing#8ac20ee44de37e4bcf5dc764d5d9f9fb - Cache
    functionoid/0.1.0@nenad/testing#c1f5773dcea65d05d27a7f83075c777a - Cache
    gtest/1.11.0@nenad/testing#b86e737a89c05fb7e92eeb24dcfd4e05 - Cache
    libbacktrace/cci.20210118#ec1aa63bbc10145c6a299e68e711670c - Cache
    log_and_timer/0.1.0@nenad/testing#6346bb0a705637150950be0af5af33ad - Cache
    tensorflow/1.13.1@nenad/testing#611bd2364b1c74efbeb058065a492f2c - Cache
    version_and_paths/0.1.0@nenad/testing#1d4ece2deec299f3dc8594539e89328a - Cache
Build requirements
    adv_obfuscator/20170904.0@nenad/testing#35b6a767471e030de9640d6676d3035b - Cache
    android_ndk/r25c@microblink/stable#b13140059da04a09f3fdd1adbc080408 - Downloaded (mbtemp)
    boost/1.80@nenad/testing#b5f6784ab18ef24bc1423972f4d4c54e - Cache
    cmake_build/0.1.0@nenad/testing#40d33964dbe3f77e4f766bb8c34afd82 - Cache
    concurrent_queue/0.1.0@nenad/testing#63dcb9780d5aec456a2a83217fa55d79 - Cache
    config_ex/0.1.0@nenad/testing#8ac20ee44de37e4bcf5dc764d5d9f9fb - Cache
    core_utils/1.0.0@nenad/testing#5a16b213ec5f90cf8c61e4590efd82b0 - Cache
    cpuinfo/20230428.1@nenad/testing#c1e17d1098c745caa4462abaef85f8c6 - Cache
    eigen/3.4.0@nenad/testing#f0f42f40b9dcd259bae0b92feacca4f5 - Cache
    err/1.0.0@nenad/testing#deb27027360b5937da47ff192cdeb3e4 - Cache
    functionoid/0.1.0@nenad/testing#c1f5773dcea65d05d27a7f83075c777a - Cache
    gtest/1.11.0@nenad/testing#b86e737a89c05fb7e92eeb24dcfd4e05 - Cache
    hash/1.0.0@nenad/testing#5ec3db8c88c4a679e5d5ad6c6b0e1fe4 - Cache
    kiwaku/20230522.1@nenad/testing#caab153f2877dacbbaf89b0b8fb46de0 - Cache
    libbacktrace/cci.20210118#ec1aa63bbc10145c6a299e68e711670c - Cache
    libjpeg_turbo/2.1.4.1@nenad/testing#328a17322058cd185ed6a6c4899b9e2e - Cache
    libpng/1.6.38.1@nenad/testing#7c45891acf66fd0e7b9c6f136c8ccfbe - Cache
    log_and_timer/0.1.0@nenad/testing#6346bb0a705637150950be0af5af33ad - Cache
    mb_foundation/0.1.0@microblink/stable#694630970e79763bcf52a829122aba69 - Cache
    micro_ecc/1.0.0@nenad/testing#e3617d4b177b9e352ae1fde6839839fe - Cache
    ml_models_image_capture/1.0.0 - Editable
    mmap/1.0.0@nenad/testing#3aafec364b424c5b266a7bae5938b6a7 - Cache
    nasm/2.14#d4c0f102da173fe6ea0fe5c486a29709 - Cache
    nlohmann_json/3.10.4#2d3ba0c641692cca9fb4514e05154688 - Cache
    opencv/4.6.0.2@nenad/testing#a037b128042b4e7f9d5ff6663bcb61ed - Cache
    protection/1.0.0@nenad/testing#a4005e34e83d1701812c8194f66c2fa2 - Cache
    protobuf/3.21.7@nenad/testing#4968cc8799438f3746a0ffef6f8c267a - Cache
    range-v3/0.12.0#abb9932b80d96eaf8fc992debe3870ed - Cache
    rapidjson/1.1.5@nenad/testing#d9cb20226d91dc7437d38f4433f0072c - Cache
    runner/1.0.0@nenad/testing#b266af8dce15521fa423ae03cc117d72 - Cache
    std_fix/1.0.0@nenad/testing#49129ddf1d1a32deef32ba86f2897bde - Cache
    sweater/1.0.0@nenad/testing#5aa855c096711beb6d24b207f7c13d90 - Cache
    tensorflow/1.13.1@nenad/testing#611bd2364b1c74efbeb058065a492f2c - Cache
    utfcpp/3.2.1@nenad/testing#a1f070448470fee48fe8377c5e64e08b - Cache
    version_and_paths/0.1.0@nenad/testing#1d4ece2deec299f3dc8594539e89328a - Cache
    xnnpack/20230525.0@nenad/testing#2d11e64818e995d6376f3e7f9a3a75ed - Cache
    zlib/1.2.13@nenad/testing#73ea6005846950a84f51347ff7e13b99 - Cache
Python requires
    conanfile_utils/0.1.0@nenad/testing#22e39d9779ab95f144c79a6c34b21146 - Cache
Resolved version ranges
    boost/[~1.80]@nenad/testing: boost/1.80@nenad/testing
    boost/[~1]@nenad/testing: boost/1.80@nenad/testing
    cmake_build/[~0]@nenad/testing: cmake_build/0.1.0@nenad/testing
    conanfile_utils/[~0]@nenad/testing: conanfile_utils/0.1.0@nenad/testing
    concurrent_queue/[~0]@nenad/testing: concurrent_queue/0.1.0@nenad/testing
    config_ex/[~0]@nenad/testing: config_ex/0.1.0@nenad/testing
    core_utils/[~1]@nenad/testing: core_utils/1.0.0@nenad/testing
    cpuinfo/[~20230428]@nenad/testing: cpuinfo/20230428.1@nenad/testing
    eigen/[~3.4.0]@nenad/testing: eigen/3.4.0@nenad/testing
    err/[~1]@nenad/testing: err/1.0.0@nenad/testing
    functionoid/[~0]@nenad/testing: functionoid/0.1.0@nenad/testing
    gtest/[~1]@nenad/testing: gtest/1.11.0@nenad/testing
    hash/[~1]@nenad/testing: hash/1.0.0@nenad/testing
    kiwaku/[~20230522]@nenad/testing: kiwaku/20230522.1@nenad/testing
    libjpeg_turbo/[~2.1]@nenad/testing: libjpeg_turbo/2.1.4.1@nenad/testing
    libpng/[~1.6]@nenad/testing: libpng/1.6.38.1@nenad/testing
    log_and_timer/[~0]@nenad/testing: log_and_timer/0.1.0@nenad/testing
    micro_ecc/[~1]@nenad/testing: micro_ecc/1.0.0@nenad/testing
    mmap/[~1]@nenad/testing: mmap/1.0.0@nenad/testing
    opencv/[~4.6.0]@nenad/testing: opencv/4.6.0.2@nenad/testing
    protection/[~1]@nenad/testing: protection/1.0.0@nenad/testing
    protobuf/[~3.21]@nenad/testing: protobuf/3.21.7@nenad/testing
    runner/[~1.0]@nenad/testing: runner/1.0.0@nenad/testing
    std_fix/[~1]@nenad/testing: std_fix/1.0.0@nenad/testing
    sweater/[~1]@nenad/testing: sweater/1.0.0@nenad/testing
    tensorflow/[~1.13.1]@nenad/testing: tensorflow/1.13.1@nenad/testing
    version_and_paths/[~0]@nenad/testing: version_and_paths/0.1.0@nenad/testing
    xnnpack/[~20230525]@nenad/testing: xnnpack/20230525.0@nenad/testing
    zlib/[~1.2]@nenad/testing: zlib/1.2.13@nenad/testing

======== Computing necessary packages ========
android_ndk/r25c@microblink/stable: Checking 1 compatible configurations:
android_ndk/r25c@microblink/stable: '63fead0844576fc02943e16909f08fcdddd6f44b': 
android_ndk/r25c@microblink/stable: Main binary package 'f8da2d2d1af868e90384529932ffe9297cc1e8d7' missing. Using compatible package '63fead0844576fc02943e16909f08fcdddd6f44b'
Requirements
    adv_obfuscator/20170904.0@nenad/testing#35b6a767471e030de9640d6676d3035b:df6c97fde094ef9a36f63e81c41e5253e72a2977#f6396f5a866f840a971e62c438a902c0 - Cache
    boost/1.80@nenad/testing#b5f6784ab18ef24bc1423972f4d4c54e:da39a3ee5e6b4b0d3255bfef95601890afd80709#e41614b4db81f145a4b79617850f5bbd - Cache
    cmake_build/0.1.0@nenad/testing#40d33964dbe3f77e4f766bb8c34afd82:da39a3ee5e6b4b0d3255bfef95601890afd80709#3334e37fc79ace9b71783a931daa8c77 - Cache
    concurrent_queue/0.1.0@nenad/testing#63dcb9780d5aec456a2a83217fa55d79:df6c97fde094ef9a36f63e81c41e5253e72a2977#56ccfaee0337bf802fe05933fc1f305e - Cache
    config_ex/0.1.0@nenad/testing#8ac20ee44de37e4bcf5dc764d5d9f9fb:df6c97fde094ef9a36f63e81c41e5253e72a2977#164af33db0fcc9a504d31c2febdf22c9 - Cache
    core_utils/1.0.0@nenad/testing#5a16b213ec5f90cf8c61e4590efd82b0:ef2bf8c999dad9e209db0f2020f6ee975fc652ad - Build
    cpuinfo/20230428.1@nenad/testing#c1e17d1098c745caa4462abaef85f8c6:5aa986688f6e4e13d9e383ef3dfd613a396c09a3 - Build
    eigen/3.4.0@nenad/testing#f0f42f40b9dcd259bae0b92feacca4f5:df6c97fde094ef9a36f63e81c41e5253e72a2977#738c6d38c60eb26068fb3b50f6515107 - Cache
    err/1.0.0@nenad/testing#deb27027360b5937da47ff192cdeb3e4:df6c97fde094ef9a36f63e81c41e5253e72a2977#c1027d4c74ecbba68b5cb484f089cb8b - Cache
    functionoid/0.1.0@nenad/testing#c1f5773dcea65d05d27a7f83075c777a:df6c97fde094ef9a36f63e81c41e5253e72a2977#0cba0b5c615a0f448595e7a90e2ec147 - Cache
    gtest/1.11.0@nenad/testing#b86e737a89c05fb7e92eeb24dcfd4e05:5d65b33c7889f56c6f3c52e81fd88d81b103ddbd - Build
    hash/1.0.0@nenad/testing#5ec3db8c88c4a679e5d5ad6c6b0e1fe4:78bfac62eaab7fb1213eed941901bf5558635451 - Build
    kiwaku/20230522.1@nenad/testing#caab153f2877dacbbaf89b0b8fb46de0:df6c97fde094ef9a36f63e81c41e5253e72a2977#f27f47dab2e797fd663ef896604ac62b - Cache
    libbacktrace/cci.20210118#ec1aa63bbc10145c6a299e68e711670c:8d4455ce70884ca03fcc6d108c197cdbacfe5775 - Build
    libjpeg_turbo/2.1.4.1@nenad/testing#328a17322058cd185ed6a6c4899b9e2e:5aa986688f6e4e13d9e383ef3dfd613a396c09a3 - Build
    libpng/1.6.38.1@nenad/testing#7c45891acf66fd0e7b9c6f136c8ccfbe:7069828a1d8e420b2d2c54294ab52e9216db12cf - Build
    log_and_timer/0.1.0@nenad/testing#6346bb0a705637150950be0af5af33ad:aa007c40036e973d39810eabbf08d5ac5a5f5d29 - Build
    micro_ecc/1.0.0@nenad/testing#e3617d4b177b9e352ae1fde6839839fe:f843e0d308f88029a3d875223da5b535db8ea8b3 - Build
    mmap/1.0.0@nenad/testing#3aafec364b424c5b266a7bae5938b6a7:df6c97fde094ef9a36f63e81c41e5253e72a2977#94044f158bc9243777bd77bbbfc276f4 - Cache
    nlohmann_json/3.10.4#2d3ba0c641692cca9fb4514e05154688:da39a3ee5e6b4b0d3255bfef95601890afd80709#c778d4e6040abc2114a46c9599471b3c - Cache
    opencv/4.6.0.2@nenad/testing#a037b128042b4e7f9d5ff6663bcb61ed:910803cdd71c277b4566e4d8e6c7987bf1398ffd - Build
    protection/1.0.0@nenad/testing#a4005e34e83d1701812c8194f66c2fa2:bc06166cdec6c251469b9791ebb23446ae9b275c - Build
    protobuf/3.21.7@nenad/testing#4968cc8799438f3746a0ffef6f8c267a:5aa986688f6e4e13d9e383ef3dfd613a396c09a3 - Build
    range-v3/0.12.0#abb9932b80d96eaf8fc992debe3870ed:da39a3ee5e6b4b0d3255bfef95601890afd80709#ecc6172c3cd6694c36d1cd98a702deb0 - Cache
    rapidjson/1.1.5@nenad/testing#d9cb20226d91dc7437d38f4433f0072c:df6c97fde094ef9a36f63e81c41e5253e72a2977#b3ae0ec1d159c57de4e34638419ec47c - Cache
    runner/1.0.0@nenad/testing#b266af8dce15521fa423ae03cc117d72:4070ae2a77e8190d34c6e1eff11944077888289b - Build
    std_fix/1.0.0@nenad/testing#49129ddf1d1a32deef32ba86f2897bde:df6c97fde094ef9a36f63e81c41e5253e72a2977#cd264f67a39b435409963d56bd6c3950 - Cache
    sweater/1.0.0@nenad/testing#5aa855c096711beb6d24b207f7c13d90:c1c2c609d8c15b15d2301bd418abd520bf1d90f3 - Build
    utfcpp/3.2.1@nenad/testing#a1f070448470fee48fe8377c5e64e08b:df6c97fde094ef9a36f63e81c41e5253e72a2977#aa77a3eefd1f6446a6b836fb887cd13e - Cache
    version_and_paths/0.1.0@nenad/testing#1d4ece2deec299f3dc8594539e89328a:df6c97fde094ef9a36f63e81c41e5253e72a2977#23c2fcf758f23e8b428195b19d8f5713 - Cache
    xnnpack/20230525.0@nenad/testing#2d11e64818e995d6376f3e7f9a3a75ed:e31783176ae1ccda6d16addc01b5988d5648a8dd - Build
    zlib/1.2.13@nenad/testing#73ea6005846950a84f51347ff7e13b99:df6c97fde094ef9a36f63e81c41e5253e72a2977 - Build
Test requirements
    boost/1.80@nenad/testing#b5f6784ab18ef24bc1423972f4d4c54e:da39a3ee5e6b4b0d3255bfef95601890afd80709#e41614b4db81f145a4b79617850f5bbd - Cache
    cmake_build/0.1.0@nenad/testing#40d33964dbe3f77e4f766bb8c34afd82:da39a3ee5e6b4b0d3255bfef95601890afd80709#3334e37fc79ace9b71783a931daa8c77 - Cache
    config_ex/0.1.0@nenad/testing#8ac20ee44de37e4bcf5dc764d5d9f9fb:df6c97fde094ef9a36f63e81c41e5253e72a2977#164af33db0fcc9a504d31c2febdf22c9 - Cache
    functionoid/0.1.0@nenad/testing#c1f5773dcea65d05d27a7f83075c777a:df6c97fde094ef9a36f63e81c41e5253e72a2977#0cba0b5c615a0f448595e7a90e2ec147 - Cache
    gtest/1.11.0@nenad/testing#b86e737a89c05fb7e92eeb24dcfd4e05:5d65b33c7889f56c6f3c52e81fd88d81b103ddbd - Build
    libbacktrace/cci.20210118#ec1aa63bbc10145c6a299e68e711670c:8d4455ce70884ca03fcc6d108c197cdbacfe5775 - Build
    log_and_timer/0.1.0@nenad/testing#6346bb0a705637150950be0af5af33ad:aa007c40036e973d39810eabbf08d5ac5a5f5d29 - Build
    tensorflow/1.13.1@nenad/testing#611bd2364b1c74efbeb058065a492f2c:999d473973a6dcba20e8b20b357a85267c486456 - Build
    version_and_paths/0.1.0@nenad/testing#1d4ece2deec299f3dc8594539e89328a:df6c97fde094ef9a36f63e81c41e5253e72a2977#23c2fcf758f23e8b428195b19d8f5713 - Cache
Build requirements
    adv_obfuscator/20170904.0@nenad/testing#35b6a767471e030de9640d6676d3035b:df6c97fde094ef9a36f63e81c41e5253e72a2977#f6396f5a866f840a971e62c438a902c0 - Cache
    android_ndk/r25c@microblink/stable#b13140059da04a09f3fdd1adbc080408:63fead0844576fc02943e16909f08fcdddd6f44b#8a6c129c2da8535c1a07d908217d6f12 - Download (mbtemp)
    boost/1.80@nenad/testing#b5f6784ab18ef24bc1423972f4d4c54e:da39a3ee5e6b4b0d3255bfef95601890afd80709#e41614b4db81f145a4b79617850f5bbd - Cache
    cmake_build/0.1.0@nenad/testing#40d33964dbe3f77e4f766bb8c34afd82:da39a3ee5e6b4b0d3255bfef95601890afd80709#3334e37fc79ace9b71783a931daa8c77 - Cache
    concurrent_queue/0.1.0@nenad/testing#63dcb9780d5aec456a2a83217fa55d79:df6c97fde094ef9a36f63e81c41e5253e72a2977#56ccfaee0337bf802fe05933fc1f305e - Cache
    config_ex/0.1.0@nenad/testing#8ac20ee44de37e4bcf5dc764d5d9f9fb:df6c97fde094ef9a36f63e81c41e5253e72a2977#164af33db0fcc9a504d31c2febdf22c9 - Cache
    core_utils/1.0.0@nenad/testing#5a16b213ec5f90cf8c61e4590efd82b0:b3d926b711cd4173db90a3e923829177ce00214d#40d8bad28622a03a9f1e2a79bc701a81 - Cache
    cpuinfo/20230428.1@nenad/testing#c1e17d1098c745caa4462abaef85f8c6:b96f121ae7bd050c9399376b94893e2f54ce9299#a76278c339e464f644f17a7fc9929b06 - Cache
    eigen/3.4.0@nenad/testing#f0f42f40b9dcd259bae0b92feacca4f5:df6c97fde094ef9a36f63e81c41e5253e72a2977#738c6d38c60eb26068fb3b50f6515107 - Cache
    err/1.0.0@nenad/testing#deb27027360b5937da47ff192cdeb3e4:df6c97fde094ef9a36f63e81c41e5253e72a2977#c1027d4c74ecbba68b5cb484f089cb8b - Cache
    functionoid/0.1.0@nenad/testing#c1f5773dcea65d05d27a7f83075c777a:df6c97fde094ef9a36f63e81c41e5253e72a2977#0cba0b5c615a0f448595e7a90e2ec147 - Cache
    gtest/1.11.0@nenad/testing#b86e737a89c05fb7e92eeb24dcfd4e05:b4173e2804c8ce49cbcd21f9a1251a7966f95167#2c49b8edd26b6381766d4a7f183bc18c - Cache
    hash/1.0.0@nenad/testing#5ec3db8c88c4a679e5d5ad6c6b0e1fe4:94d72d24d1af678894cad1ad9b8a4442f011c087#5568f352385b9e870ff6621c81f61bef - Cache
    kiwaku/20230522.1@nenad/testing#caab153f2877dacbbaf89b0b8fb46de0:df6c97fde094ef9a36f63e81c41e5253e72a2977#f27f47dab2e797fd663ef896604ac62b - Cache
    libbacktrace/cci.20210118#ec1aa63bbc10145c6a299e68e711670c:86b93d2aa3f84474082e36a0af8c4ed16d409469#d6903dbe0b9443b55fb55cc86ee1afcd - Cache
    libjpeg_turbo/2.1.4.1@nenad/testing#328a17322058cd185ed6a6c4899b9e2e:b96f121ae7bd050c9399376b94893e2f54ce9299#b5983eb32817b48f752056d74b892f91 - Cache
    libpng/1.6.38.1@nenad/testing#7c45891acf66fd0e7b9c6f136c8ccfbe:017119d1da71621e9af75c24e5a157f751dc61db#97c6a0206415f8cc81186c555135543e - Cache
    log_and_timer/0.1.0@nenad/testing#6346bb0a705637150950be0af5af33ad:fa5b7f87a8cf8383c0ffc14f3a637a3913e3f07c#fd1c26048cc65d25199ce1d9ec808ded - Cache
    mb_foundation/0.1.0@microblink/stable#694630970e79763bcf52a829122aba69:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache
    micro_ecc/1.0.0@nenad/testing#e3617d4b177b9e352ae1fde6839839fe:183c369df0ed4efa9c7b3e7da65ed9e0cf816606#50ac186d10e15a79b8d4a1f29deaf5fe - Cache
    ml_models_image_capture/1.0.0:40cdecf828f48a804236057917c280a8193fe5fe - Editable
    mmap/1.0.0@nenad/testing#3aafec364b424c5b266a7bae5938b6a7:df6c97fde094ef9a36f63e81c41e5253e72a2977#94044f158bc9243777bd77bbbfc276f4 - Cache
    nlohmann_json/3.10.4#2d3ba0c641692cca9fb4514e05154688:da39a3ee5e6b4b0d3255bfef95601890afd80709#c778d4e6040abc2114a46c9599471b3c - Cache
    opencv/4.6.0.2@nenad/testing#a037b128042b4e7f9d5ff6663bcb61ed:e812f5fbe94601006590a4d102e51a1de0171f37#2bd2be58e4ccb75224702f63f6ae997b - Cache
    protection/1.0.0@nenad/testing#a4005e34e83d1701812c8194f66c2fa2:d6a9d4677a97cf47a385487f540a6e23dec49160#f07f5f6f48f81de6618644ea17b61fb2 - Cache
    protobuf/3.21.7@nenad/testing#4968cc8799438f3746a0ffef6f8c267a:b96f121ae7bd050c9399376b94893e2f54ce9299#b240c97e0dd9cb75bd65710281600540 - Cache
    range-v3/0.12.0#abb9932b80d96eaf8fc992debe3870ed:da39a3ee5e6b4b0d3255bfef95601890afd80709#ecc6172c3cd6694c36d1cd98a702deb0 - Cache
    rapidjson/1.1.5@nenad/testing#d9cb20226d91dc7437d38f4433f0072c:df6c97fde094ef9a36f63e81c41e5253e72a2977#b3ae0ec1d159c57de4e34638419ec47c - Cache
    runner/1.0.0@nenad/testing#b266af8dce15521fa423ae03cc117d72:979fcda0da91a193b86d245ed659d1265c9fce32#54271c0de5361746a1478e330901d406 - Cache
    std_fix/1.0.0@nenad/testing#49129ddf1d1a32deef32ba86f2897bde:df6c97fde094ef9a36f63e81c41e5253e72a2977#cd264f67a39b435409963d56bd6c3950 - Cache
    sweater/1.0.0@nenad/testing#5aa855c096711beb6d24b207f7c13d90:c91164e3f83aaf1c19e4680a3c61aa5f8db30c79#25c702e7622497f45cae731fd61b9957 - Cache
    tensorflow/1.13.1@nenad/testing#611bd2364b1c74efbeb058065a492f2c:b2207d92bee23a1659ae98a9c501e4da07ba2aa5#0a8c719ad29ba680e9c9c17981b89131 - Cache
    utfcpp/3.2.1@nenad/testing#a1f070448470fee48fe8377c5e64e08b:df6c97fde094ef9a36f63e81c41e5253e72a2977#aa77a3eefd1f6446a6b836fb887cd13e - Cache
    version_and_paths/0.1.0@nenad/testing#1d4ece2deec299f3dc8594539e89328a:df6c97fde094ef9a36f63e81c41e5253e72a2977#23c2fcf758f23e8b428195b19d8f5713 - Cache
    xnnpack/20230525.0@nenad/testing#2d11e64818e995d6376f3e7f9a3a75ed:d275fb051f4b37146e93133cd39b52f98189a710#83e469c56840afbbd4698052313b51ba - Cache
    zlib/1.2.13@nenad/testing#73ea6005846950a84f51347ff7e13b99:b96f121ae7bd050c9399376b94893e2f54ce9299#efdfda960271f52b4425ce17b9c344cc - Cache
Skipped binaries
    nasm/2.14

======== Installing packages ========

-------- Downloading 1 package --------
android_ndk/r25c@microblink/stable: Retrieving package 63fead0844576fc02943e16909f08fcdddd6f44b from remote 'mbtemp' 
android_ndk/r25c@microblink/stable: Downloading 542.9MB conan_package.tgz
android_ndk/r25c@microblink/stable: Downloaded 371.2MB 68% conan_package.tgz
android_ndk/r25c@microblink/stable: Decompressing 542.9MB conan_package.tgz
android_ndk/r25c@microblink/stable: Package installed 63fead0844576fc02943e16909f08fcdddd6f44b
android_ndk/r25c@microblink/stable: Downloaded package revision 8a6c129c2da8535c1a07d908217d6f12
mb_foundation/0.1.0@microblink/stable: Already installed! (1 of 53)
adv_obfuscator/20170904.0@nenad/testing: Already installed! (2 of 53)
android_ndk/r25c@microblink/stable: Creating CC environment variable: /home/jenkins/.conan2/p/andro1d3264d3db6a1/p/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang
android_ndk/r25c@microblink/stable: Creating CXX environment variable: /home/jenkins/.conan2/p/andro1d3264d3db6a1/p/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang++
android_ndk/r25c@microblink/stable: Creating LD environment variable: /home/jenkins/.conan2/p/andro1d3264d3db6a1/p/toolchains/llvm/prebuilt/linux-x86_64/bin/ld
android_ndk/r25c@microblink/stable: Creating AR environment variable: /home/jenkins/.conan2/p/andro1d3264d3db6a1/p/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar
android_ndk/r25c@microblink/stable: Creating AS environment variable: /home/jenkins/.conan2/p/andro1d3264d3db6a1/p/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-as
android_ndk/r25c@microblink/stable: Creating RANLIB environment variable: /home/jenkins/.conan2/p/andro1d3264d3db6a1/p/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib
android_ndk/r25c@microblink/stable: Creating STRIP environment variable: /home/jenkins/.conan2/p/andro1d3264d3db6a1/p/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip
android_ndk/r25c@microblink/stable: Creating ADDR2LINE environment variable: /home/jenkins/.conan2/p/andro1d3264d3db6a1/p/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-addr2line
android_ndk/r25c@microblink/stable: Creating NM environment variable: /home/jenkins/.conan2/p/andro1d3264d3db6a1/p/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-nm
android_ndk/r25c@microblink/stable: Creating OBJCOPY environment variable: /home/jenkins/.conan2/p/andro1d3264d3db6a1/p/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-objcopy
android_ndk/r25c@microblink/stable: Creating OBJDUMP environment variable: /home/jenkins/.conan2/p/andro1d3264d3db6a1/p/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-objdump
android_ndk/r25c@microblink/stable: Creating READELF environment variable: /home/jenkins/.conan2/p/andro1d3264d3db6a1/p/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-readelf
boost/1.80@nenad/testing: Already installed! (4 of 53)
cmake_build/0.1.0@nenad/testing: Already installed! (5 of 53)
nlohmann_json/3.10.4: Already installed! (6 of 53)
range-v3/0.12.0: Already installed! (7 of 53)
version_and_paths/0.1.0@nenad/testing: Already installed! (8 of 53)
concurrent_queue/0.1.0@nenad/testing: Already installed! (9 of 53)
libbacktrace/cci.20210118: Already installed! (10 of 53)

-------- Installing package libbacktrace/cci.20210118 (11 of 53) --------
libbacktrace/cci.20210118: Building from source
libbacktrace/cci.20210118: Package libbacktrace/cci.20210118:8d4455ce70884ca03fcc6d108c197cdbacfe5775
libbacktrace/cci.20210118: Copying sources to build folder
libbacktrace/cci.20210118: Building your package in /home/jenkins/.conan2/p/b/libba5b588ccef091f/b
libbacktrace/cci.20210118: Calling generate()
libbacktrace/cci.20210118: Generators folder: /home/jenkins/.conan2/p/b/libba5b588ccef091f/b/build-devrelease/conan
ERROR: libbacktrace/cci.20210118: Error in generate() method, line 72
	tc = AutotoolsToolchain(self)
	ConanException: Unknown 'x86_64_haswell' machine, Conan doesn't know how to translate it to the GNU triplet, please report at  https://github.com/conan-io/conan/issues
@DoDoENT
Copy link
Contributor Author

DoDoENT commented Aug 4, 2023

OK, sorry, it's not a conan bug after all. This was due to configure script being called like

||  > "/Users/dodo/.conan2/p/b/libbaf371f0fbf4071/b/src/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 

(on mac, and conan doesn't know how to translate x86_64_haswell to --build flag on linux). For cmake, I could define tools.cmake.cmaketoolchain:system_processor = x86_64 for my x86_64_haswell arch, but I see no equivalent for autotools.

I guess, I'll have to use generic x86_64 instead of haswell-optimized builds for build contexts when cross-compiling for Android and Emscripten.

@DoDoENT DoDoENT closed this as completed Aug 4, 2023
@DoDoENT
Copy link
Contributor Author

DoDoENT commented Aug 4, 2023

OK, I just discovered that there is tools.gnu:host_triplet conf option, but it's ignored for build contexts, as can be seen from this code - the AutotoolsToolchain consults tools.gnu:host_triplet for host context, but not for build context, and instead just tries to detect automatically in the build context, which fails because I've set a custom CPU architecture for my build system (x86_64_haswell).

This now brings into the context my recent question about being able to control conf for both host and build contexts.

@DoDoENT DoDoENT reopened this Aug 4, 2023
@DoDoENT DoDoENT changed the title [bug] Build context flags leak into the host context for autotools generator [bug] tools.gnu:host_triplet ignored for build context Aug 4, 2023
@ErniGH ErniGH self-assigned this Apr 10, 2024
@ErniGH
Copy link
Contributor

ErniGH commented Apr 10, 2024

OK, I just discovered that there is tools.gnu:host_triplet conf option, but it's ignored for build contexts, as can be seen from this code - the AutotoolsToolchain consults tools.gnu:host_triplet for host context, but not for build context, and instead just tries to detect automatically in the build context, which fails because I've set a custom CPU architecture for my build system (x86_64_haswell).

This now brings into the context my recent question about being able to control conf for both host and build contexts.

This was fixed at #15965. Now you can use the tools.gnu:build_triplet as well.
Thanks for your feed back 😄

@ErniGH ErniGH closed this as completed Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants