rtems.h---No such file or directory

Joel Sherrill joel.sherrill at OARcorp.com
Mon Nov 3 15:22:10 UTC 2008


Where is the rtems.h at the $prefix?

If you execute the same i386-rtems4.9-gcc command by hand and
add the -v option, what is the output?

I have no idea but suspect some oddness in a search path directory
that somehow isn't matching the mounts or $prefix.

--joel

kjh li wrote:
> Hello,
>
> I am attempting to get a system going on Windows xp under MinGW,
> and I am having problems compiling the test programs for a i386.
>
> I have installed MinGW , MSYS , msysDTK , and m4-1.4.7-MSYS
> followed by rtems4.9-tools-4, then rtems 4.9.0. Bootstrapped the
> system, configured, and installed according to the Wiki page. I have
> configured the tools for i386.
> cd /c
> mkdir src
> mkdir src/rtems
> cd /c/opt/src/rtems
> tar jxf /c/my-download/rtems4.9.0.tar.bz2
> cd rtems-4.9.0
> ./bootstrap
> cd ..
> mkdir i386
> cd i386
> export PATH=/c/opt/rtems-4.9/bin:${PATH}
> ../rtems-4.9.0/configure --target=i386-rtems4.9 --enable-multilib
> --prefix=/c/opt/src/rtems/i386
> make all install
> cd /c/opt/src/rtems
> tar jxf c:\my-download\examples-4.9.0.tar.bz2
>
> I have downloaded and installed the example programs and I am trying
> to build hello_world_c.
>
> I have set my RTEMS_MAKEFILE_PATH to
> /c/opt/src/rtems/i386/i386-rtems4.9/pc686 and when I try and do a
> make, gcc finds the Makefile.inc in the bsp directory, but the
> include of <rtems.h> in <bsp.h> (as well as the includes for the
> files in the directory rtems) result in the error:
>
> $ export RTEMS_MAKEFILE_PATH=/c/opt/src/rtems/i386/i386-rtems4.9/pc686
> lry at HJ-867C3DAC2BFA <mailto:lry at HJ-867C3DAC2BFA>
> /c/opt/src/rtems/examples-4.9.0/hello_world_c
> $ make
> 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
> In file included from test.c:5:
> c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:50:19:
> error: rtems.h: No such file or directory
> c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:51:26:
> error: rtems/iosupp.h: No such file or directory
> c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:52:27:
> error: rtems/console.h: No such file or directory
> c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:53:28:
> error: rtems/clockdrv.h: No such file or directory
> In file included from
> c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:54,
> from test.c:5:
> 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
> 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
> In file included from
> c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:54,
> from test.c:5:
> 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'
> 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
> 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'
> In file included from test.c:5:
> c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:55:25:
> error: rtems/bspIo.h: No such file or directory
> In file included from test.c:5:
> c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:164:
> error: expected '=', ',', ';', 'asm' or '__attribute__' before
> 'Interrupt_descriptor_table'
> c:/opt/src/rtems/i386/i386-rtems4.9/pc686/lib/include/bsp.h:167:
> error: expected '=', ',', ';', 'asm' or '__attribute__' before
> 'rtemsFreeMemStart'
> test.c:10: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'Init'
> test.c:35:28: error: rtems/confdefs.h: No such file or directory
> make: *** [o-optimize/test.o] Error 1
>
> How do I, correctly, get around this error?
>
> Thanks in advance,
> LHW
>
>
>
>
> ------------------------------------------------------------------------
> 雅虎邮箱,您的终生邮箱! <http://cn.mail.yahoo.com/> 


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





More information about the users mailing list