pico-bootrom icon indicating copy to clipboard operation
pico-bootrom copied to clipboard

Section text will not fit in ROM

Open Gehrt-IT opened this issue 2 years ago • 2 comments

I tried building the bootrom on Windows and LInux, booth builds faile with the same error (windows example):

[build] c:/progra~2/armgnu~1/112202~1.02/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/bin/ld.exe: bootrom.elf section `.text' will not fit in region `ROM'
[build] c:/progra~2/armgnu~1/112202~1.02/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/bin/ld.exe: region `ROM' overflowed by 16384 bytes
[build] collect2.exe: error: ld returned 1 exit status
[build] NMAKE : fatal error U1077: "C:\PROGRA~2\ARMGNU~1\112202~1.02\bin\AR19DD~1.EXE": R³ckgabe-Code "0x1"
[build] Stop.
[build] NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\nmake.exe"": R³ckgabe-Code "0x2"
[build] Stop.
[build] NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\nmake.exe"": R³ckgabe-Code "0x2"
[build] Stop.
[build] Build finished with exit code 2

steps to reproduce: git clone https://github.com/raspberrypi/pico-bootrom cd pico-bootrom git submodule update --init mkdir build cd build cmake .. make -j4

Gehrt-IT avatar Jul 11 '22 16:07 Gehrt-IT

you have to use the exact compiler versions indicated in the README.md

kilograham avatar Jul 11 '22 16:07 kilograham

thanks, i will try that. still had the new compiler open from working with the pico SDK

Gehrt-IT avatar Jul 11 '22 16:07 Gehrt-IT