This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
eCos compilation problem
- From: <rramesh at connextechnology dot com>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 21 Apr 2005 18:36:00 -0700
- Subject: [ECOS] eCos compilation problem
- Reply-to: <rramesh at connextechnology dot com>
Hi all,
I am building a MIPS simulator configuration. I managed to modify
hal_mips_sim.cdl with our processor specific information and overcame all
conflicts and attempted a compile. I am seeing an interesting error. I am
quite positive this is not because of my configuration.
I have used two tool MIPS tool chains a) tool chain that comes with eCos
mipsisa32-elf b) GNU-Lite from www.mips.com. Both give different results :-(
When I use mipsisa32-elf, one of the include file from variant.S introduces
a line typedef int ptrdiff_t; Since the file name is ending in .S, gcc is
invoking the assembler and I get the error invalid opcode 'typedef int
ptrdiff_t;'
When I attempt to compile using GNU-Lite, I get the following errors.
/ecos-c/cygwin/opt/ecos/ecos-2.0/examples/4kecsim_install/include/cyg/infra/
cyg_
type.h:85:18: operator '/' has no right operand
/ecos-c/cygwin/opt/ecos/ecos-2.0/examples/4kecsim_install/include/cyg/infra/
cyg_
type.h:439:64: #endif without #if
make: *** [src/variant.o.d] Error 1
The error in mipsisa32-elf, I was able to figure out by using -E and
-save-temps option. This does not work under GNU-Lite:-(
Can the gurus shed some light on this problem? If anyone wants to see the
result of the preprocessor output, I can send it out. I did not want to
clutter the emails with that this time.
Thanks and regards
Ramesh
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss