Problem with building powerpc-rtems4.11-gcc

Ralf Corsepius ralf.corsepius at rtems.org
Thu Sep 9 14:57:35 UTC 2010


On 09/09/2010 04:16 PM, Steven Grunza wrote:
>> -----Original Message-----
>> From: Joel Sherrill [mailto:joel.sherrill at OARcorp.com]
>> Sent: Thursday, September 09, 2010 10:03 AM
>> To: Steven Grunza
>> Cc: rtems-users at rtems.org
>> Subject: Re: Problem with building powerpc-rtems4.11-gcc
>>
>> On 09/09/2010 08:55 AM, Steven Grunza wrote:
>>> I'm currently changing build machines from a single CPU CentOS4
>> box to a
>>> Core2Quad CentOS5 box.  Part of the change is the new machine has
>> GCC
>>> 4.1.2 instead of 3.4.6.  The new machine is also running 64-bit
>> (a first
>>> for me) instead of 32-bit.
>>>
>>>
>>> Binutils 2.20.1 built and installed ok but gcc 4.5.1 is giving me
>> a
>>> strange error; it looks like the native compiler can't compile
>> the
>>> source to gcc-4.5.1:
>>>
>> What is your PATH when building gcc?  I have a hunch that
>> you forgot to put the RTEMS cross-assembler at the head
>> of your PATH.  It is likely using the native as which won't
>> work for powerpc code. :)
>
>
> Actually, it should be the native GCC since I'm building the
> cross-compiler.

Why don't you use the prebuilt rpms?

c.f. ftp://ftp.rtems.org/pub/rtems/<rtems-version>/centos/<arch>

> I'm not sure why having the . in my path caused a problem
Rest assured, it does.

>>> If this didn't build ok on the CentOS4-32bit machine I would just
>> assume
>>> user error but I've run out of things to check.  Any suggestions
>> on
>>> what's wrong or where to look?
Use the prebuilt rpms, or switch to a newer OS.

Both CentOS4 and CentOS5 are too old to make good development platforms.

Ralf



More information about the users mailing list