Skip to content

Conversation

@helmutg
Copy link

@helmutg helmutg commented Dec 11, 2025

g-ir-scanner emits architecture-dependent information. In a cross build, using the native one cannot work as it cannot use the host libraries it is supposed to inspect. While the host's g-ir-scanner might have the same problem, some distributions such as Debian provide a wrapper that employs qemu and report it from the host's .pc file. Other distributions also have such a wrapper but tend to inject it via the crossfile.

Link: https://bugs.debian.org/1060838

g-ir-scanner emits architecture-dependent information. In a cross build,
using the native one cannot work as it cannot use the host libraries it
is supposed to inspect. While the host's g-ir-scanner might have the
same problem, some distributions such as Debian provide a wrapper that
employs qemu and report it from the host's .pc file. Other distributions
also have such a wrapper but tend to inject it via the crossfile.

Link: https://bugs.debian.org/1060838
@helmutg helmutg requested a review from jpakkane as a code owner December 11, 2025 15:31
@helmutg
Copy link
Author

helmutg commented Dec 11, 2025

I looked at the linux / Gentoo and linux / Ubuntu Rolling and both of them contain a http/503.

Copy link
Member

@eli-schwartz eli-schwartz left a comment

Choose a reason for hiding this comment

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

Since the scanner exists in the same domain as a C/C++ compiler it seems like obviously a bug to look it up using the wrong machine, and can't ever work.

Making it work for the first time on correctly configured systems, and making the failure detectable at setup time for incorrectly configured systems, seems like a very good idea.

@eli-schwartz eli-schwartz added this to the 1.10.1 milestone Dec 11, 2025
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

Successfully merging this pull request may close these issues.

2 participants