auto3000 / meta-pedalpi

Yocto meta-layer for pedalpi
MIT License
0 stars 0 forks source link

Rakarrack-lv2 recipe is not compiling #42

Closed Rezzonics closed 3 years ago

Rezzonics commented 3 years ago

Rakarrack-lv2 recipe is not compiling due to unrecognized compile flags: | aarch64-poky-linux-g++: error: unrecognized command line option '-msse' | aarch64-poky-linux-g++: error: unrecognized command line option '-msse2' | aarch64-poky-linux-g++: error: unrecognized command line option '-mfpmath=sse'

Patch has been removed from recipe. I wonder if there is a way to tune or remove those compiler flags from the recipe without a path. I tried the following but didn't work: TARGET_CXXFLAGS_remove = "-msse -msse2 -mfpmath=sse"

The following didn't work either: TUNE_CCARGS := "${@oe.utils.str_filter_out('-msse', '${TUNE_CCARGS}', d)}" TUNE_CCARGS := "${@oe.utils.str_filter_out('-msse2', '${TUNE_CCARGS}', d)}" TUNE_CCARGS := "${@oe.utils.str_filter_out('-mfpmath=sse', '${TUNE_CCARGS}', d)}"

auto3000 commented 3 years ago

The flags -msse -msse2 are only added on non-arm machines: https://github.com/ssj71/rkrlv2/blob/master/lv2/CMakeLists.txt#L9 You may suspect you have a previous version of rakarrack source code.

Le dim. 10 janv. 2021 à 16:59, Rezzonics notifications@github.com a écrit :

Rakarrack-lv2 recipe is not compiling due to unrecognized compile flags: | aarch64-poky-linux-g++: error: unrecognized command line option '-msse' | aarch64-poky-linux-g++: error: unrecognized command line option '-msse2' | aarch64-poky-linux-g++: error: unrecognized command line option '-mfpmath=sse'

Patch has been removed from recipe. I wonder if there is a way to tune or remove those compiler flags from the recipe without a path.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/auto3000/meta-pedalpi/issues/42, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDPVF4TMSWWVLFXLWLPWGDSZHFHTANCNFSM4V4QWCKA .

Rezzonics commented 3 years ago

Recipe is not pointing to master but here: https://github.com/ssj71/rkrlv2/blob/7edcb4e29a358623bfd57fa2c27e5da60adfcec3/CMakeLists.txt

Rezzonics commented 3 years ago

Sorry, it's also here: https://github.com/ssj71/rkrlv2/blob/7edcb4e29a358623bfd57fa2c27e5da60adfcec3/lv2/CMakeLists.txt Maybe for some reason I don't have set CMAKE_SYSTEM_PROCESSOR

auto3000 commented 3 years ago

You are correct with the issue, I'm able to reproduce locally with odroid-c2 build. But I don't know why my CI job building odroid-c2 does not catch the issue !

auto3000 commented 3 years ago

Indeed the CI jobs detects the odroid-c2 vs msse option issue : https://app.circleci.com/pipelines/github/auto3000/pedalpi-dev-platform/135/workflows/ec747d48-28ca-4a1a-a728-97d8855a35c7/jobs/2638/parallel-runs/0/steps/0-104

But since I have not merged the updated submodule, and another issue (related to bundler recipe) was breaking the CI first, i missed it.

auto3000 commented 3 years ago

On odroid-c2, the CMAKE_SYSTEM_PROCESSOR aarch64, I'm preparing a patch...

auto3000 commented 3 years ago

Let me know if you are catching again this problem... :(

Rezzonics commented 3 years ago

It works now, thanks