This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

Re: "too many input files" error from cpp


Jonathan Larmour wrote:

> Greg Shubin wrote:
> >
> > I've read the FAQ and the archives of this list. The standard answer
> > seems to be "you've moved the tools from where you built them. Either
> > put symlinks to the build directories or build them again". Well, I
> > haven't moved them from the build directory and I still get this. I am
> > bullding on Mandrake 7.1, which I believe is basically Redhat 6.2. I've
> > rebuilt the tools several times on two machine and I still get this
> > error. I also tried the latest snapshot (8/28 I think it was), and that
> > didn't even run (it wanted cpp0, which was nowhere to be found).
>
> Out of interest, do you have the tools at the head of your path? If you do
> `which cpp` what does it give you? Have you got GCC_EXEC_PREFIX set (the
> answer should be no)?
>
> I'm interested about what the cause is if not moved tools.

> Jifl
> --
> Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
> "Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

Here is my path:

/home/opt/ecos/ecos-1.3.1/tools/bin:/home/ecos/H-i586-pc-freebsd-gnu/bin:
/home/gshubin/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/home/gshubin/bin:

/home/gshubin/bin

Here is what I get when I run 'which cpp':

    cornfed:ecos-work$ which cpp
    /home/ecos/H-i586-pc-freebsd-gnu/bin/cpp

No, I don't have GCC_EXEC_PREFIX set.


Also, here are the configure and make commands I used to build the toolchain.
I used subdirectories under /home/ecos/build for binutils, gcc, and gdb. This
is on the FreeBSD system that doesn't work. BTW, I installed GNU make, since
the native BSD make isn't compatible.

/home/ecos/src/binutils/binutils-2.10/configure --target=powerpc-eabi
--prefix=/home/ecos/ --exec-prefix=/home/ecos/H-i586-pc-freebsd-gnu -v

make all install

/home/gshubin/src/gcc/gcc-2.95.2/configure --target=powerpc-eabi
--prefix=/home/gshubin/tools/ --with-gnu-as --with-gnu-ld --with-newlib -v

 make -w all-gcc install-gcc LANGUAGES="c c++"

/home/ecos/src/gdb/insight-5.0/configure --target=arm-elf --prefix=/home/ecos
--exec-prefix=/home/ecos/H-i586-pc-freebsd-gnu/ -v

 make -w all install



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