Segments landing in the same 64kb mapping

Linking everything together...
"C:\\Users\\Matthew\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp-xs2\\2302/bin/xtensa-esp32s2-elf-g++" "@C:\\Users\\Matthew\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-bd2b9390ef\\esp32s2/flags/ld_flags" "@C:\\Users\\Matthew\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-bd2b9390ef\\esp32s2/flags/ld_scripts" "-Wl,--Map=C:\\Users\\Matthew\\AppData\\Local\\Temp\\arduino\\sketches\\43084788D2A35FC361D7A18049951CD1/nrf_test.ino.map" "-LC:\\Users\\Matthew\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-bd2b9390ef\\esp32s2/lib" "-LC:\\Users\\Matthew\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-bd2b9390ef\\esp32s2/ld" "-LC:\\Users\\Matthew\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-bd2b9390ef\\esp32s2/qio_qspi" -Wl,--wrap=esp_panic_handler -Wl,--start-group "C:\\Users\\Matthew\\AppData\\Local\\Temp\\arduino\\sketches\\43084788D2A35FC361D7A18049951CD1\\sketch\\NRF24L01.cpp.o" "C:\\Users\\Matthew\\AppData\\Local\\Temp\\arduino\\sketches\\43084788D2A35FC361D7A18049951CD1\\sketch\\RF24.cpp.o" "C:\\Users\\Matthew\\AppData\\Local\\Temp\\arduino\\sketches\\43084788D2A35FC361D7A18049951CD1\\sketch\\nrf_test.ino.cpp.o" "C:\\Users\\Matthew\\AppData\\Local\\Temp\\arduino\\sketches\\43084788D2A35FC361D7A18049951CD1\\libraries\\SPI\\SPI.cpp.o" "C:\\Users\\Matthew\\AppData\\Local\\Temp\\arduino\\cores\\1c5658d068744b64c456d0fa5956c3d8\\core.a" "@C:\\Users\\Matthew\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-bd2b9390ef\\esp32s2/flags/ld_libs" -Wl,--end-group -Wl,-EL -o "C:\\Users\\Matthew\\AppData\\Local\\Temp\\arduino\\sketches\\43084788D2A35FC361D7A18049951CD1/nrf_test.ino.elf"
"C:\\Users\\Matthew\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esptool_py\\4.6/esptool.exe" --chip esp32s2 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB --elf-sha256-offset 0xb0 -o "C:\\Users\\Matthew\\AppData\\Local\\Temp\\arduino\\sketches\\43084788D2A35FC361D7A18049951CD1/nrf_test.ino.bin" "C:\\Users\\Matthew\\AppData\\Local\\Temp\\arduino\\sketches\\43084788D2A35FC361D7A18049951CD1/nrf_test.ino.elf"
esptool.py v4.6
Creating esp32s2 image...
Merged 2 ELF sections

A fatal error occurred: Segment loaded at 0x3f0001d0 lands in same 64KB flash mapping as segment loaded at 0x3f000020. Can't generate binary. Suggest changing linker script or ELF to merge sections.

Using library SPI at version 2.0.0 in folder: C:\Users\Matthew\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\libraries\SPI 
exit status 2

Compilation error: exit status 2

Can anyone explain what this error means and how to fix it?

(Also without verbose compile logging all I get is "exit status 2", which is doesn't give you anything to work with. The "A fatal error occurred" really needs to be part of the normal logging, not just verbose.)

I'm not an ESP32 user so can't tell you how to fix it.

For that I think that you should contact the maintainers of the board package; the IDE just works with what was provided by the board package.

In general I find verbose output during compilation not very useful. So I only enable it if I think that it is useful to provide the additional information in case I have an odd problem; for me not really a big action.

I've created an issue on their github. Let's see how that goes.

The maintainers worked out what was wrong and now I have a working build again. Something in one of the headers I'd brought in from elsewhere was causing the error.