<div>Hello,<BR><BR>I am attempting to get a system going on Windows xp under MinGW, <BR>and I am having problems compiling the test programs for a i386.<BR><BR>I have installed MinGW , MSYS , msysDTK , and m4-1.4.7-MSYS<BR>followed by rtems4.9-tools-4, then rtems 4.9.0. Bootstrapped the <BR>system, configured, and installed according to the Wiki page. I have <BR>configured the tools for i386. </div> <div> </div> <div> cd /c<BR> mkdir src<BR> mkdir src/rtems<BR> cd /c/opt/src/rtems<BR> tar jxf /c/my-download/rtems4.9.0.tar.bz2<BR> cd rtems-4.9.0<BR> ./bootstrap<BR> cd ..<BR> mkdir
i386<BR> cd i386<BR> export PATH=/c/opt/rtems-4.9/bin:${PATH}</div> <div> ../rtems-4.9.0/configure --target=i386-rtems4.9 --enable-multilib --prefix=/c/opt/src/rtems/i386<BR> make all install<BR> cd /c/opt/src/rtems<BR> tar jxf c:\my-download\examples-4.9.0.tar.bz2<BR> </div> <div><BR>I have downloaded and installed the example programs and I am trying <BR>to build hello_world_c.<BR><BR>I have set my RTEMS_MAKEFILE_PATH to <BR>/c/opt/src/rtems/i386/i386-rtems4.9/pc686 and when I try and do a <BR>make, gcc finds the Makefile.inc in the bsp directory, but the <BR>include of <rtems.h> in <bsp.h> (as well as the includes for the <BR>files in the directory rtems) result in the error:<BR></div> <div><BR>$
export RTEMS_MAKEFILE_PATH=/c/opt/src/rtems/i386/i386-rtems4.9/pc686 </div> <div><A href="mailto:lry@HJ-867C3DAC2BFA">lry@HJ-867C3DAC2BFA</A> /c/opt/src/rtems/examples-4.9.0/hello_world_c<BR>$ make<BR>i386-rtems4.9-gcc --pipe -B/c/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/ -specs bsp_specs -qrtems -g -Wall -O2 -g -g -mtune=pentiumpro -c -o o-optimize/test.o test.c<BR>In file included from test.c:5:<BR>c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:50:19: error: rtems.h: No such file or directory<BR>c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:51:26: error: rtems/iosupp.h: No such file or directory<BR>c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:52:27: error: rtems/console.h: No such file or directory<BR>c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:53:28: error: rtems/clockdrv.h: No such file or directory<BR>In file included from
c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:54,<BR> from test.c:5:<BR>c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/libcpu/cpu.h:24:35: error: rtems/score/registers.h: No such file or directory<BR>c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/libcpu/cpu.h:31:36: error: rtems/score/interrupts.h: No such file or directory<BR>In file included from c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:54,<BR> from test.c:5:<BR>c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/libcpu/cpu.h:163: error: expected specifier-qualifier-list before 'rtems_raw_irq_hdl'<BR>c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/libcpu/cpu.h:203:30: error: rtems/score/idtr.h: No such file or
directory<BR>c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/libcpu/cpu.h:209: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'get_hdl_from_vector'<BR>In file included from test.c:5:<BR>c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:55:25: error: rtems/bspIo.h: No such file or directory<BR>In file included from test.c:5:<BR>c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:164: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Interrupt_descriptor_table'<BR>c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:167: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rtemsFreeMemStart'<BR>test.c:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Init'<BR>test.c:35:28: error: rtems/confdefs.h: No such file or directory<BR>make: *** [o-optimize/test.o] Error 1<BR></div> <div> <BR>How do I, correctly, get around this error?<BR><BR>Thanks in
advance,<BR>LHW<BR><BR><BR></div><BR><BR><p>
<hr size=1><a href="http://cn.mail.yahoo.com/"> ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊÏ䣡</a>