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]

"too many input files" (still more - 2nd try)


{I apologize if this appears twice. I sent it last night, but this
morning I got a "failure notice", something about being on the ORBS list
and being a bad person. Maybe it's because I sent it through my
soon-to-be-former-ISP).

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 are some more clues. I added the gcc -v flag to the offending make
file.
The FreeBSD one says it is using a specs file, the Linux one says it
will use
builtin specs. I then tried to specify the corresponding Linux specs
file, but
that was not help. BTW the BSD and Linux specs files are identical. The
BSD
cpp prints "(ARM/ELF non-Linux)", the Linux one does not.

The Linux cpp compiles and links cppspec.c, which is what prints the
error
message. I suspect the BSD version does not use this file. I tried
putting
some printf's in there and they didn't show up.

This is from the FreeBSD make that works:

/usr/local/bin/make -r -C hal/arm/arch/v1_3_1 arm.inc
make[1]: Entering directory
`/home/gshubin/tmp/ecos-vvu/hal/arm/arch/v1_3_1'
arm-elf-gcc -v -mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes
-Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections
-fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority
-I/home/gshubin/tmp/ecos-vvu/install/include
-I/home/gshubin/opt/ecos/ecos-1.3.1/packages/hal/arm/arch/v1_3_1
-I/home/gshubin/opt/ecos/ecos-1.3.1/packages/hal/arm/arch/v1_3_1/src
-I/home/gshubin/opt/ecos/ecos-1.3.1/packages/hal/arm/arch/v1_3_1/tests
-I.
-Wp,-MD,arm.tmp -o hal_mk_defs.tmp -S
/home/gshubin/opt/ecos/ecos-1.3.1/packages/hal/arm/arch/v1_3_1/src/hal_mk_defs.c

Reading specs from
/home/tools/H-i686-freebsd-gnu//lib/gcc-lib/arm-elf/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /home/tools/H-i686-freebsd-gnu//lib/gcc-lib/arm-elf/2.95.2/cpp -lang-c
-v
-I/home/gshubin/tmp/ecos-vvu/install/include
-I/home/gshubin/opt/ecos/ecos-1.3.1/packages/hal/arm/arch/v1_3_1
-I/home/gshubin/opt/ecos/ecos-1.3.1/packages/hal/arm/arch/v1_3_1/src
-I/home/gshubin/opt/ecos/ecos-1.3.1/packages/hal/arm/arch/v1_3_1/tests
-I.
-D__GNUC__=2 -D__GNUC_MINOR__=95 -Darm -Darm_elf -D__ELF__ -D__arm__
-D__arm_elf__ -D__ELF__ -D__arm -D__arm_elf -Acpu(arm) -Amachine(arm)
-D__CHAR_UNSIGNED__ -D__OPTIMIZE__ -g -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual
-D__ARM_ARCH_4T__
-D__APCS_32__ -MD arm.tmp
/home/gshubin/opt/ecos/ecos-1.3.1/packages/hal/arm/arch/v1_3_1/src/hal_mk_defs.c

/var/tmp/ccs20390.i
GNU CPP version 2.95.2 19991024 (release) (ARM/ELF non-Linux)





>From Mandrake that doesn't work:

make[1]: Entering directory
`/home/gshubin/ecos-work/hal/arm/arch/v1_3_1'
arm-elf-gcc -v  -mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes

-Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections
-fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority
-I/home/gshubin/ecos-work/install/include
-I/usr/local/ecos-1.3.1/packages/hal/arm/arch/v1_3_1
-I/usr/local/ecos-1.3.1/packages/hal/arm/arch/v1_3_1/src
-I/usr/local/ecos-1.3.1/packages/hal/arm/arch/v1_3_1/tests -I.
-Wp,-MD,arm.tmp
-o hal_mk_defs.tmp -S
/usr/local/ecos-1.3.1/packages/hal/arm/arch/v1_3_1/src/hal_mk_defs.c
Using builtin specs.
gcc version 2.95.2 19991024 (release)
 cpp -lang-c -v -I/home/gshubin/ecos-work/install/include
-I/usr/local/ecos-1.3.1/packages/hal/arm/arch/v1_3_1
-I/usr/local/ecos-1.3.1/packages/hal/arm/arch/v1_3_1/src
-I/usr/local/ecos-1.3.1/packages/hal/arm/arch/v1_3_1/tests -I.
-D__GNUC__=2
-D__GNUC_MINOR__=95 -Darm -Darm_elf -D__ELF__ -D__arm__ -D__arm_elf__
-D__ELF__ -D__arm -D__arm_elf -Acpu(arm) -Amachine(arm)
-D__CHAR_UNSIGNED__
-D__OPTIMIZE__ -g -Wall -Wpointer-arith -Wstrict-prototypes -Winline
-Wundef
-Woverloaded-virtual -D__ARM_ARCH_4T__ -D__APCS_32__ -MD arm.tmp
/usr/local/ecos-1.3.1/packages/hal/arm/arch/v1_3_1/src/hal_mk_defs.c
/tmp/cc8xkMDh.i
cpp: too many input files
make[1]: *** [arm.inc] Error 1
make[1]: Leaving directory `/home/gshubin/ecos-work/hal/arm/arch/v1_3_1'

make: *** [build] Error 2





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