-
Notifications
You must be signed in to change notification settings - Fork 377
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
pkgconfig search path not defined for arm-unknown-linux-gnueabihf #1316
Comments
I dont see any harm adding it back in. The reasoning was that it wouldnt be needed anymore, but I suppose that is not true if you're certain the library you retrieved with apt is armv6. |
Ahh right yes of course, that does make sense. I forgot entirely that most don't install new packages on this platform. Would a PR be welcome for this? Otherwise I'm happy enough setting this in my own extra dockerfile. |
1317: Re-add PKG_CONFIG_PATH for armhf image r=Emilgardis a=kingosticks It doesn't hurt to have this also defined for arm-unknown-linux-gnueabihf despite apt package installation being disabled by default for this platform. Fixes #1316 Co-authored-by: Nick Steel <nick@nsteel.co.uk>
Thanks! To now make use of this, is there a nightly image tag, or something ? |
Ideally you'd be able to use it straight away, but thanks to #1208 I'm not able to merge prs where they build new main/edge images as they'd fail. But, we have a weekly CI job that does it, I've trigger it now https://github.com/cross-rs/cross/actions/runs/5954326633 |
Thanks so much. Will take it for a spin. |
hi, I'm having the same issue using the latest ** https://github.com/cross-rs/cross/pkgs/container/aarch64-unknown-linux-gnu |
Checklist
Describe your issue
I'm trying to cross-compile with arm-unknown-linux-gnueabihf and hitting a pkgconfig search path issue.
If I login to the container I can see the .pc files exist but
PKG_CONFIG_PATH
isn't set. If I manually set it to "/usr/lib/arm-linux-gnueabihf/pkgconfig", mycargo build
completes successfully. Looking at the docker images at cross/docker, everything except Dockerfile.arm-unknown-linux-gnueabihfis setting
PKG_CONFIG_PATH
. It was briefly added (strangely to to path /usr/lib/usr/arm-linux-gnueabihf/pkgconfig), only to be removed shortly afterwards.Was setting
PKG_CONFIG_PATH
supposed to be reverted like this? If so, how ispkg-config
supposed to work in arm-unknown-linux-gnueabihf ?What target(s) are you cross-compiling for?
arm-unknown-linux-gnueabihf
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.5 (37c681a 2023-07-17)
Example
Cross.toml
git clone --depth 1 -b main https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
cd gst-plugins-rs
CROSS_CONFIG=/path/to/Cross.toml cross build --target arm-unknown-linux-gnueabihf --package gst-plugin-spotify
Additional information / notes
It builds with the other arm targets, for example
armv7-unknown-linux-gnueabihf
.The text was updated successfully, but these errors were encountered: