[Bug ada/71317] New: Compiling gnat for rtems fails at s-taprop.adb
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71317 Bug ID: 71317 Summary: Compiling gnat for rtems fails at s-taprop.adb Product: gcc Version: 6.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: soja-lists at aries dot uberspace.de Target Milestone: --- Recent versions of gnat fail to build for RTEMS because of missing/wrong declarations in s-osinte-rtems.ads which is inculded in s-taprop. I will provide a patch for gcc-5, gcc-6 and trunk.
[Bug ada/71317] Compiling gnat for rtems fails at s-taprop.adb
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71317 --- Comment #2 from Jan Sommer --- It's an undefined reference to clock_getres and warnings that there are multiple definitions in Get_Page_Size. I submitted a patch which adds the clock_getres declaration and fixes the Get_Page_Size declaration to be like in other s-osinte-*.ads files. See: https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg139987.html
[Bug ada/68169] New: s-osinte-rtems.ads is out of synch with type definitions of current newlib
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68169 Bug ID: 68169 Summary: s-osinte-rtems.ads is out of synch with type definitions of current newlib Product: gcc Version: 4.9.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: soja-lists at aries dot uberspace.de Target Milestone: --- For rtems the type definition of phtread_attr_t in s-osinte-rtems.ads and the corresponding one of current newlib are not equivalent. Thus not enough memory is reserved by ada for this type and the call to the initializer will cause a stack corruption at least for arm-rtems4.11-targets. I have tested the problem with the gcc4_9-branch and will provide a patch. The rtems-developers are aware of the problem.