-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
pkgsCross.armv7l-hf-multiplatform.talloc fails to build on aarch64 #63043
Comments
Weirdly I am not getting this anymore:
works. can you try again @Thra11. I have no idea why it would be fixed |
Still doesn't work for me on current nixpkgs/master. Same error as before. |
I wonder if being on aarch64-linux has something to do with it. Let me test it there... |
This comment has been minimized.
This comment has been minimized.
This still fails, although it now gets a bit further before failing in a different way:
|
Here's the config.log.
Here's a samba bug report which looks like a very similar issue. Comment says, "Looks like the test tries to link against the host version of libpython3.7.a, instead of the target version." |
So my understanding of the problem so far is that because python is in nativeBuildInputs, it gets the native/build version of python. When it checks whether pyembed works, it calls the native python-config binary to get include paths, linker flags and so on. As a result, it then tries to build a binary using the cross toolchain, while including native headers, which fails because some type, If we move python to buildInputs, it fails even earlier, as it can't find python in the path. Assuming it could find the host python and python-config, there is no guarantee that it will be able to execute them on the build machine to get the correct flags. This leads me to believe that you can't just "trick it" into getting the pyembed flags for the host platform: either waf or python-config needs to know we're cross compiling, and where the host python is. From the logs, it looks like waf is being passed A workaround is to add |
Fixed with #98915. |
Issue description
pkgsCross.armv7l-hf-multiplatform.talloc
fails to build. Very similar output to #62540.Steps to reproduce
Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste theresults.
The text was updated successfully, but these errors were encountered: