[RTEMS Project] #4896: Makefile.inc exported BSP include path not a system include path

RTEMS trac trac at rtems.org
Wed Apr 12 21:55:08 UTC 2023


#4896: Makefile.inc exported BSP include path not a system include path
--------------------------+-------------------------
  Reporter:  Chris Johns  |      Owner:  Chris Johns
      Type:  defect       |     Status:  assigned
  Priority:  normal       |  Milestone:  6.1
 Component:  build        |    Version:  6
  Severity:  normal       |   Keywords:
Blocked By:               |   Blocking:
--------------------------+-------------------------
 The BSP include path exported in the `Makefile.inc` set of files uses `-I`
 and that is not a system include. The RTEMS 5 and earlier `autoconf` build
 system provided a spec file using the `-B` option and that either added a
 system path or the spec file included a system path. Either way the BSP
 include path was added as a system include path and so the compiler placed
 it at the end of the include list.

 The `CPU_DEFINES` macro is part of `CPPFLAGS` exported by `Makefile.inc`
 and we cannot control how applications uses that variable so we need to
 make sure the BSP include path is exported as a system include path.

 The issue was found with EPICS. EPICS installs a header file called
 `link.h` under its include path. RTEMS now provides a header file called
 `link.h`. The `CPPFLAGS` are before the EPICS include path so our `link.h`
 was seen before the EPICS one and that broken the build.

--
Ticket URL: <http://devel.rtems.org/ticket/4896>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list