This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: crt0.o from newlib has ARM32-only routines when building gcc for arm-eabi


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
>> <david.fernandez.work@googlemail.com> 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?


--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]