When I try build the firmware on ubuntu,Iget some error:
Toolchain definition:
CROSS_COMPILE prefix: arm-none-eabi-
asm: arm-none-eabi-gcc
arm-none-eabi-gcc
cxx: arm-none-eabi-g++
ar: arm-none-eabi-ar
objcopy: arm-none-eabi-objcopy
objdump: arm-none-eabi-objdump
C_FLAGS: --param max-inline-insns-single=500 -mlong-calls -ffunction-sections -fdata-sections -fno-exceptions -fsingle-precision-constant -Wall -Wextra -Wundef -Wdouble-promotion -Wno-expansion-to-defined -fdiagnostics-color -std=gnu17
CXX_FLAGS: --param max-inline-insns-single=500 -mlong-calls -ffunction-sections -fdata-sections -fno-exceptions -fsingle-precision-constant -Wall -Wextra -Wundef -Wdouble-promotion -Wno-expansion-to-defined -fdiagnostics-color -std=gnu++17 -fno-threadsafe-statics -fno-rtti
ASM_FLAGS: --param max-inline-insns-single=500 -mlong-calls -ffunction-sections -fdata-sections -fno-exceptions -fsingle-precision-constant -Wall -Wextra -Wundef -Wdouble-promotion -Wno-expansion-to-defined -fdiagnostics-color
LD_FLAGS:
CMake Error at CMakeLists.txt:29 (file):
file does not recognize sub-command REAL_PATH
CMake Error at CMakeLists.txt:38 (file):
file does not recognize sub-command REAL_PATH
Project Device: v3-5.0
Project C_FLAGS: -O2 -g -DNDEBUG -DBOARD=USER_BOARD -DARM_MATH_CM4=true -D__SAM4S4B__ -mcpu=cortex-m4 -mthumb -DSCREEN_50=1 -DDEVICE=v3-5.0 --param max-inline-insns-single=500 -mlong-calls -ffunction-sections -fdata-sections -fno-exceptions -fsingle-precision-constant -Wall -Wextra -Wundef -Wdouble-promotion -Wno-expansion-to-defined -fdiagnostics-color -std=gnu17
Project CXX_FLAGS: -O2 -g -DNDEBUG -DBOARD=USER_BOARD -DARM_MATH_CM4=true -D__SAM4S4B__ -mcpu=cortex-m4 -mthumb -DSCREEN_50=1 -DDEVICE=v3-5.0 --param max-inline-insns-single=500 -mlong-calls -ffunction-sections -fdata-sections -fno-exceptions -fsingle-precision-constant -Wall -Wextra -Wundef -Wdouble-promotion -Wno-expansion-to-defined -fdiagnostics-color -std=gnu++17 -fno-threadsafe-statics -fno-rtti
Project ASM_FLAGS: -O2 -g -DNDEBUG -DBOARD=USER_BOARD -DARM_MATH_CM4=true -D__SAM4S4B__ -mcpu=cortex-m4 -mthumb -DSCREEN_50=1 -DDEVICE=v3-5.0 --param max-inline-insns-single=500 -mlong-calls -ffunction-sections -fdata-sections -fno-exceptions -fsingle-precision-constant -Wall -Wextra -Wundef -Wdouble-promotion -Wno-expansion-to-defined -fdiagnostics-color
Project LD_FLAGS: -Wl,--defsym,stack_size=0x1000 -T"" -Wl,-Map,paneldue.map -static --specs=nano.specs -Wl,--gc-sections -Wl,--fatal-warnings -Wl,--no-warn-rwx-segments
librrf C_FLAGS: -O2 -g -DNDEBUG -DBOARD=USER_BOARD -DARM_MATH_CM4=true -D__SAM4S4B__ -mcpu=cortex-m4 -mthumb -DSCREEN_50=1 -DDEVICE=v3-5.0 --param max-inline-insns-single=500 -mlong-calls -ffunction-sections -fdata-sections -fno-exceptions -fsingle-precision-constant -Wall -Wextra -Wundef -Wdouble-promotion -Wno-expansion-to-defined -fdiagnostics-color -std=gnu17
librrf CXX_FLAGS: -O2 -g -DNDEBUG -DBOARD=USER_BOARD -DARM_MATH_CM4=true -D__SAM4S4B__ -mcpu=cortex-m4 -mthumb -DSCREEN_50=1 -DDEVICE=v3-5.0 --param max-inline-insns-single=500 -mlong-calls -ffunction-sections -fdata-sections -fno-exceptions -fsingle-precision-constant -Wall -Wextra -Wundef -Wdouble-promotion -Wno-expansion-to-defined -fdiagnostics-color -std=gnu++17 -fno-threadsafe-statics -fno-rtti
librrf ASM_FLAGS: -O2 -g -DNDEBUG -DBOARD=USER_BOARD -DARM_MATH_CM4=true -D__SAM4S4B__ -mcpu=cortex-m4 -mthumb -DSCREEN_50=1 -DDEVICE=v3-5.0 --param max-inline-insns-single=500 -mlong-calls -ffunction-sections -fdata-sections -fno-exceptions -fsingle-precision-constant -Wall -Wextra -Wundef -Wdouble-promotion -Wno-expansion-to-defined -fdiagnostics-color
-- Configuring incomplete, errors occurred!
See also "/mnt/hgfs/vmware/PanelDueFirmware/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/hgfs/vmware/PanelDueFirmware/build/CMakeFiles/CMakeError.log".
And the log is blow:
CMakeOutput.log:
The target system is: Generic - - cortex-m4
The host system is: Linux - 5.15.0-107-generic - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /opt/gcc-arm-none-eabi/bin/arm-none-eabi-gcc
Build flags: --param;max-inline-insns-single=500;-mlong-calls;-ffunction-sections;-fdata-sections;-fno-exceptions;-fsingle-precision-constant;-Wall;-Wextra;-Wundef;-Wdouble-promotion;-Wno-expansion-to-defined;-fdiagnostics-color;-std=gnu17
Id flags: -c
The output was:
0
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.o"
The C compiler identification is GNU, found in "/mnt/hgfs/vmware/PanelDueFirmware/build/CMakeFiles/3.16.3/CompilerIdC/CMakeCCompilerId.o"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /opt/gcc-arm-none-eabi/bin/arm-none-eabi-g++
Build flags: --param;max-inline-insns-single=500;-mlong-calls;-ffunction-sections;-fdata-sections;-fno-exceptions;-fsingle-precision-constant;-Wall;-Wextra;-Wundef;-Wdouble-promotion;-Wno-expansion-to-defined;-fdiagnostics-color;-std=gnu++17;-fno-threadsafe-statics;-fno-rtti
Id flags: -c
The output was:
0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.o"
The CXX compiler identification is GNU, found in "/mnt/hgfs/vmware/PanelDueFirmware/build/CMakeFiles/3.16.3/CompilerIdCXX/CMakeCXXCompilerId.o"
CMakeError.log
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/gcc-arm-none-eabi/bin/arm-none-eabi-gcc
Build flags: --param;max-inline-insns-single=500;-mlong-calls;-ffunction-sections;-fdata-sections;-fno-exceptions;-fsingle-precision-constant;-Wall;-Wextra;-Wundef;-Wdouble-promotion;-Wno-expansion-to-defined;-fdiagnostics-color;-std=gnu17
Id flags:
The output was:
1
/opt/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): in function exit': exit.c:(.text.exit+0x2c): undefined reference to
_exit'
collect2: error: ld returned 1 exit status
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /opt/gcc-arm-none-eabi/bin/arm-none-eabi-g++
Build flags: --param;max-inline-insns-single=500;-mlong-calls;-ffunction-sections;-fdata-sections;-fno-exceptions;-fsingle-precision-constant;-Wall;-Wextra;-Wundef;-Wdouble-promotion;-Wno-expansion-to-defined;-fdiagnostics-color;-std=gnu++17;-fno-threadsafe-statics;-fno-rtti
Id flags:
The output was:
1
/opt/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): in function exit': exit.c:(.text.exit+0x2c): undefined reference to
_exit'
collect2: error: ld returned 1 exit status
any suggestion on this ?@mfs12