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

Add arm-gnu-toolchain #17528

Open
wants to merge 62 commits into
base: master
Choose a base branch
from
Open

Add arm-gnu-toolchain #17528

wants to merge 62 commits into from

Conversation

kammce
Copy link
Contributor

@kammce kammce commented May 11, 2023

Specify library name and version:

- arm-gnu-toolchain/11.3.0
- arm-gnu-toolchain/12.2.0

New addition to ConanCenter.

The author of the toolchain binaries is ARM inc. Original files can be found here:
https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads

Makes the bare metal ARM GCC toolchain accessible via "tool_requires" for bare metal projects.


@CLAassistant
Copy link

CLAassistant commented May 11, 2023

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ danimtb
✅ kammce
❌ Khalil Estell


Khalil Estell seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit 40e5b66
gnu-arm-embedded-toolchain/12.2.0
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './bin/lib/bfd-plugins/libdep.so' links to system library 'dl' but it is not in cpp_info.system_libs.

Copy link
Contributor

@jwillikers jwillikers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work. We use a similar package at my work. I wasn't sure if it would be worth waiting for a general GCC package built from source, because then we could use that to build such a package. I don't think that recipe is configurable enough for this yet, and who knows how long that might take. Having a package for the Arm GNU toolchain has been really helpful and having it on Conan Center should make things even easier for embedded development.

recipes/gnu-arm-embedded-toolchain/all/conandata.yml Outdated Show resolved Hide resolved
recipes/gnu-arm-embedded-toolchain/all/conanfile.py Outdated Show resolved Hide resolved
recipes/gnu-arm-embedded-toolchain/all/conanfile.py Outdated Show resolved Hide resolved
recipes/gnu-arm-embedded-toolchain/all/toolchain.cmake Outdated Show resolved Hide resolved
recipes/gnu-arm-embedded-toolchain/all/conanfile.py Outdated Show resolved Hide resolved
recipes/gnu-arm-embedded-toolchain/all/conanfile.py Outdated Show resolved Hide resolved
recipes/gnu-arm-embedded-toolchain/all/toolchain.cmake Outdated Show resolved Hide resolved
recipes/gnu-arm-embedded-toolchain/all/toolchain.cmake Outdated Show resolved Hide resolved
@kammce kammce changed the title Add gnu-arm-embedded-toolchain Add ArmGnutoolchain May 12, 2023
@kammce kammce changed the title Add ArmGnutoolchain Add arm-gnu-toolchain May 12, 2023
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit e1bc123
arm-gnu-toolchain/12.2.1
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './bin/lib/bfd-plugins/libdep.so' links to system library 'dl' but it is not in cpp_info.system_libs.
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/w/prod/BuildSingleReference/.conan/data/arm-gnu-toolchain/12.2.1/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./res/toolchain.cmake

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit c686510
arm-gnu-toolchain/12.2.1
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/Users/jenkins/w/prod/BuildSingleReference@3/.conan/data/arm-gnu-toolchain/12.2.1/_/_/package/a5ad5696abf650a25eea8f377806b3d5fe234e6e/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./res/toolchain.cmake

@kammce
Copy link
Contributor Author

kammce commented May 20, 2023

Conan v1 pipeline ❌

Failure in build 13 (c686510fe1667fddebb29027a28c0599aebbeac1):

  • arm-gnu-toolchain/12.2.1@:
    CI failed to create some packages (All logs)
    Logs for packageID a5ad5696abf650a25eea8f377806b3d5fe234e6e:

    [settings]
    arch=armv8
    build_type=Release
    compiler=apple-clang
    compiler.libcxx=libc++
    compiler.version=13.0
    os=Macos
    
    [...]
    [env]
    [conf]
    tools.system.package_manager:mode=install
    tools.system.package_manager:sudo=True
    tools.apple:sdk_path=/Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
    
    arm-gnu-toolchain/12.2.1 (test package): Installing package
    Requirements
        arm-gnu-toolchain/12.2.1 from local cache - Cache
    Packages
        arm-gnu-toolchain/12.2.1:a5ad5696abf650a25eea8f377806b3d5fe234e6e - Cache
    
    Cross-build from 'Macos:x86_64' to 'Macos:armv8'
    Installing (downloading, building) binaries...
    arm-gnu-toolchain/12.2.1: Already installed!
    arm-gnu-toolchain/12.2.1 (test package): Generator 'VirtualBuildEnv' calling 'generate()'
    arm-gnu-toolchain/12.2.1 (test package): Generator 'CMakeToolchain' calling 'generate()'
    arm-gnu-toolchain/12.2.1 (test package): Preset 'release' added to CMakePresets.json. Invoke it manually using 'cmake --preset release'
    arm-gnu-toolchain/12.2.1 (test package): If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake <path> -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=/Users/jenkins/w/prod/BuildSingleReference@3/cci-aeda1cc0/recipes/arm-gnu-toolchain/all/test_v1_package/build/952c770f7b0a1c0ec0ac98ce7d64e32207bd0ce7/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release'
    arm-gnu-toolchain/12.2.1 (test package): Generator txt created conanbuildinfo.txt
    arm-gnu-toolchain/12.2.1 (test package): Generator 'CMakeDeps' calling 'generate()'
    arm-gnu-toolchain/12.2.1 (test package): Aggregating env generators
    arm-gnu-toolchain/12.2.1 (test package): Generated conaninfo.txt
    arm-gnu-toolchain/12.2.1 (test package): Generated graphinfo
    Using lockfile: '/Users/jenkins/w/prod/BuildSingleReference@3/cci-aeda1cc0/recipes/arm-gnu-toolchain/all/test_v1_package/build/952c770f7b0a1c0ec0ac98ce7d64e32207bd0ce7/conan.lock'
    Using cached profile from lockfile
    [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not found
    [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK
    arm-gnu-toolchain/12.2.1 (test package): Calling build()
    
    ----Running------
    > . "/Users/jenkins/w/prod/BuildSingleReference@3/cci-aeda1cc0/recipes/arm-gnu-toolchain/all/test_v1_package/build/952c770f7b0a1c0ec0ac98ce7d64e32207bd0ce7/conanbuild.sh" && cd '/Users/jenkins/w/prod/BuildSingleReference@3/cci-aeda1cc0/recipes/arm-gnu-toolchain/all/test_v1_package/build/952c770f7b0a1c0ec0ac98ce7d64e32207bd0ce7' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_SYSTEM_NAME="Darwin" -DCONAN_IN_LOCAL_CACHE="OFF" -DCONAN_COMPILER="apple-clang" -DCONAN_COMPILER_VERSION="13.0" -DCONAN_LIBCXX="libc++" -DCMAKE_INSTALL_PREFIX="/Users/jenkins/w/prod/BuildSingleReference@3/cci-aeda1cc0/recipes/arm-gnu-toolchain/all/test_v1_package/build/952c770f7b0a1c0ec0ac98ce7d64e32207bd0ce7/package" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_PREFIX_PATH="/Users/jenkins/w/prod/BuildSingleReference@3/cci-aeda1cc0/recipes/arm-gnu-toolchain/all/test_v1_package/build/952c770f7b0a1c0ec0ac98ce7d64e32207bd0ce7" -DCMAKE_MODULE_PATH="/Users/jenkins/w/prod/BuildSingleReference@3/cci-aeda1cc0/recipes/arm-gnu-toolchain/all/test_v1_package/build/952c770f7b0a1c0ec0ac98ce7d64e32207bd0ce7" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -Wno-dev '/Users/jenkins/w/prod/BuildSingleReference@3/cci-aeda1cc0/recipes/arm-gnu-toolchain/all/test_v1_package'
    -----------------
    -- The CXX compiler identification is unknown
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - failed
    -- Configuring incomplete, errors occurred!
    See also "/Users/jenkins/w/prod/BuildSingleReference@3/cci-aeda1cc0/recipes/arm-gnu-toolchain/all/test_v1_package/build/952c770f7b0a1c0ec0ac98ce7d64e32207bd0ce7/CMakeFiles/CMakeOutput.log".
    See also "/Users/jenkins/w/prod/BuildSingleReference@3/cci-aeda1cc0/recipes/arm-gnu-toolchain/all/test_v1_package/build/952c770f7b0a1c0ec0ac98ce7d64e32207bd0ce7/CMakeFiles/CMakeError.log".
    CMake Error at CMakeLists.txt:18 (target_compile_features):
      target_compile_features no known features for CXX compiler
    
      ""
    
      version .
    
    
    ERROR: arm-gnu-toolchain/12.2.1 (test package): Error in build() method, line 14
    	cmake.configure()
    	ConanException: Error 1 while executing cd '/Users/jenkins/w/prod/BuildSingleReference@3/cci-aeda1cc0/recipes/arm-gnu-toolchain/all/test_v1_package/build/952c770f7b0a1c0ec0ac98ce7d64e32207bd0ce7' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_SYSTEM_NAME="Darwin" -DCONAN_IN_LOCAL_CACHE="OFF" -DCONAN_COMPILER="apple-clang" -DCONAN_COMPILER_VERSION="13.0" -DCONAN_LIBCXX="libc++" -DCMAKE_INSTALL_PREFIX="/Users/jenkins/w/prod/BuildSingleReference@3/cci-aeda1cc0/recipes/arm-gnu-toolchain/all/test_v1_package/build/952c770f7b0a1c0ec0ac98ce7d64e32207bd0ce7/package" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_PREFIX_PATH="/Users/jenkins/w/prod/BuildSingleReference@3/cci-aeda1cc0/recipes/arm-gnu-toolchain/all/test_v1_package/build/952c770f7b0a1c0ec0ac98ce7d64e32207bd0ce7" -DCMAKE_MODULE_PATH="/Users/jenkins/w/prod/BuildSingleReference@3/cci-aeda1cc0/recipes/arm-gnu-toolchain/all/test_v1_package/build/952c770f7b0a1c0ec0ac98ce7d64e32207bd0ce7" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -Wno-dev '/Users/jenkins/w/prod/BuildSingleReference@3/cci-aeda1cc0/recipes/arm-gnu-toolchain/all/test_v1_package'
    
  • arm-gnu-toolchain/11.3.0@:
    Didn't run or was cancelled before finishing

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

Conan v2 pipeline ❌

Note: Conan v2 builds may be required once they are on the v2 ready list

The v2 pipeline failed. Please, review the errors and note this will be required for pull requests to be merged in the near future.

See details:
Failure in build 13 (c686510fe1667fddebb29027a28c0599aebbeac1):

  • arm-gnu-toolchain/11.3.0@:
    Didn't run or was cancelled before finishing

  • arm-gnu-toolchain/12.2.1@:
    CI failed to create some packages (All logs)
    Logs for packageID 522dcea5982a3f8a5b624c16477e47195da2f84f:

    [settings]
    arch=x86_64
    build_type=Release
    compiler=msvc
    compiler.cppstd=14
    compiler.runtime=dynamic
    compiler.runtime_type=Release
    compiler.version=192
    os=Windows
    
    [...]
    build_type=Release
    compiler=msvc
    compiler.cppstd=14
    compiler.runtime=dynamic
    compiler.runtime_type=Release
    compiler.version=192
    os=Windows
    [conf]
    tools.system.package_manager:mode=install
    tools.system.package_manager:sudo=True
    
    
    ======== Computing dependency graph ========
    Graph root
        cli
    Requirements
        arm-gnu-toolchain/12.2.1#55447aecef04629865c5c9726784d5ac - Cache
    
    ======== Computing necessary packages ========
    arm-gnu-toolchain/12.2.1: Forced build from source
    Requirements
        arm-gnu-toolchain/12.2.1#55447aecef04629865c5c9726784d5ac:522dcea5982a3f8a5b624c16477e47195da2f84f - Build
    
    ======== Installing packages ========
    arm-gnu-toolchain/12.2.1: Calling source() in C:\J\w\prod-v2\BuildSingleReference@2\p\arm-gb753c0d6403c0\s
    
    -------- Installing package arm-gnu-toolchain/12.2.1 (1 of 1) --------
    arm-gnu-toolchain/12.2.1: Building from source
    arm-gnu-toolchain/12.2.1: Package arm-gnu-toolchain/12.2.1:522dcea5982a3f8a5b624c16477e47195da2f84f
    arm-gnu-toolchain/12.2.1: Copying sources to build folder
    arm-gnu-toolchain/12.2.1: Building your package in C:\J\w\prod-v2\BuildSingleReference@2\p\t\arm-g62233d1b2e36b\b
    arm-gnu-toolchain/12.2.1: Generating aggregated env files
    arm-gnu-toolchain/12.2.1: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
    arm-gnu-toolchain/12.2.1: Calling build()
    Downloading arm-gnu-toolchain-12.2.rel1-mingw-w64-i686-arm-none-eabi.zip
    arm-gnu-toolchain/12.2.1: Unzipping 1.25GB, this can take a while
    
    arm-gnu-toolchain/12.2.1: ERROR: 
    Package '522dcea5982a3f8a5b624c16477e47195da2f84f' build failed
    arm-gnu-toolchain/12.2.1: WARN: Build folder C:\J\w\prod-v2\BuildSingleReference@2\p\t\arm-g62233d1b2e36b\b
    *********************************************************
    Recipe 'arm-gnu-toolchain/12.2.1' cannot build its binary
    It is possible that this recipe is not Conan 2.0 ready
    If the recipe comes from ConanCenter check: https://conan.io/cci-v2.html
    If it is your recipe, check if it is updated to 2.0
    *********************************************************
    
    ERROR: arm-gnu-toolchain/12.2.1: Error in build() method, line 57
    	urllib.request.urlretrieve(self.license_url, "LICENSE")
    	URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)>
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

The error is

ERROR: arm-gnu-toolchain/12.2.1: Error in build() method, line 57
	urllib.request.urlretrieve(self.license_url, "LICENSE")
	URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)>

Hmmm not sure why this is happening. @memsharded @jwillikers, may I simply download the license to the recipe folder and copy it from source from the all directory.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit aa783a8
arm-gnu-toolchain/11.3.0@#55b37cf2ef2320f2666e0dd4f5d381f3
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './bin/lib/bfd-plugins/libdep.so' links to system library 'dl' but it is not in cpp_info.system_libs.
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/w/prod-v1/BuildSingleReference/.conan/data/arm-gnu-toolchain/11.3.0/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./res/toolchain.cmake

@kammce
Copy link
Contributor Author

kammce commented Aug 25, 2023

Hmmm, back up against the build issue, where CMake cannot figure out which compiler to use. 🤔

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit 5ccd502
arm-gnu-toolchain/11.3.0@#e134474fe526c27b6da13dc4f300f6f1
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './bin/lib/bfd-plugins/libdep.so' links to system library 'dl' but it is not in cpp_info.system_libs.
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/w/prod-v1/BuildSingleReference/.conan/data/arm-gnu-toolchain/11.3.0/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./res/toolchain.cmake

@kammce
Copy link
Contributor Author

kammce commented Aug 25, 2023

For now, I'll table working on this PR until I get some help from the conan team for how to make this toolchain work with CCI. I'm probably doing something incorrectly, but it looks like the "correct" way of doing things does not work, and I'm just throwing stuff at the wall hoping it works.

Conan 1.x's CMake invocation seems to miss the user toolchain file and simply selects the wrong compiler.
Conan 2.x's CMake invocation seems to use flags based on the host's machine. We may have to wait until the arm baremetal settings are added to conan and CCI uses them for their builds. I forget the issue number, but I do recall that @jwillikers made the issue.

@kammce
Copy link
Contributor Author

kammce commented Aug 25, 2023

One more thing to add. Technically the toolchains shouldn't work for ANY of the CCI's build targets because this is a cross compiler. So the toolchain in the test_package is just there to prove that the compiler is available in the virtual environment. Once Conan has support for bare metal arm cortex targets then we can update the test package to reject builds projects that do not target baremetal arm cortex M processors.

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit c6bc92c
arm-gnu-toolchain/11.3.0@#e134474fe526c27b6da13dc4f300f6f1
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './bin/lib/bfd-plugins/libdep.so' links to system library 'dl' but it is not in cpp_info.system_libs.
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/w/prod-v1/BuildSingleReference/.conan/data/arm-gnu-toolchain/11.3.0/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./res/toolchain.cmake

@stale
Copy link

stale bot commented Oct 15, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 15, 2023
@kammce
Copy link
Contributor Author

kammce commented Oct 16, 2023

Poke, still working on this, but have been busy with life.

@stale stale bot removed the stale label Oct 16, 2023
Conan's adds host side flags to the conan_toolchain.cmake file which
interferes with arm-none-eabi-g++. To fix this, we set CMAKE_CXX_FLAGS
to an empty string, then provide target specific flags to the
executable.
@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 20 (e7ae67e94343e1b2c80e7b4688434cc06fc42f2d):

  • arm-gnu-toolchain/11.3.0:
    CI failed to create some packages (All logs)

    Logs for packageID 4db1be536558d833e52e862fd84d64d75c2b3656:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    
    [...]
    arm-gnu-toolchain/11.3.0 (test package): If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake <path> -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=/home/conan/w/prod-v1/bsr/cci-6152444b/recipes/arm-gnu-toolchain/all/test_package/build/Release/generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release'
    arm-gnu-toolchain/11.3.0 (test package): Aggregating env generators
    arm-gnu-toolchain/11.3.0 (test package): Generated conaninfo.txt
    arm-gnu-toolchain/11.3.0 (test package): Generated graphinfo
    Using lockfile: '/home/conan/w/prod-v1/bsr/cci-6152444b/recipes/arm-gnu-toolchain/all/test_package/build/Release/generators/conan.lock'
    Using cached profile from lockfile
    [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not found
    [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK
    arm-gnu-toolchain/11.3.0 (test package): Calling build()
    arm-gnu-toolchain/11.3.0 (test package): CMake command: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/conan/w/prod-v1/bsr/cci-6152444b/recipes/arm-gnu-toolchain/all/test_package/build/Release/generators/conan_toolchain.cmake" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/conan/w/prod-v1/bsr/cci-6152444b/recipes/arm-gnu-toolchain/all/test_package/."
    
    ----Running------
    > . "/home/conan/w/prod-v1/bsr/cci-6152444b/recipes/arm-gnu-toolchain/all/test_package/build/Release/generators/conanbuild.sh" && cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/conan/w/prod-v1/bsr/cci-6152444b/recipes/arm-gnu-toolchain/all/test_package/build/Release/generators/conan_toolchain.cmake" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/conan/w/prod-v1/bsr/cci-6152444b/recipes/arm-gnu-toolchain/all/test_package/."
    -----------------
    -- Using Conan toolchain: /home/conan/w/prod-v1/bsr/cci-6152444b/recipes/arm-gnu-toolchain/all/test_package/build/Release/generators/conan_toolchain.cmake
    -- The CXX compiler identification is GNU 11.1.0
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/local/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Configuring done (1.6s)
    -- Generating done (0.0s)
    -- Build files have been written to: /home/conan/w/prod-v1/bsr/cci-6152444b/recipes/arm-gnu-toolchain/all/test_package/build/Release
    arm-gnu-toolchain/11.3.0 (test package): CMake command: cmake --build "/home/conan/w/prod-v1/bsr/cci-6152444b/recipes/arm-gnu-toolchain/all/test_package/build/Release" '--' '-j3'
    
    ----Running------
    > . "/home/conan/w/prod-v1/bsr/cci-6152444b/recipes/arm-gnu-toolchain/all/test_package/build/Release/generators/conanbuild.sh" && cmake --build "/home/conan/w/prod-v1/bsr/cci-6152444b/recipes/arm-gnu-toolchain/all/test_package/build/Release" '--' '-j3'
    -----------------
    [ 50%] Building CXX object CMakeFiles/test_package.dir/main.cpp.o
    CMakeFiles/test_package.dir/build.make:75: recipe for target 'CMakeFiles/test_package.dir/main.cpp.o' failed
    CMakeFiles/Makefile2:82: recipe for target 'CMakeFiles/test_package.dir/all' failed
    Makefile:90: recipe for target 'all' failed
    CMake Warning:
      Manually-specified variables were not used by the project:
    
        CMAKE_POLICY_DEFAULT_CMP0091
    
    
    c++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
    c++: fatal error: cannot read spec file 'nosys.specs': No such file or directory
    compilation terminated.
    make[2]: *** [CMakeFiles/test_package.dir/main.cpp.o] Error 1
    make[1]: *** [CMakeFiles/test_package.dir/all] Error 2
    make: *** [all] Error 2
    arm-gnu-toolchain/11.3.0 (test package): WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    arm-gnu-toolchain/11.3.0 (test package): WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    ERROR: arm-gnu-toolchain/11.3.0 (test package): Error in build() method, line 19
    	cmake.build()
    	ConanException: Error 2 while executing cmake --build "/home/conan/w/prod-v1/bsr/cci-6152444b/recipes/arm-gnu-toolchain/all/test_package/build/Release" '--' '-j3'
    
  • arm-gnu-toolchain/12.2.1:
    Didn't run or was cancelled before finishing

  • arm-gnu-toolchain/12.3.1:
    Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline ❌

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 20 (e7ae67e94343e1b2c80e7b4688434cc06fc42f2d):

  • arm-gnu-toolchain/12.2.1:
    Didn't run or was cancelled before finishing

  • arm-gnu-toolchain/11.3.0:
    CI failed to create some packages (All logs)

    Logs for packageID 63fead0844576fc02943e16909f08fcdddd6f44b:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.cppstd=17
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    
    [...]
    arm-gnu-toolchain/11.3.0 (test package): Generator 'CMakeToolchain' calling 'generate()'
    arm-gnu-toolchain/11.3.0 (test package): CMakeToolchain generated: conan_toolchain.cmake
    arm-gnu-toolchain/11.3.0 (test package): CMakeToolchain generated: CMakePresets.json
    arm-gnu-toolchain/11.3.0 (test package): CMakeToolchain generated: ../../../CMakeUserPresets.json
    arm-gnu-toolchain/11.3.0 (test package): Generating aggregated env files
    arm-gnu-toolchain/11.3.0 (test package): Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
    
    ======== Testing the package: Building ========
    arm-gnu-toolchain/11.3.0 (test package): Calling build()
    arm-gnu-toolchain/11.3.0 (test package): Running CMake.configure()
    arm-gnu-toolchain/11.3.0 (test package): RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/conan/w/prod-v2/bsr/cci-a5ea37ab/recipes/arm-gnu-toolchain/all/test_package/build/gcc-11-x86_64-17-release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/conan/w/prod-v2/bsr/cci-a5ea37ab/recipes/arm-gnu-toolchain/all/test_package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/conan/w/prod-v2/bsr/cci-a5ea37ab/recipes/arm-gnu-toolchain/all/test_package"
    -- Using Conan toolchain: /home/conan/w/prod-v2/bsr/cci-a5ea37ab/recipes/arm-gnu-toolchain/all/test_package/build/gcc-11-x86_64-17-release/generators/conan_toolchain.cmake
    -- Conan toolchain: C++ Standard 17 with extensions OFF
    -- The CXX compiler identification is GNU 11.3.1
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - failed
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Configuring done (0.4s)
    -- Generating done (0.0s)
    CMake Warning:
      Manually-specified variables were not used by the project:
    
        CMAKE_POLICY_DEFAULT_CMP0091
    
    
    -- Build files have been written to: /home/conan/w/prod-v2/bsr/cci-a5ea37ab/recipes/arm-gnu-toolchain/all/test_package/build/gcc-11-x86_64-17-release
    
    arm-gnu-toolchain/11.3.0 (test package): Running CMake.build()
    arm-gnu-toolchain/11.3.0 (test package): RUN: cmake --build "/home/conan/w/prod-v2/bsr/cci-a5ea37ab/recipes/arm-gnu-toolchain/all/test_package/build/gcc-11-x86_64-17-release" -- -j3
    [ 50%] Building CXX object CMakeFiles/test_package.dir/main.cpp.obj
    [100%] Linking CXX executable test_package
    arm-none-eabi-g++: error: unrecognized command-line option '-m64'
    CMakeFiles/test_package.dir/build.make:96: recipe for target 'test_package' failed
    make[2]: *** [test_package] Error 1
    CMakeFiles/Makefile2:82: recipe for target 'CMakeFiles/test_package.dir/all' failed
    make[1]: *** [CMakeFiles/test_package.dir/all] Error 2
    Makefile:90: recipe for target 'all' failed
    make: *** [all] Error 2
    
    *********************************************************
    Recipe 'arm-gnu-toolchain/11.3.0 (test package)' cannot build its binary
    It is possible that this recipe is not Conan 2.0 ready
    If the recipe comes from ConanCenter, report it at https://github.com/conan-io/conan-center-index/issues
    If it is your recipe, check if it is updated to 2.0
    *********************************************************
    
    ERROR: arm-gnu-toolchain/11.3.0 (test package): Error in build() method, line 19
    	cmake.build()
    	ConanException: Error 2 while executing
    
  • arm-gnu-toolchain/12.3.1:
    Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit e7ae67e
arm-gnu-toolchain/11.3.0@#f1dd6f95190583c1f14d70a2ade8212b
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './bin/lib/bfd-plugins/libdep.so' links to system library 'dl' but it is not in cpp_info.system_libs.
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/w/prod-v1/bsr/29653/ddfee/.conan/data/arm-gnu-toolchain/11.3.0/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./res/toolchain.cmake

@kammce
Copy link
Contributor Author

kammce commented Oct 18, 2023

I need to relax my checks so more profiles can be accepted. But something weird about the one that did run is that the package isn't set as a tool/build package. It's set as a normal package. This could explain why the arm GCC compiler isn't getting selected in the test package and is, instead, using the default system compiler. This seems to be a bug.

Copy link
Contributor

github-actions bot commented Apr 2, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Apr 2, 2024
@jwillikers
Copy link
Contributor

Not stale.

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 this pull request may close these issues.

7 participants