[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patches] Re: Cross compiler build instructions - PowerPC



On Fri, Jul 8, 2011 at 8:03 PM, Khem Raj <raj.khem@xxxxxxxxx> wrote:
> On Fri, Jul 8, 2011 at 1:08 AM, Rohit Arul Raj <rohitarulraj@xxxxxxxxx> wrote:
>> On Wed, Mar 23, 2011 at 5:55 PM, Joseph S. Myers
>> <joseph@xxxxxxxxxxxxxxxx> wrote:
>>> On Wed, 23 Mar 2011, Rohit Arul Raj wrote:
>>>
>>>> Hello All,
>>>>
>>>> I have been trying to build a cross compiler (for PowerPC) on x86_64
>>>> linux host. I followed the build procedure given in the link below:
>>>>
>>>> http://www.eglibc.org/archives/patches/msg00078.html
>>>
>>> You should be referring to the current checked-in version of this
>>> documentation, not a four-year-old draft.  However, it doesn't appear to
>>> have relevant changes.  Maxim, perhaps we should add
>>> --disable-decimal-float --disable-libffi --disable-libquadmath to the
>>> configure options for the first GCC in EGLIBC.cross-building?
>>>
>>> --
>>> Joseph S. Myers
>>> joseph@xxxxxxxxxxxxxxxx
>>>
>>
>> Any updates on this one yet?
>> Adding "--disable-decimal-float --disable-libffi
>> --disable-libquadmath" to configure options gives the same error.
>
> I a script based on these instructions which is uptodate and builds eglibc
> based toolchains
>
> https://github.com/kraj/ct-scripts/blob/master/toolchain-eglibc.sh
>
> You can try that
>
>>
>> Regards,
>> Rohit
>>
>

Thanks Khem, i was able to build the first stage GCC :)

The only difference i can find is:
In the eglibc cross-building instructions, for building the first
stage GCC we give "$make" command only (which works fine with GCC
4.1.1)

And with  your script you had given "$make all-gcc"

With the following configure options:
$src/$gccv/configure --target=$target --prefix=$tools
--without-header   --with-newlib --disable-shared --disable-threads
--disable-libssp --disable-libgomp --disable-libmudflap
--disable-libquadmath  --enable-languages=c

A) The following folders are built with "$make" which leads to the error:
     make[1]: Entering directory `/usr/rohit/PA/460test/ppc/obj/gcc1'
     make[2]: Entering directory `/usr/rohit/PA/460test/ppc/obj/gcc1/libiberty'
     make[3]: Entering directory
`/usr/rohit/PA/460test/ppc/obj/gcc1/libiberty/testsuite'
     make[2]: Entering directory
`/usr/rohit/PA/460test/ppc/obj/gcc1/fixincludes'
     make[2]: Entering directory `/usr/rohit/PA/460test/ppc/obj/gcc1/lto-plugin'
     make[3]: Entering directory `/usr/rohit/PA/460test/ppc/obj/gcc1/lto-plugin'
     make[2]: Entering directory `/usr/rohit/PA/460test/ppc/obj/gcc1/intl'
     make[2]: Entering directory
`/usr/rohit/PA/460test/ppc/obj/gcc1/build-x86_64-unknown-linux-gnu/libiberty'
     make[3]: Entering directory
`/usr/rohit/PA/460test/ppc/obj/gcc1/build-x86_64-unknown-linux-gnu/libiberty/testsuite'
     make[2]: Entering directory
`/usr/rohit/PA/460test/ppc/obj/gcc1/build-x86_64-unknown-linux-gnu/fixincludes'
     make[2]: Entering directory `/usr/rohit/PA/460test/ppc/obj/gcc1/zlib'
     make[2]: Entering directory `/usr/rohit/PA/460test/ppc/obj/gcc1/libcpp'
     make[2]: Entering directory
`/usr/rohit/PA/460test/ppc/obj/gcc1/libdecnumber'
     make[2]: Entering directory `/usr/rohit/PA/460test/ppc/obj/gcc1/gcc'
     make[2]: Entering directory
`/usr/rohit/PA/460test/ppc/obj/gcc1/powerpc-none-linux-gnu/libgcc'
     make[3]: Entering directory
`/usr/rohit/PA/460test/ppc/obj/gcc1/powerpc-none-linux-gnu/libgcc'
     make[4]: Entering directory
`/usr/rohit/PA/460test/ppc/obj/gcc1/powerpc-none-linux-gnu/nof/libgcc'

B) The following folders are built with "$make all-gcc".

     make[1]: Entering directory `/usr/rohit/PA/460test/ppc/obj/gcc1/libiberty'
     make[2]: Entering directory
`/usr/rohit/PA/460test/ppc/obj/gcc1/libiberty/testsuite'
     make[1]: Entering directory `/usr/rohit/PA/460test/ppc/obj/gcc1/lto-plugin'
     make[2]: Entering directory `/usr/rohit/PA/460test/ppc/obj/gcc1/lto-plugin'
     make[1]: Entering directory `/usr/rohit/PA/460test/ppc/obj/gcc1/intl'
     make[1]: Entering directory
`/usr/rohit/PA/460test/ppc/obj/gcc1/build-x86_64-unknown-linux-gnu/libiberty'
     make[2]: Entering directory
`/usr/rohit/PA/460test/ppc/obj/gcc1/build-x86_64-unknown-linux-gnu/libiberty/testsuite'
     make[1]: Entering directory
`/usr/rohit/PA/460test/ppc/obj/gcc1/build-x86_64-unknown-linux-gnu/fixincludes'
     make[1]: Entering directory `/usr/rohit/PA/460test/ppc/obj/gcc1/zlib'
     make[1]: Entering directory `/usr/rohit/PA/460test/ppc/obj/gcc1/libcpp'
     make[1]: Entering directory
`/usr/rohit/PA/460test/ppc/obj/gcc1/libdecnumber'
     make[1]: Entering directory
`/usr/rohit/PA/460test/ppc/obj/gcc1/fixincludes'
     make[1]: Entering directory `/usr/rohit/PA/460test/ppc/obj/gcc1/gcc'

Is this expected behavior?

Regards,
Rohit