-
Notifications
You must be signed in to change notification settings - Fork 254
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
compilation errors on Raspberry Pi #287
Comments
are you cross-compiling? If not, |
I am getting the same error trying I am not cross-compiling. Compiling directly on the RPi. Using this same project on an arm64 dev kit with 64bit OS and compiler works. The RPi's Raspbian is 32bit |
getting closer by using flags from https://gist.github.com/fm4dd/c663217935dc17f0fc73c9c81b0aa845
and I get only 3 errors now
will poke at these flags some more |
This might now be a problem from our side, if the type or type conversion is not correctly implemented... Can you try with only integer for example? |
Based on those errors sounding integer-ish, maybe you meant the opposite - I tried removing all the integer arrays from my code, including
and now it compiles. |
hey, cool, that's good to hear. we should keep this issue open to investigate in the future. it might be related to 64-bit integers and the NEON version. |
Out of curiosity, since you're compiling on a 32bit system, can you print the results of the following: #include <type_traits>
#include <cstdint>
#include <iostream>
int main(int argc, char* argv[])
{
using std::uint32_t;
using std::uint64_t;
std::cout << "unsigned long == uint32_t? ";
std::cout << std::is_same<unsigned long, uint32_t>::value << std::endl;
std::cout << "unsigned long long == uint32_t? ";
std::cout << std::is_same<unsigned long long, uint32_t>::value << std::end;
std::cout << "size_t == uint32_t? ";
std::cout << std::is_same<size_t, uint32_t>::value << std::endl;
std::cout << "unsigned long == uint64_t? ";
std::cout << std::is_same<unsigned long, uint64_t>::value << std::endl;
std::cout << "unsigned long long == uint64_t? ";
std::cout << std::is_same<unsigned long long, uint64_t>::value << std::endl;
std::cout << "size_t == uint64_t? ";
std::cout << std::is_same<size_t, uint64_t>::value << std::endl;
return 0;
} |
@JohanMabille the second check does not compile
commenting that out, the rest of the output is
|
I'm trying to use XTENSOR_USE_XSIMD in my project, which otherwise compiles and runs fine on a Raspberry Pi 3B+ with up to date Raspbian Stretch
Using
The first error I get is
which is strange because I've tried both
-mfpu=neon
and-mfpu=neon-vfpv4
Any ideas?
The text was updated successfully, but these errors were encountered: