Arksine / katapult

Configurable bootloader for Klipper
GNU General Public License v3.0
390 stars 67 forks source link

Compile Error Mellow SB2040 V1 #116

Closed jsuhre closed 3 months ago

jsuhre commented 3 months ago

When attempting to compile Katapult firmware for a Mellow SB2040 V1 I'm getting a compile failure.

Installation is on a fresh install of MainsailOS on a RaspberryPI 4. Only extra is KlipperScreen has been installed. Compiling for a STM32 based EBB36 board worked without issue.

make menuconfig configuration config.sb2040v1.txt

Compile Error:

  Creating symbolic link out/board
  Building out/autoconf.h
  Compiling out/src/sched.o
  Compiling out/src/bootentry.o
  Compiling out/src/command.o
  Compiling out/src/flashcmd.o
  Compiling out/src/initial_pins.o
  Compiling out/src/led.o
  Compiling out/src/rp2040/armcm_canboot.o
  Compiling out/src/rp2040/main.o
  Compiling out/src/rp2040/gpio.o
  Compiling out/src/rp2040/timer.o
  Compiling out/src/rp2040/flash.o
  Compiling out/src/../lib/rp2040/pico/flash/hw_flash.o
  Compiling out/src/generic/armcm_irq.o
  Compiling out/src/generic/crc16_ccitt.o
  Compiling out/src/rp2040/can.o
  Compiling out/src/rp2040/chipid.o
  Compiling out/src/../lib/can2040/can2040.o
  Compiling out/src/generic/canserial.o
  Compiling out/src/generic/canbus.o
  Compiling out/src/../lib/fast-hash/fasthash.o
  Building out/compile_time_request.o
  Building rp2040 stage2 out/stage2.o
  Preprocessing out/src/rp2040/rp2040_link.ld
  Linking out/katapult.elf
  Creating bin file out/katapult.bin
  Creating legacy binary out/canboot.bin
  Building out/lib/rp2040/elf2uf2/elf2uf2
In file included from /usr/include/c++/10/map:60,
                 from lib/rp2040/elf2uf2/main.cpp:8:
/usr/include/c++/10/bits/stl_tree.h: In constructor ‘std::_Rb_tree_header::_Rb_tree_header(std::_Rb_tree_header&&)’:
/usr/include/c++/10/bits/stl_tree.h:189:5: internal compiler error: Illegal instruction
  189 |     }
      |     ^
0x7f92db8e17 __libc_start_main
        ../csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.
make: *** [src/rp2040/Makefile:43: out/lib/rp2040/elf2uf2/elf2uf2] Error 1
jsuhre commented 3 months ago

Closing, reattempted on a new fresh install and was successful