-
Notifications
You must be signed in to change notification settings - Fork 22
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
Different bindings generated on aarch64 vs x86 #79
Comments
I also tried running with |
Hmm, that is quite strange. It's not impossible that libclang behaves differently between architectures, but this particular instance of a |
Looks like I did actually have multiple versions installed at some point on the x86 (Arch) machine
Not sure how this happened. Removed everything and reinstalled nimble and now I just have There was a pkgs2 on the other machine but it was empty. I just reinstalled nim/nimble on the aarch64 machine to see if that had any effect but still getting the same error. This is the cache on the Arch machine
The other one didn't have anything cached yet. I tried deleting both caches, but that didn't help. It still detects it as Here are the libclang .so files aarch64
x86
I will try setting everything up in a docker container and see if it works there. Just to confirm, which version would be the correct one that should be getting picked up? |
That's a bit suspect. Once Futhark runs it should cache both the The correct behaviour should be |
Ah, I must have missed it because I wasn't thinking it would be named I see this on the aarch64 one
and then on x86
So it looks like they are generating the same files I guess |
I get the same error inside a docker container running https://hub.docker.com/r/agners/archlinuxarm/tags I installed Nim using pacman since choosenim doesn't support aarch64 BTW. I'll try to package it up into a Dockerfile I suppose, but not sure if you can run it without a VM. |
Ok, I tested it again with this Dockerfile and I still get the same error, which is very weird.
Just running |
If I change the image to pull from libxml2 is still using a different version as mentioned before, |
I am getting this error with https://github.com/weskerfoot/NimPath. But strangely it only happens on one machine (rockpro64 running Manjaro). On my other Arch Linux machines (x86), it detects it properly as
cstring
notptr uint8
.Same version of clang (15.0.7), same version of Futhark (0.9.3), same version of Nim (1.6.10). The only differences are, Manjaro vs. Arch and aarch64 vs x86, and libxml2
2.11.4-1
vs2.10.4-4
(Arch vs Manjaro)This is the declaration in the Arch version:
This is the declaration in the Manjaro version
The only difference is the macro
XMLCALL
which I'm not sure about. Could that be causing issues?Any idea what could be going on here?
Removing
XMLCALL
doesn't seem to help.I'm guessing it has something to do with the different architectures and how clang detects things.
The text was updated successfully, but these errors were encountered: