This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ 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: Problem building powerpc cross - array too large?



John Breen wrote:
> 
> >From: "William A. Gatliff" <bgat@billgatliff.com>
> >
> >I don't know anything about HPPA hosts, but I just ran it here on
> >Linux and it built just fine.
> 
> I doubt it's due to the host being HPPA, although at this point I'll believe
> anything.
> 
> >I'm a little suspicious about your --target=powerpc-elf-eabi command.
> >I used "powerpc-elf" (well, actually, "ppc-elf").
> >
> >Here's my configure statement:
> >
> >
> >    ../gcc-3.2.1/configure --target=ppc-elf \
> >       --prefix=/home/bgat/H-i686-pc-linux-gnu \
> >       --with-gnu-as --with-gnu-ld --disable-shared \
> >       --without-headers --with-newlib \
> >       --disable-threads --enable-languages=c \
> >       --with-local-prefix=/home/bgat/H-i686-pc-linux-gnu/ppc-elf \
> >       2>&1 | tee configure-log
> >    make all-gcc install-gcc 2>&1 | tee build-bootgcc/make-log
> 
> I tried rebuilding using ppc-elf, and it still dies in the same way.  I've
> included the actual commands below; they're virtually identical to yours
> except (a) the prefix is obviously different, and (b) I only did all-gcc.  I
> assume that wouldn't make a difference.
> 
> I'm not sure I understand why --with-local-prefix would need to be here,
> since I'm compiling --without-headers.  Will the local-prefix directory
> contain anything at this point?
> 
> One oddity I noticed this time: the first few lines of the configure output
> look like this:
> ----------
> Configuring for a hppa2.0-hp-hpux10.20 host.
> Copying no to /data/ecad_libs/gcc-3.2.1-ppc-elf/ppc-elf/sys-include
> ../../gcc-3.2.1/configure[765]: no:  not found.
> ----------
> Anyone know what this means, and if it's a problem?  Looks to me like a
> configuration option isn't getting passed/interpreted correctly.

I would say that it's pretty safe to assume it's a problem.  That means
that configure went looking for something it think it needs and couldn't
find it.  So it set the name of the variable for that item as "no" and
proceeded.

Did you move the newlib and libgloss subdirectories from the newlib
distribution under gcc 3.2.1 before configuring?  

My binaries for Cygwin and GNU/Linux hosts are built with this:

  ../gcc-3.2.1/configure --target=powerpc-eabi \
    --with-gnu-as --with-gnu-ld --with-newlib --verbose \
    --with-system-zlib --disable-nls \
    --enable-version-specific-runtime-libs \
    --prefix=/opt/gnucross \
    --enable-languages="c,c"


I do not think the --without-headers is needed and think something 
is going wrong when the configure is looking for system .h files.
That's what sys-include is for -- preplacement of system .h files
when building cross without newlib or another C library that can be
built
at the same time.

> Commands:
> ----------
>   107  cd ../binutils/
>   108  target=ppc-elf;
>        make distclean;
>        ../../gcc-3.2.1/configure
>          --prefix=/data/ecad_libs/gcc-3.2.1-${target}
>          --target=${target} 2>&1 | tee build.log;
>        make all install 2>&1 | tee build.log
>   111  cd ../gcc/
>   112  make distclean;
>        ../../gcc-3.2.1/configure
>          --target=${target}
>          --prefix=/data/ecad_libs/gcc-3.2.1-${target}
>          --with-gnu-as
>          --with-gnu-ld
>          --disable-shared
>          --without-headers
>          --with-newlib
>          --disable-threads
>          --enable-languages=c
>          --with-local-prefix=/data/ecad_libs/gcc-3.2.1-ppc-elf/ppc-elf
>          2>&1 | tee -a build.log;
>        make all-gcc 2>&1 | tee -a build.log
> 
> --
> John Breen
> 
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
> 
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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