Gentoo: ld: cannot find -lc_nano
On Gentoo I am running into the following error when trying to build the firmware:
./bootstrap.sh
ninja -C build/
...
...
...
[571/754] Linking target hw-tests/dual-core/dual-core1.elf.
FAILED: hw-tests/dual-core/dual-core1.elf
arm-none-eabi-gcc -o hw-tests/dual-core/dual-core1.elf 'hw-tests/dual-core/b5198ad@@dual-core1.elf@exe/core1.c.o' -Wl,--no-undefined -Wl,--whole-archive -Wl,--start-group lib/./sdk/./Libraries/CMSIS/Device/Maxim/MAX32665/libmax32665-startup-core1.a lib/./sdk/./Libraries/Boards/card10/libboard-card10.a lib/./sdk/./Libraries/CMSIS/Device/Maxim/MAX32665/libnewlib_heap.a -Wl,--no-whole-archive -Wl,--gc-sections -lm -mthumb -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -Wl,--start-group -lc -lnosys -Wl,--end-group --specs=nano.specs lib/./sdk/./Libraries/MAX32665PeriphDriver/libPeriphDriver.a -Wl,--end-group -Wl,-Map=/home/baccenfutter/src/card10.badge.events.ccc.de/firmware/build/hw-tests/dual-core//dual-core1.map -T /home/baccenfutter/src/card10.badge.events.ccc.de/firmware/lib/./sdk/./Libraries/CMSIS/Device/Maxim/MAX32665/Source/GCC/max32665_core1.ld --entry Reset_Handler '-Wl,-rpath,$ORIGIN/../../lib/sdk/Libraries/MAX32665PeriphDriver' -Wl,-rpath-link,/home/baccenfutter/src/card10.badge.events.ccc.de/firmware/build/lib/./sdk/./Libraries/MAX32665PeriphDriver/
/usr/libexec/gcc/arm-none-eabi/ld: cannot find -lc_nano
collect2: error: ld returned 1 exit status
[577/754] Generating qstrdefs.generated.h with a custom command.
ninja: build stopped: subcommand failed.