getting error to Build paneldue firmware
-
hey,
I have tried to build panel-due firmware using master branch of panel and rrf libraries but it is giving error
**Finished building: ../src/ObjectModel/Axis.cpp
../src/UI/UserInterface.cpp: In function 'void UI::ChangeStatus(OM::PrinterStatus, OM::PrinterStatus)':
../src/UI/UserInterface.cpp:1490:4: warning: attributes at the beginning of statement are ignored [-Wattributes]
[[fallthrough]];
^
../src/UI/UserInterface.cpp:1507:4: warning: attributes at the beginning of statement are ignored [-Wattributes]
[[fallthrough]];
^
../src/UI/UserInterface.cpp: In function 'void UI::AnimateScreensaver()':
../src/UI/UserInterface.cpp:1705:39: error: 'rand_r' was not declared in this scope
const PixelNumber x = (rand_r(&seed) % availableWidth);
^
../src/UI/UserInterface.cpp: In function 'void UI::ProcessTouch(ButtonPress)':
../src/UI/UserInterface.cpp:2510:82: error: 'abs' was not declared in this scope
SerialIo::Sendf("M%d P%d S%d\n", val < 0 ? 4 : 3, spindle->index, abs(val));
^
../src/UI/UserInterface.cpp:2510:82: note: suggested alternative:
In file included from C:\Users\rishita.butala\eclipse-workspace\Firmware\RRFLibraries\src/General/SimpleMath.h:13:0,
from C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src/UI/Alert.hpp:8,
from C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src/UI/UserInterface.hpp:17,
from ../src/UI/UserInterface.cpp:8:
c:\program files (x86)\gnu tools arm embedded\6 2017-q2-update\arm-none-eabi\include\c++\6.3.1\cmath:103:5: note: 'std::abs'abs(_Tp __x) ^~~
Building file: ../src/ObjectModel/Tool.cpp
../src/UI/UserInterface.cpp: In function 'void UI::SetSpindleActive(size_t, int32_t)':
../src/UI/UserInterface.cpp:3565:34: error: 'abs' was not declared in this scope
spindle->active = abs(activeRpm);
^Building file: ../src/ObjectModel/Utils.cpp
Building file: ../src/Library/Misc.cpp
Invoking: Cross G++ Compiler
../src/UI/UserInterface.cpp:3565:34: note: suggested alternative:
In file included from C:\Users\rishita.butala\eclipse-workspace\Firmware\RRFLibraries\src/General/SimpleMath.h:13:0,
from C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src/UI/Alert.hpp:8,
arm-none-eabi-g++ -std=gnu++17 -DNDEBUG -D__SAM4S4B__ -DBOARD=USER_BOARD -DARM_MATH_CM4=true -DSCREEN_70E -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\RRFLibraries" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\config" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\thirdparty\CMSIS\Lib\GCC" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\utils\cmsis\sam4s\include" -I"C:\Users\rishita.butala\eclipse-worksInvoking: Cross G++ Compiler
from C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src/UI/UserInterface.hpp:17,
from ../src/UI/UserInterface.cpp:8:
c:\program files (x86)\gnu tools arm embedded\6 2017-q2-update\arm-none-eabi\include\c++\6.3.1\cmath:103:5: note: 'std::abs'
abs(_Tp _x)
pace\Firmware\PanelDueFirmware\src\ASF\common\utils" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\utils\cmsis\sam4s\source\templates" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\utils" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\utils\preprocessor" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\common\boards" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\utils\header_files" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\common\boards\user_board" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\thirdparty\CMSIS\Include" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\pio" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sInvoking: Cross G++ Compiler
^~~
am\drivers\pmc" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\common\services\clock" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\common\services\delay" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\wdt" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\pwm" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\uart" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\matrix" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\efc" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\services\flash_efc" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\rstc" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\chipid" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\lib\base64" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\lib\qoi" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\RRFLibraries\src" -Os -Wall -c -mthumb -MD -MP -mcpu=cortex-m4 -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fno-exceptions -nostdlib --param max-inline-insns-single=500 -mlong-calls -Wno-expansion-to-defined "-Wa,-ahl=Tool.s" -MMD -MP -MF"src/ObjectModel/Tool.d" -MT"src/ObjectModel/Tool.o" -o "src/ObjectModel/Tool.o" "../src/ObjectModel/Tool.cpp"
../src/UI/UserInterface.cpp: In function 'void UI::SetSpindleCurrent(size_t, int32_t)':
../src/UI/UserInterface.cpp:3615:33: error: 'abs' was not declared in this scope
spindle->current = abs(current);
^
../src/UI/UserInterface.cpp:3615:33: note: suggested alternative:
In file included from C:\Users\rishita.butala\eclipse-workspace\Firmware\RRFLibraries\src/General/SimpleMath.h:13:0,
from C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src/UI/Alert.hpp:8,
from C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src/UI/UserInterface.hpp:17,
from ../src/UI/UserInterface.cpp:8:
c:\program files (x86)\gnu tools arm embedded\6 2017-q2-update\arm-none-eabi\include\c++\6.3.1\cmath:103:5: note: 'std::abs'
abs(Tp x)
^~~
At global scope:
cc1plus.exe: warning: unrecognized command line option '-Wno-expansion-to-defined'
arm-none-eabi-g++ -std=gnu++17 -DNDEBUG -D__SAM4S4B -DBOARD=USER_BOARD -DARM_MATH_CM4=true -DSCREEN_70E -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\RRFLibraries" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\config" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\thirdparty\CMSIS\Lib\GCC" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\utils\cmsis\sam4s\include" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\common\utils" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\utils\cmsis\sam4s\source\templates" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\utils" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\utils\preprocessor" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\common\boards" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\utils\header_files" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\common\boards\user_board" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\thirdparty\CMSIS\Include" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\pio" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\pmc" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\common\services\clock" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\common\services\delay" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\wdt" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\pwm" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\uart" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\matrix" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\efc" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\services\flash_efc" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\rstc" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\chipid" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\lib\base64" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\lib\qoi" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\RRFLibraries\src" -Os -Wall -c -mthumb -MD -MP -mcpu=cortex-m4 -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fno-exceptions -nostdlib --param max-inline-insns-single=500 -mlong-calls -Wno-expansion-to-defined "-Wa,-ahl=Utils.s" -MMD -MP -MF"src/ObjectModel/Utils.d" -MT"src/ObjectModel/Utils.o" -o "src/ObjectModel/Utils.o" "../src/ObjectModel/Utils.cpp"
Finished building: ../src/ObjectModel/BedOrChamber.cpp
Finished building: ../src/UI/Display.cpp
arm-none-eabi-g++ -std=gnu++17 -DNDEBUG -D__SAM4S4B -DBOARD=USER_BOARD -DARM_MATH_CM4=true -DSCREEN_70E -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\RRFLibraries" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\config" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\thirdparty\CMSIS\Lib\GCC" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\utils\cmsis\sam4s\include" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\common\utils" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\utils\cmsis\sam4s\source\templates" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\utils" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\utils\preprocessor" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\common\boards" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\utils\header_files" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\common\boards\user_board" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\thirdparty\CMSIS\Include" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\pio" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\pmc" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\common\services\clock" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\common\services\delay" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\wdt" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\pwm" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\uart" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\matrix" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\efc" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\services\flash_efc" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\rstc" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\src\ASF\sam\drivers\chipid" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\lib\base64" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\PanelDueFirmware\lib\qoi" -I"C:\Users\rishita.butala\eclipse-workspace\Firmware\RRFLibraries\src" -Os -Wall -c -mthumb -MD -MP -mcpu=cortex-m4 -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fno-exceptions -nostdlib --param max-inline-insns-single=500 -mlong-calls -Wno-expansion-to-defined "-Wa,-ahl=Misc.s" -MMD -MP -MF"src/Library/Misc.d" -MT"src/Library/Misc.o" -o "src/Library/Misc.o" "../src/Library/Misc.cpp"make[1]: *** [src/UI/subdir.mk:34: src/UI/UserInterface.o] Error 1
make[1]: *** Waiting for unfinished jobs....Finished building: ../src/ObjectModel/Spindle.cpp
Finished building: ../src/Library/Misc.cpp
Finished building: ../src/ObjectModel/Tool.cpp
Finished building: ../src/ObjectModel/Utils.cpp
make: *** [makefile:79: all] Error 2
"make -j8 all" terminated with exit code 2. Build might be incomplete.
**any suggestion on this ? @dc42
-
-
-
@R006 what is the error message you are getting from ld.exe?
-
@dc42
c:/program files (x86)/arm gnu toolchain arm-none-eabi/12.2 rel1/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: PanelDueFirmware-5.0i-7.0i.elf has a LOAD segment with RWX permissions
collect2.exe: error: ld returned 1 exit status
make[1]: *** [makefile:91: PanelDueFirmware-5.0i-7.0i.elf] Error 1
make: *** [makefile:79: all] Error 2 -
@R006 there is an option no-warn-rwx-segments that you can add to the linker command line to suppress that warning.
-
@dc42 okay