-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Can't link on PPC64LE #20087
Comments
Explicitly specifying the
|
I am having a very hard time building on a PPC64le: is this related, it fails with |
@MementoRC Your machine is PPC64le, so it should be Note that this only works when you're calling Edit: sorry, I see what you're trying to do now. |
@rany2 Thanks for the quick reply. I did try both. Does the ppc64le bin dist work for you? The following sehll:
gives:
on a ppc64le image running on Travis |
I tried to cross-compile with CMake but get a
that I can't fathom the origin |
When I try to cross-compile with a x86_64 bootstrap It seems quite difficult to build (been trying for more than a month) - I am trying to populate the conda recipe for zig with all the supported arch and typically, conda prefers to built from source and within its own environment |
I'm not sure what you're trying to do. Are you attempting to build Zig from source with your patches to include |
I am just trying to build ZIG from source for a powerpc64le (when I only have a local x86_64) using either a cross-compilation or a Travis runner of the ppc64le image. Any way it builds is fine by me, I just want to build it. For this I have gone through these 3 options and all fail The cross-compilation with CMake fails because the |
the excerpt I show is to try to understand what is going on the Travis runner to make the zig distribution just stop without any errors - x-compiling the same recipe for aarch64 worked well The best for me would be to cross-compile from x86_64, this way I can debug locally rather than submit tons of commit to see what happens |
I don't know, sorry. |
Thanks, been quite frustrated with it (and windows), so it helped a lot to discuss it a bit. I'll probably open a separate issue since this solution does not seem to solve it |
Zig Version
0.13.0-dev.267+793f820b3
Steps to Reproduce and Observed Behavior
Below is a demonstration of linking failing with the error from linker being
call to save_start.posixCallMainAndExit lacks nop, can't restore toc
. It doesn't not occur when using the GNU linker. I've also tested with LLVM 18.1.6 and it has the same problem.Either way, I'm not sure if it's a LLVM or Zig issue but seeing that this seems to occur only with Zig I thought it would be better to report here first.
Expected Behavior
Seems similar to #18100
This is the machine info:
If you suggest, I could build zig myself but right now I've just used the prebuilt one: https://ziglang.org/builds/zig-linux-powerpc64le-0.13.0-dev.267+793f820b3.tar.xz. I tried the prebuilt version 0.11.0 and 0.12.0 and they both have the same issue.
The text was updated successfully, but these errors were encountered: