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

How to cross-compile conda package with local crosstool-ng compiler? #5584

Open
hpckurt opened this issue Jan 14, 2025 · 0 comments
Open

How to cross-compile conda package with local crosstool-ng compiler? #5584

hpckurt opened this issue Jan 14, 2025 · 0 comments
Labels
source::community catch-all for issues filed by community members type::bug describes erroneous operation, use severity::* to classify the type

Comments

@hpckurt
Copy link

hpckurt commented Jan 14, 2025

I'm trying to cross-compile some conda packages to an unsupported platform (linux-ppc) and running into an issue with the compilers.

As an example, I'm starting with bzip2: https://github.com/conda-forge/bzip2-feedstock

I've added a conda_build_config.yaml file with the following:

c_compiler:
  - powerpc-espresso-linux-gnu-gcc
target_platform:
  - linux-ppc

However, it always results in the following error:

Encountered problems while solving:
  - nothing provides requested c_linux-ppc
  - nothing provides requested powerpc-espresso-linux-gnu-gcc_linux-ppc

While it's true that c_linux-ppc doesn't exist, powerpc-espresso-linux-gnu-gcc_linux-ppc does exist on the local system:

$ powerpc-espresso-linux-gnu-gcc_linux-ppc --version
powerpc-espresso-linux-gnu-gcc_linux-ppc (crosstool-NG 1.26.0) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I assume this error is showing up because it's trying to pull powerpc-espresso-linux-gnu-gcc_linux-ppc from a conda repo. How do I force conda-build to use a local compiler?

Any help is appreciated!

@github-project-automation github-project-automation bot moved this to 🆕 New in 🧭 Planning Jan 14, 2025
@travishathaway travishathaway added source::community catch-all for issues filed by community members type::bug describes erroneous operation, use severity::* to classify the type labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source::community catch-all for issues filed by community members type::bug describes erroneous operation, use severity::* to classify the type
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants