Issue with fprime-util build aarch64-linux #2682
Unanswered
OwenNieuwenhuizen
asked this question in
Q&A
Replies: 2 comments 4 replies
-
----- 原始邮件 -----
发件人:OwenNieuwenhuizen ***@***.***>
收件人:nasa/fprime ***@***.***>
抄送人:Subscribed ***@***.***>
主题:[nasa/fprime] Issue with fprime-util build aarch64-linux (Discussion #2682)
日期:2024年04月14日 09点34分
Hi,
I am trying to build for a raspberry pi and I am using a library that sends pwm. I am getting this error when I try to build with fprime-util build aarch64-linux.
[100%] Linking CXX executable ../bin/aarch64-linux/GDep
Toolchain 'aarch64-linux' should set CMAKE_SYSTEM_NAME to 'Generic' and set
FPRIME_PLATFORM
Call Stack (most recent call first):
fprime/cmake/FPrime.cmake:29 (include)
CMakeLists.txt:13 (include)
/opt/toolchains/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /usr/lib/libwiringPi.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
gmake[3]: *** [GDep/CMakeFiles/GDep.dir/build.make:217: bin/aarch64-linux/GDep] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:5288: GDep/CMakeFiles/GDep.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:5295: GDep/CMakeFiles/GDep.dir/rule] Error 2
gmake: *** [Makefile:1339: GDep] Error 2
[ERROR] CMake erred with return code 2
(fprime-venv) ***@***.***:/mnt/c/Users/owenn/Command/GDep#
It gives me this warning at the top:
(fprime-venv) ***@***.***:/mnt/c/Users/owenn/Command/GDep# fprime-util build aarch64-linux
…-- [python3] python3 found at: /mnt/c/Users/owenn/Command/fprime-venv/bin/python3
-- [fpp-tools] fpp-depend found at: /mnt/c/Users/owenn/Command/fprime-venv/bin/fpp-depend
-- [fpp-tools] fpp-to-xml found at: /mnt/c/Users/owenn/Command/fprime-venv/bin/fpp-to-xml
-- [fpp-tools] fpp-to-cpp found at: /mnt/c/Users/owenn/Command/fprime-venv/bin/fpp-to-cpp
-- [fpp-tools] fpp-locate-defs found at: /mnt/c/Users/owenn/Command/fprime-venv/bin/fpp-locate-defs
-- [FPRIME] Module locations: /mnt/c/Users/owenn/Command/fprime;/mnt/c/Users/owenn/Command
Linux/mnt/c/Users/owenn/Command/fprime/cmake/toolchain/aarch64-linux.cmake
aarch64-linux
CMake Warning at fprime/cmake/platform/platform.cmake:28 (message):
-- [FPRIME] Configuration module: /mnt/c/Users/owenn/Command/fprime/config
-- [FPRIME] Installation directory: /mnt/c/Users/owenn/Command/build-artifacts
-- Target build toolchain/platform: aarch64-linux/Linux
-- Including /mnt/c/Users/owenn/Command/fprime/cmake/platform/Linux.cmake
-- Requiring thread library
Any ideas? I am thinking it could possibly be a linker error or a variable not being set properly, but I am new to this so I am unsure. I have a mission using this software coming up quickly though so after spending quite a bit of time so far on trying to debug this, I would greatly appreciate any advice.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Yes, the error you see is an incompatible version of wiringPI. You can try to upgrade wiringPI .... Or the raspberry PI can often run 32bit binaries. You might try compiling with 32bit cross compiler instead of upgrading the library. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to build for a raspberry pi and I am using a library that sends pwm. I am getting this error when I try to build with fprime-util build aarch64-linux.
[100%] Linking CXX executable ../bin/aarch64-linux/GDep
Toolchain 'aarch64-linux' should set CMAKE_SYSTEM_NAME to 'Generic' and set
FPRIME_PLATFORM
Call Stack (most recent call first):
fprime/cmake/FPrime.cmake:29 (include)
CMakeLists.txt:13 (include)
/opt/toolchains/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /usr/lib/libwiringPi.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
gmake[3]: *** [GDep/CMakeFiles/GDep.dir/build.make:217: bin/aarch64-linux/GDep] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:5288: GDep/CMakeFiles/GDep.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:5295: GDep/CMakeFiles/GDep.dir/rule] Error 2
gmake: *** [Makefile:1339: GDep] Error 2
[ERROR] CMake erred with return code 2
(fprime-venv) root@OwenPC:/mnt/c/Users/owenn/Command/GDep#
It gives me this warning at the top:
(fprime-venv) root@OwenPC:/mnt/c/Users/owenn/Command/GDep# fprime-util build aarch64-linux
-- [python3] python3 found at: /mnt/c/Users/owenn/Command/fprime-venv/bin/python3
-- [fpp-tools] fpp-depend found at: /mnt/c/Users/owenn/Command/fprime-venv/bin/fpp-depend
-- [fpp-tools] fpp-to-xml found at: /mnt/c/Users/owenn/Command/fprime-venv/bin/fpp-to-xml
-- [fpp-tools] fpp-to-cpp found at: /mnt/c/Users/owenn/Command/fprime-venv/bin/fpp-to-cpp
-- [fpp-tools] fpp-locate-defs found at: /mnt/c/Users/owenn/Command/fprime-venv/bin/fpp-locate-defs
-- [FPRIME] Module locations: /mnt/c/Users/owenn/Command/fprime;/mnt/c/Users/owenn/Command
Linux/mnt/c/Users/owenn/Command/fprime/cmake/toolchain/aarch64-linux.cmake
aarch64-linux
CMake Warning at fprime/cmake/platform/platform.cmake:28 (message):
-- [FPRIME] Configuration module: /mnt/c/Users/owenn/Command/fprime/config
-- [FPRIME] Installation directory: /mnt/c/Users/owenn/Command/build-artifacts
-- Target build toolchain/platform: aarch64-linux/Linux
-- Including /mnt/c/Users/owenn/Command/fprime/cmake/platform/Linux.cmake
-- Requiring thread library
Any ideas? I am thinking it could possibly be a linker error or a variable not being set properly, but I am new to this so I am unsure. I have a mission using this software coming up quickly though so after spending quite a bit of time so far on trying to debug this, I would greatly appreciate any advice.
Beta Was this translation helpful? Give feedback.
All reactions