#398 closed defect (fixed)

Wrong gcc-include path

Reported by: Ralf Corsepius Owned by: Joel Sherrill
Priority: high Milestone: 2
Component: tool Version: unknown
Severity: critical Keywords:
Cc: bugs@…, ralf.corsepius@… Blocked By:


All rtems' gccs have -I/opt/rtems/include before -I/opt/rtems/<target>/include and -I/opt/rtems/lib/gcc-lib/<target>/include in their include path.

/opt/rtems/include is supposed to contain host headers only and not to be on target include-paths.

IMO, this qualifies as a general, fundamental and critical bug in all gcc cross-compilers.

At least all versions of gcc-3.x if not more


To see the effects: Put a header conflicting with one of RTEMS's system headers into /opt/rtems/include and try to compile an arbitrary c-files including this header.

Attachments (1)

gcc-3.2.2-prefix-include-dir.diff (342 bytes) - added by Ralf Corsepius on Dec 3, 2006 at 1:31:13 PM.

Download all attachments as: .zip

Change History (2)

comment:1 Changed on May 26, 2003 at 2:48:41 PM by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: analyzed->closed
State-Changed-Why: Patch included in gcc3.2.3newlib1.11.0-3. Still need to

track gcc's PR though.

Changed on Dec 3, 2006 at 1:31:13 PM by Ralf Corsepius


Note: See TracTickets for help on using tickets.