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

protobuf 25.2 broken for cross compiles #1856

Open
julianneswinoga opened this issue Jan 8, 2025 · 2 comments
Open

protobuf 25.2 broken for cross compiles #1856

julianneswinoga opened this issue Jan 8, 2025 · 2 comments

Comments

@julianneswinoga
Copy link

A simple

project('my_project', 'cpp')

protoc = subproject('protobuf').get_variable('protoc')

while cross compiling, gives the error:

subprojects/protobuf-25.2/src/meson.build:29:18: ERROR: Tried to tied to mix a host machine library ("absl_base") with a build machine target "protoc-native" This is not possible in a cross build.

Full repository: julianneswinoga/meson_protobuf_bug
Full logs: meson-log.txt

@bgilbert
Copy link
Contributor

bgilbert commented Jan 8, 2025

It's not relevant to the actual bug here, but mesonbuild/meson#14097 cleans up the text of the error message.

@julianneswinoga
Copy link
Author

I've found mesonbuild/meson/issues/11121
Even if meson doesn't fully support cross-compiled subprojects, does it really not have any way of specifying (in this case) that abseil-cpp should only use the build machine toolchain...?

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

No branches or pull requests

2 participants