You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DISCLAIMER: GnuToolchain is not documented yet and is considered under incubating state.
Describe the bug
Description
When trying to consume a Conan package using the GnuToolchain and the host profile is cross-building, the Conan client breaks with:
ERROR: Error in generator 'GnuToolchain': 'ConanFile' object has no attribute 'conf_build'
Environment
Conan version: 2.11.0
OS: GNU Linux 6.8.0
Linux Distro: Linux Mint 21.3 Virginia
Python: 3.12
Steps to reproduce
Prepare a cross-build environment
In my case, I downloaded directly from ARM page: https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads. But it's not really needed, in case using a minimal Linux distribution, you still can use the system package manager to install a cross-toolchain
Adapt your profile to use your toolchain
I created a separate Conan profile to build, but you can see it in the log below.
Try to install zlib/1.3.1 using this new profile and with GnuToolchain. It also works for any other package.
DISCLAIMER: GnuToolchain is not documented yet and is considered under incubating state.
Describe the bug
Description
When trying to consume a Conan package using the
GnuToolchain
and the host profile is cross-building, the Conan client breaks with:Environment
Conan version: 2.11.0
OS: GNU Linux 6.8.0
Linux Distro: Linux Mint 21.3 Virginia
Python: 3.12
Steps to reproduce
In my case, I downloaded directly from ARM page: https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads. But it's not really needed, in case using a minimal Linux distribution, you still can use the system package manager to install a cross-toolchain
I created a separate Conan profile to build, but you can see it in the log below.
Try to install zlib/1.3.1 using this new profile and with GnuToolchain. It also works for any other package.
conan install -r conancenter --requires=zlib/1.3.1 -pr armv8 -g GnuToolchain
Issues logs
This log represents my environment, including the profile used and target package.
How to reproduce it
No response
The text was updated successfully, but these errors were encountered: