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

Rolf Schroedter Rolf.Schroedter at dlr.de
Wed Jul 27 11:53:55 UTC 2005


I don't know whether this is a gcc issue or RTEMS or sparc-only  problem:

Making dependencies with
     sparc-rtems-gcc $(CFLAGS) -MM ...
fails not finding the system include <rtems.h>.

     sparc-rtems-gcc $(CFLAGS) -c ...
compiles successfully.

The workaround is to specify the system include explicitely for
making dependencies:
     sparc-rtems-gcc -isystem /opt/rtems-4.6/.../include $(CFLAGS) -MM ...
(using -I is bad because it includes loads of rtems-headers in the 
dependency file.

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

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




More information about the users mailing list