I want to build GCC from source as a cross compiler for ARM bare-metal targets. Specifically, I need support for the architectures armv4t and armv5te with softfp for both of them since they lack a proper FPU.
The (relevant) flags I used are
--with-cpu=arm946e-s --with-mode=arm --with-float=soft --enable-interwork --enable-multilib --with-multilib-list=armv4t,armv5te This way I tried to achieve that the compiler will default to armv5te with the --with-cpu option and still maintain the opportunity to build for armv4t.
Binutils build worked fine, however when building gcc's subdir gcc the multilib check failed with:
For arm946e-s real value is arm946e-s Error: --with-multilib-list=armv4t,armv5te not supported. make: *** [Makefile:4356: configure-gcc] Error 1 I looked up on how to enable armv5te support since armv4t with the arm7tdmi seems to be a default multilib target but found no results. There doesn't even seem to be a proper list of valid multilib targets. Removing the multilib list yielded a build of armv4t and armv7-a multilibs which I don't need to support.
How can I build both targets successfully with softfp?
--with-multilib-list=only takesrmprofileor/andaprofile, nothing elsearmv5teis not a cortex series architecture so neither profile will solve the problem