On 19/06/12 01:47, Khem Raj wrote: > > > On Monday, June 18, 2012, David Fernandez > > wrote: > > On 18/06/12 23:25, David Fernandez wrote: > >> On 18/06/12 22:42, Khem Raj wrote: > >>> On Mon, Jun 18, 2012 at 2:07 PM, David Fernandez > >>> > wrote: > >>>> Is that expected? As crt0.S in newlib has #ifdefs to choose the right > >>>> thumb-2, thumb or ARM specific assembler depending on the > predefined macros. > >>> look for compiler cmdline when this was compiled. Did you use > --with-mode=thumb > >>> when configuring the compiler ? > >> Gosh! I didn't. No idea that it needed a special parameter to have > thumb > >> only mode... even for a CPU that will refuse to compile without > "-mthumb"... > >> > >> Thanks for the tip. I'll try that soon. > >> > >> Cheers > > It fails if I use "--with-mode=thumb" > > > > The configuration goes ok (I use "configure --target=arm-eabi > > --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib > > --with-gxx-include-dir=/usr/local/arm-eabi/include --with-mode=thumb > > -v"), but when doing "make -w all", it fails when it tries multilib: > > > > ... > > make[2]: Leaving directory > > `/home/user/rpmbuild/BUILDROOT/arm-eabi/gcc-4.7.1/gcc' > > Checking multilib configuration for libgcc... > > mkdir -p -- arm-eabi/libgcc > > ... > > checking for suffix of object files... o > > ... > > configure: error: cannot compute suffix of object files: cannot compile > > See `config.log' for more details. > > make[1]: *** [configure-target-libgcc] Error 1 > > make[1]: Leaving directory > > `/home/user/rpmbuild/BUILDROOT/arm-eabi/gcc-4.7.1' > > make: *** [all] Error 2 > > make: Leaving directory > `/home/user/rpmbuild/BUILDROOT/arm-eabi/gcc-4.7.1' > > > > Any ideas? > > > > > > You have to show config.log from libgcc build tree Attached