Making dependencies with "x-rtems-gcc -MM" fails to find system includes

Rolf Schroedter Rolf.Schroedter at dlr.de
Wed Jul 27 13:03:59 UTC 2005


I'm using an installed rtems-4.6.

Ralf Corsepius wrote:
> On Wed, 2005-07-27 at 13:53 +0200, Rolf Schroedter wrote:
>>The workaround is to specify the system include explicitely for
>>making dependencies:
>>     sparc-rtems-gcc -isystem /opt/rtems-4.6/.../include $(CFLAGS) -MM ...
> 
> 
> When using an installed rtems-4.7 you should not have to specify any
> -isystem or -I options except for the BSP headers.

That's exactly my point. When running

sparc-rtems-gcc -qleon2 -msoft-float -mv8 -g -O2 -Wall -MM rtems-hello.c

I'm get:
rtems-hello.c:5:19: warning: rtems.h: No such file or directory
rtems-hello.c:10:52: warning: bsp.h: No such file or directory
rtems-hello.c:25:22: warning: confdefs.h: No such file or directory

Compilation works without errors or warnings.

Rolf.

---------------------------------------------------------------
Rolf Schroedter, German Aerospace Center

Remove .nospam to reply: mailto:Rolf.Schroedter at dlr.de.nospam




More information about the users mailing list