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 19/06/12 01:47, Khem Raj wrote:
>>>>
>>>>
>>>> On Monday, June 18, 2012, David Fernandez
>>>> <david.fernandez.work@googlemail.com
>>>> <mailto:david.fernandez.work@googlemail.com>> 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
>>>> >>> <david.fernandez.work@googlemail.com
>>>> <mailto: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?
>>>> >
>>>> >
>>>>
>>>> You have to show config.log from libgcc build tree
>>> Attached
>>>
>> On Tue, Jun 19, 2012 at 3:19 AM, Khem Raj <raj.khem@gmail.com> wrote:
>>
>> Add --disable-decimal-float to gcc configure
>>
>>
> That does not fix the problem... same error. I'm attaching the config.log.
>
I'm attaching the config log in fpu/libgcc too.

Seems that the option you proposed disables decimal floating point,
but does not avoid compiling libgcc for fpu.

Attachment: config.log
Description: Binary data

--
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]