-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Doesn't build on linux aarch64 #236
Comments
Hi @Bluezen, thanks for reporting this, and for the detailed report! The good news is that it looks like that error was present in some obsolete code leftover from an old implementation of that class. I just pushed a fix to the |
I have two different patches. One being in |
@hfiguiere For the PR in this repo, I believe I've already fixed that problem on the For the PR in Thanks! |
Did that, build failed, log: |
This is the same error that Chowdhury-DSP/chowdsp_utils#98 addresses. |
Gotcha, thanks for including the build log again. It seems like the first issue is fixed, so that's definitely a good sign! For the remaining issue, I don't think the one-line fix is correct, since that will "turn off" most of the double-precision SIMD methods on all ARM platforms, which would definitely have a big performance hit. I was able to investigate a bit further, and I think I've found the problem: /** SIMD implementation of std::isnan */
template <typename T>
inline typename juce::dsp::SIMDRegister<T>::vMaskType isnanSIMD (juce::dsp::SIMDRegister<T> x)
{
using Vec = juce::dsp::SIMDRegister<T>;
return Vec::notEqual ((Vec) xsimd::isnan ((x_type<T>) x.value), (Vec) 0);
} What really confuses me is that the compiler seems to allow this cast with SSE SIMD instructions, and when compiling for ARM with Clang... Anyway, I'll dig into it and hopefully can have it fixed soon! |
Does it throw warnings? Sometime warnings are actual errors. (I saw the x86_64 had a lot) And yes I was building with gcc 10.2 or 11.2 which are the default here, be it plain Debian aarch64 or Freedesktop-SDK (the runtime for Flatpak) |
Yeah, I haven't seen any warnings about that specific section of code either. Maybe I need to adjust my warning flags to be more strict... Anyway, I have an attempted fix now on the |
@jatinchowdhury18 now it fails on x86_64: arm build was successful: |
Ah, the plot thickens... it seems like |
@jatinchowdhury18 |
Great! I'll take care of getting all the fixes merged down to |
Hi, I currently try to build this plugin as a flatpak and on flathub:
flathub/flathub#2681
Flathub usually builds for x86_64 and aarch64. The problem is that the aarch64 build fails.
According to this comment:
flathub/flathub#2681 (comment)
You can find the currently latest build log here:
https://flathub.org/builds/api/v2/logs/2903750/raw
The text was updated successfully, but these errors were encountered: