Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Firmware Build errors [help needed]

    Scheduled Pinned Locked Moved Solved
    Firmware developers
    5
    10
    596
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • MikeSundefined
      MikeS
      last edited by MikeS

      Hi all,
      i'm trying to build latest dev just to fix the problem with accelerometer axis not fetched correctly on the latest beta build.
      I've created a Windows 10 clean VM and followed the instruction at https://github.com/Duet3D/RepRapFirmware/wiki/Building-RepRapFirmware

      After importing all the projects in the workspace of eclipse, i can build all (duet2) except for RepRapFirmware.

      This is my workplace:
      7bce7a26-3184-4517-8086-83151c97323d-immagine.png
      This is the output that i get:

      08:44:48 **** Build of configuration Duet2 for project RepRapFirmware ****
      make -j4 all 
      Building file: ../src/libcpp/eh_alloc.cpp
      Building file: ../src/libcpp/vterminate.cc
      Building file: ../src/libc/memcmp.c
      Building file: ../src/libc/memcpy.c
      Invoking: Cross G++ Compiler
      Invoking: Cross G++ Compiler
      arm-none-eabi-g++ -std=gnu++17 -D__SAM4E8E__ -DRTOS -DDUET_NG -D_XOPEN_SOURCE -I"C:\Eclipse\Firmware\RepRapFirmware\src" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Hardware\SAM4E" -I"C:\Eclipse\Firmware\RepRapFirmware\src\DuetNG" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Networking" -I"C:\Eclipse\Firmware\DuetWiFiSocketServer\src\include" -I"C:\Eclipse\Firmware\FreeRTOS\src\include" -I"C:\Eclipse\Firmware\FreeRTOS\src\portable\GCC\ARM_CM4F" -I"C:\Eclipse\Firmware\RRFLibraries\src" -Os -Wall -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fexceptions -nostdlib -Wundef -Wdouble-promotion -Werror=return-type -Wsuggest-override -fsingle-precision-constant "-Wa,-ahl=vterminate.s" -fstack-usage -MMD -MP -MF"src/libcpp/vterminate.d" -MT"src/libcpp/vterminate.o" -o "src/libcpp/vterminate.o" "../src/libcpp/vterminate.cc"
      Invoking: Cross GCC Compiler
      arm-none-eabi-g++ -std=gnu++17 -D__SAM4E8E__ -DRTOS -DDUET_NG -D_XOPEN_SOURCE -I"C:\Eclipse\Firmware\RepRapFirmware\src" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Hardware\SAM4E" -I"C:\Eclipse\Firmware\RepRapFirmware\src\DuetNG" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Networking" -I"C:\Eclipse\Firmware\DuetWiFiSocketServer\src\include" -I"C:\Eclipse\Firmware\FreeRTOS\src\include" -I"C:\Eclipse\Firmware\FreeRTOS\src\portable\GCC\ARM_CM4F" -I"C:\Eclipse\Firmware\RRFLibraries\src" -Os -Wall -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fexceptions -nostdlib -Wundef -Wdouble-promotion -Werror=return-type -Wsuggest-override -fsingle-precision-constant "-Wa,-ahl=eh_alloc.s" -fstack-usage -MMD -MP -MF"src/libcpp/eh_alloc.d" -MT"src/libcpp/eh_alloc.o" -o "src/libcpp/eh_alloc.o" "../src/libcpp/eh_alloc.cpp"
      arm-none-eabi-gcc -std=gnu99 -D__SAM4E8E__ -DRTOS -DDUET_NG -Dnoexcept= -Os -Wall -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -nostdlib -Wundef -Wdouble-promotion -Werror=return-type -Werror=implicit -fsingle-precision-constant "-Wa,-ahl=memcmp.s" -MMD -MP -MF"src/libc/memcmp.d" -MT"src/libc/memcmp.o" -o "src/libc/memcmp.o" "../src/libc/memcmp.c"
      Invoking: Cross GCC Compiler
      arm-none-eabi-gcc -std=gnu99 -D__SAM4E8E__ -DRTOS -DDUET_NG -Dnoexcept= -Os -Wall -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -nostdlib -Wundef -Wdouble-promotion -Werror=return-type -Werror=implicit -fsingle-precision-constant "-Wa,-ahl=memcpy.s" -MMD -MP -MF"src/libc/memcpy.d" -MT"src/libc/memcpy.o" -o "src/libc/memcpy.o" "../src/libc/memcpy.c"
      Finished building: ../src/libcpp/vterminate.cc
      Finished building: ../src/libc/memcmp.c
       
       
      Finished building: ../src/libc/memcpy.c
      Building file: ../src/libc/memmove.c
      Building file: ../src/libc/memset.c
       
      Invoking: Cross GCC Compiler
      Invoking: Cross GCC Compiler
      Building file: ../src/libc/nano-mallocr.c
      Finished building: ../src/libcpp/eh_alloc.cpp
      arm-none-eabi-gcc -std=gnu99 -D__SAM4E8E__ -DRTOS -DDUET_NG -Dnoexcept= -Os -Wall -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -nostdlib -Wundef -Wdouble-promotion -Werror=return-type -Werror=implicit -fsingle-precision-constant "-Wa,-ahl=memmove.s" -MMD -MP -MF"src/libc/memmove.d" -MT"src/libc/memmove.o" -o "src/libc/memmove.o" "../src/libc/memmove.c"
      arm-none-eabi-gcc -std=gnu99 -D__SAM4E8E__ -DRTOS -DDUET_NG -Dnoexcept= -Os -Wall -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -nostdlib -Wundef -Wdouble-promotion -Werror=return-type -Werror=implicit -fsingle-precision-constant "-Wa,-ahl=memset.s" -MMD -MP -MF"src/libc/memset.d" -MT"src/libc/memset.o" -o "src/libc/memset.o" "../src/libc/memset.c"
       
      Invoking: Cross GCC Compiler
      arm-none-eabi-gcc -std=gnu99 -D__SAM4E8E__ -DRTOS -DDUET_NG -Dnoexcept= -Os -Wall -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -nostdlib -Wundef -Wdouble-promotion -Werror=return-type -Werror=implicit -fsingle-precision-constant "-Wa,-ahl=nano-mallocr.s" -MMD -MP -MF"src/libc/nano-mallocr.d" -MT"src/libc/nano-mallocr.o" -o "src/libc/nano-mallocr.o" "../src/libc/nano-mallocr.c"
      Building file: ../src/libc/strptime.cpp
      Invoking: Cross G++ Compiler
      arm-none-eabi-g++ -std=gnu++17 -D__SAM4E8E__ -DRTOS -DDUET_NG -D_XOPEN_SOURCE -I"C:\Eclipse\Firmware\RepRapFirmware\src" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Hardware\SAM4E" -I"C:\Eclipse\Firmware\RepRapFirmware\src\DuetNG" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Networking" -I"C:\Eclipse\Firmware\DuetWiFiSocketServer\src\include" -I"C:\Eclipse\Firmware\FreeRTOS\src\include" -I"C:\Eclipse\Firmware\FreeRTOS\src\portable\GCC\ARM_CM4F" -I"C:\Eclipse\Firmware\RRFLibraries\src" -Os -Wall -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fexceptions -nostdlib -Wundef -Wdouble-promotion -Werror=return-type -Wsuggest-override -fsingle-precision-constant "-Wa,-ahl=strptime.s" -fstack-usage -MMD -MP -MF"src/libc/strptime.d" -MT"src/libc/strptime.o" -o "src/libc/strptime.o" "../src/libc/strptime.cpp"
      Finished building: ../src/libc/memmove.c
      Finished building: ../src/libc/memset.c
       
       
      Building file: ../src/bossa/Applet.cpp
      Building file: ../src/bossa/BossaFlash.cpp
      Invoking: Cross G++ Compiler
      arm-none-eabi-g++ -std=gnu++17 -D__SAM4E8E__ -DRTOS -DDUET_NG -D_XOPEN_SOURCE -I"C:\Eclipse\Firmware\RepRapFirmware\src" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Hardware\SAM4E" -I"C:\Eclipse\Firmware\RepRapFirmware\src\DuetNG" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Networking" -I"C:\Eclipse\Firmware\DuetWiFiSocketServer\src\include" -I"C:\Eclipse\Firmware\FreeRTOS\src\include" -I"C:\Eclipse\Firmware\FreeRTOS\src\portable\GCC\ARM_CM4F" -I"C:\Eclipse\Firmware\RRFLibraries\src" -Os -Wall -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fexceptions -nostdlib -Wundef -Wdouble-promotion -Werror=return-type -Wsuggest-override -fsingle-precision-constant "-Wa,-ahl=Applet.s" -fstack-usage -MMD -MP -MF"src/bossa/Applet.d" -MT"src/bossa/Applet.o" -o "src/bossa/Applet.o" "../src/bossa/Applet.cpp"
      Invoking: Cross G++ Compiler
      arm-none-eabi-g++ -std=gnu++17 -D__SAM4E8E__ -DRTOS -DDUET_NG -D_XOPEN_SOURCE -I"C:\Eclipse\Firmware\RepRapFirmware\src" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Hardware\SAM4E" -I"C:\Eclipse\Firmware\RepRapFirmware\src\DuetNG" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Networking" -I"C:\Eclipse\Firmware\DuetWiFiSocketServer\src\include" -I"C:\Eclipse\Firmware\FreeRTOS\src\include" -I"C:\Eclipse\Firmware\FreeRTOS\src\portable\GCC\ARM_CM4F" -I"C:\Eclipse\Firmware\RRFLibraries\src" -Os -Wall -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fexceptions -nostdlib -Wundef -Wdouble-promotion -Werror=return-type -Wsuggest-override -fsingle-precision-constant "-Wa,-ahl=BossaFlash.s" -fstack-usage -MMD -MP -MF"src/bossa/BossaFlash.d" -MT"src/bossa/BossaFlash.o" -o "src/bossa/BossaFlash.o" "../src/bossa/BossaFlash.cpp"
      Finished building: ../src/libc/nano-mallocr.c
       
      Building file: ../src/bossa/Device.cpp
      Invoking: Cross G++ Compiler
      Finished building: ../src/libc/strptime.cpp
      arm-none-eabi-g++ -std=gnu++17 -D__SAM4E8E__ -DRTOS -DDUET_NG -D_XOPEN_SOURCE -I"C:\Eclipse\Firmware\RepRapFirmware\src" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Hardware\SAM4E" -I"C:\Eclipse\Firmware\RepRapFirmware\src\DuetNG" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Networking" -I"C:\Eclipse\Firmware\DuetWiFiSocketServer\src\include" -I"C:\Eclipse\Firmware\FreeRTOS\src\include" -I"C:\Eclipse\Firmware\FreeRTOS\src\portable\GCC\ARM_CM4F" -I"C:\Eclipse\Firmware\RRFLibraries\src" -Os -Wall -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fexceptions -nostdlib -Wundef -Wdouble-promotion -Werror=return-type -Wsuggest-override -fsingle-precision-constant "-Wa,-ahl=Device.s" -fstack-usage -MMD -MP -MF"src/bossa/Device.d" -MT"src/bossa/Device.o" -o "src/bossa/Device.o" "../src/bossa/Device.cpp"
      In file included from C:\Eclipse\Firmware\RepRapFirmware\src/GCodes/GCodeException.h:11,
                       from ../src/bossa/Samba.h:37,
                       from ../src/bossa/Applet.h:34,
                       from ../src/bossa/Applet.cpp:29:
      C:\Eclipse\Firmware\RepRapFirmware\src/RepRapFirmware.h:49:10: fatal error: Core.h: No such file or directory
         49 | #include <Core.h>
            |          ^~~~~~~~
      compilation terminated.
       
      src/bossa/subdir.mk:42: recipe for target 'src/bossa/Applet.o' failed
      make: *** [src/bossa/Applet.o] Error 1
      Building file: ../src/bossa/EefcFlash.cpp
      make: *** Waiting for unfinished jobs....
      Invoking: Cross G++ Compiler
      arm-none-eabi-g++ -std=gnu++17 -D__SAM4E8E__ -DRTOS -DDUET_NG -D_XOPEN_SOURCE -I"C:\Eclipse\Firmware\RepRapFirmware\src" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Hardware\SAM4E" -I"C:\Eclipse\Firmware\RepRapFirmware\src\DuetNG" -I"C:\Eclipse\Firmware\RepRapFirmware\src\Networking" -I"C:\Eclipse\Firmware\DuetWiFiSocketServer\src\include" -I"C:\Eclipse\Firmware\FreeRTOS\src\include" -I"C:\Eclipse\Firmware\FreeRTOS\src\portable\GCC\ARM_CM4F" -I"C:\Eclipse\Firmware\RRFLibraries\src" -Os -Wall -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fexceptions -nostdlib -Wundef -Wdouble-promotion -Werror=return-type -Wsuggest-override -fsingle-precision-constant "-Wa,-ahl=EefcFlash.s" -fstack-usage -MMD -MP -MF"src/bossa/EefcFlash.d" -MT"src/bossa/EefcFlash.o" -o "src/bossa/EefcFlash.o" "../src/bossa/EefcFlash.cpp"
      In file included from C:\Eclipse\Firmware\RepRapFirmware\src/GCodes/GCodeException.h:11,
                       from ../src/bossa/Samba.h:37,
                       from ../src/bossa/BossaFlash.h:35,
                       from ../src/bossa/BossaFlash.cpp:29:
      C:\Eclipse\Firmware\RepRapFirmware\src/RepRapFirmware.h:49:10: fatal error: Core.h: No such file or directory
         49 | #include <Core.h>
            |          ^~~~~~~~
      compilation terminated.
      src/bossa/subdir.mk:42: recipe for target 'src/bossa/BossaFlash.o' failed
      make: *** [src/bossa/BossaFlash.o] Error 1
      In file included from C:\Eclipse\Firmware\RepRapFirmware\src/GCodes/GCodeException.h:11,
                       from ../src/bossa/Samba.h:37,
                       from ../src/bossa/Device.h:32,
                       from ../src/bossa/Device.cpp:29:
      C:\Eclipse\Firmware\RepRapFirmware\src/RepRapFirmware.h:49:10: fatal error: Core.h: No such file or directory
         49 | #include <Core.h>
            |          ^~~~~~~~
      compilation terminated.
      src/bossa/subdir.mk:42: recipe for target 'src/bossa/Device.o' failed
      make: *** [src/bossa/Device.o] Error 1
      In file included from C:\Eclipse\Firmware\RepRapFirmware\src/GCodes/GCodeException.h:11,
                       from ../src/bossa/Samba.h:37,
                       from ../src/bossa/BossaFlash.h:35,
                       from ../src/bossa/EefcFlash.h:34,
                       from ../src/bossa/EefcFlash.cpp:29:
      C:\Eclipse\Firmware\RepRapFirmware\src/RepRapFirmware.h:49:10: fatal error: Core.h: No such file or directory
         49 | #include <Core.h>
            |          ^~~~~~~~
      compilation terminated.
      src/bossa/subdir.mk:42: recipe for target 'src/bossa/EefcFlash.o' failed
      make: *** [src/bossa/EefcFlash.o] Error 1
      
      08:44:50 Build Failed. 13 errors, 0 warnings. (took 2s.185ms)
      
      

      I see a lot of references to Core.h not found. Anyone that can help me solve this?
      Thanks!

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @MikeS
        last edited by

        @mikes you need https://github.com/Duet3D/CoreN2G, not CoreNG

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        jazbaatbadalgayeundefined 1 Reply Last reply Reply Quote 0
        • MikeSundefined
          MikeS
          last edited by

          @jay_s_uk Thank you, i think the documentation need to be updated then because it says to use CoreNG.

          a931cf57-1245-4c7e-8b63-cabcbf2ebc3b-immagine.png

          Also CRC32APPENDER need to be copied from rrf tools folder to one of those inculded in PATH to get full compilation.

          jay_s_ukundefined dc42undefined 2 Replies Last reply Reply Quote 0
          • jay_s_ukundefined
            jay_s_uk @MikeS
            last edited by

            @mikes this is a better table to use
            6622a88a-b8a9-4661-ba78-b61a0841cce7-image.png

            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

            1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators @MikeS
              last edited by

              @mikes looks like you used the table for an old version of RRF with the source code for a more recent version.

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              1 Reply Last reply Reply Quote 0
              • Arplyuundefined
                Arplyu
                last edited by

                Hi!
                Just in case it might be useful for somebody else. For me, building for Duet2 required explicit copying DuetWiFiSocketServer/src/include/MessageFormats.h to RepRapFirmware/src/, although that was outlined in the official build manual as an optional action. Building for Duet3 did not required that action and went smoothly in the same Workspace in Eclipse (version 3.4-dev)

                jazbaatbadalgayeundefined 1 Reply Last reply Reply Quote 1
                • jazbaatbadalgayeundefined
                  jazbaatbadalgaye @Arplyu
                  last edited by

                  @arplyu Hey, so did you use CoreNG of the CoreN2G for Duet 3?

                  Arplyuundefined 1 Reply Last reply Reply Quote 0
                  • jazbaatbadalgayeundefined
                    jazbaatbadalgaye @jay_s_uk
                    last edited by

                    @jay_s_uk I also had to add CoreESP8266 and LwipESP8266 in the working directory in order for it to compile. Any ideas why?

                    1 Reply Last reply Reply Quote 0
                    • dc42undefined
                      dc42 administrators
                      last edited by

                      @jazbaatbadalgaye said in Firmware Build errors [help needed]:

                      @jay_s_uk I also had to add CoreESP8266 and LwipESP8266 in the working directory in order for it to compile. Any ideas why?

                      You don't need those unless you are trying to build DuetWiFiSocketServer.

                      Duet WiFi hardware designer and firmware engineer
                      Please do not ask me for Duet support via PM or email, use the forum
                      http://www.escher3d.com, https://miscsolutions.wordpress.com

                      1 Reply Last reply Reply Quote 1
                      • Arplyuundefined
                        Arplyu @jazbaatbadalgaye
                        last edited by

                        @jazbaatbadalgaye sorry for late response, I used CoreN2G

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA