ndarray-linalg icon indicating copy to clipboard operation
ndarray-linalg copied to clipboard

ARM clibs with u8

Open JBenda opened this issue 3 years ago • 4 comments

As referenced here on ARM architectures (e.g. Raspberry Pi) the cLibs uses u8 as pointer type instead of i8. This is a problem in flags.rs, where the implementations of as_ptr() are not platform-agnostic.

If someone tells me how this project recognize the default data pointer type, I could open a PR.

Or if there is already a flag that I should have set, please let me know, and I apologize for bothering you.

Hotfix: replace return type of each as_ptr function in lex/sr/flags.rs with c_char and define it to your platform needs.

JBenda avatar Nov 28 '22 11:11 JBenda

I meet the same problem. Maybe we should determine the pointer type according the arch of the target

Dirreke avatar Jan 21 '23 16:01 Dirreke

There are already libs to do so, the question is more or less which to use or is ther already a mechanism, but not at this place?

JBenda avatar Jan 21 '23 18:01 JBenda

I'm having this same issue on t4g instances in AWS.

crunchy234 avatar May 17 '23 22:05 crunchy234

We've also run into this issue building ARM containers that can run on M1/M2 Mac machines. #354 does fix that for us, though then we run into issues building directly on the M1 machine. Not sure if that problem is related or not yet.

skeet70 avatar Jul 25 '23 22:07 skeet70