This may or may not be a bug with crossdev. It could just be a configuration issue. I created arm-none-eabi-* toolchain with the instructions found here: https://wiki.gentoo.org/wiki/How_to_build_a_toolchain_for_arm_cortex-m_and_cortex-r The only change to those instructions I made was replacing the word "unknown" with "none" to make the installation compatible with the makefiles I already had. As for the actual bug, the toolchain fails to compile this project: https://github.com/blackmagic-debug/blackmagic The compilation output is here: https://dpaste.com/2LWXU22F7 Steps to reproduce: # first run all instructions from above wiki to install the toolchain, then git clone https://github.com/blackmagic-debug/blackmagic.git cd blackmagic make I know the issue has something to do with the toolchain because I downloaded the toolchain from the arm website and compiled with that and it worked.I did this with the following command: CROSS_COMPILE="/path/to/downloaded/arm/toolchain/bin/arm-none-eabi-" make -j20 This is the first time I've submitted a bug here. Please let me know if I can make the submission any better.
Could you attach the failed log here for posterity etc? Also, is sys-libs/newlib[nano] installed? (I know you have USE=nano in your instructions, but just checking).
(In reply to Sam James from comment #1) > Could you attach the failed log here for posterity etc? > > Also, is sys-libs/newlib[nano] installed? (I know you have USE=nano in your > instructions, but just checking). Oh, and what version of newlib?
Created attachment 765832 [details] failed compilation output I've attached a txt file with the failed compilation output. Also, my sys-libs/newlib does not have the "nano" use flag set. I will try enabling that. My cross-arm-none-eabi/newlib is version 4.2.0.20211231. My sys-libs/newlib is version 9999 0.o
It's been a while, but this bug was resolved at some point. Black magic firmware builds correctly using this toolchain now.