-
Notifications
You must be signed in to change notification settings - Fork 599
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 4 Raspbian #203
Comments
cmake or autotools? |
I just realised I forgot to indicate the lib I'm trying to compile opus for. It's tostc/libDiscordBot.
Cmake. Strangely enough, it worked without any problem on my computer, which runs the ArchLinux Kernel on a 64-bit Intel Core CPU. |
Can you add MESSAGE(STATUS "CMAKE_SYSTEM_NAME: ${CMAKE_SYSTEM_NAME}") In libDiscordBot\externals\opus\CMakeLists.txt after the project line. Then paste the info here once you configured again. |
I get the following : Here is the full output of the cmake command :
|
Looks, like Opus revision is not the newest, I did some updates regarding submodules so can you try to update with. git submodule update --remote --merge externals/opus inside libDiscordBot note, there might still be bugs here as I don't have added rpi in CI yet, but let's start with updating to the latest Opus version. |
Well, just updating and trying to compile didn't work. The errors remained. Also now I'm getting a lot of this warning in most files (I don't remember having them before, but maybe my memory's bad)
|
I don't think Opus is designed to work with -Werror in general. Those warnings just tell you that it's falling back to unoptimized code on your platform, because your standard library isn't fully C99 compliant. |
The lrint is a bug in the lrint detection in cmake scripts. I have a fix for that somewhere. Can you try to compile only opus on the raspberry pi so we know if it's a submodule issue or not. cd externals/opus If that doesn't work can you try cd externals/opus |
That was just a side note, this warning is not causing any issue. -Werror isn't used.
Just in case, the CMake version is 3.13.4
However... TL;DR for people looking after the same problem : add |
Thanks, I will open a separate bug on this item to ensure to fix neon optimizations. But hopefully this unblocks you to move on and create your bot :) |
I'm trying to compile a library that depends on this one. However, when compiling, I get lots of errors of the same type :
Here are my system's specification :
Raspbian GNU/Linux 10 armv7l,
Raspberry Pi 4 Model B Rev 1.2.
Kernel version 5.4.51-v7l+
What GCC configuration am I missing ?
The text was updated successfully, but these errors were encountered: