On Sun, May 2, 2010 at 9:15 AM, Tom Hawkins <tomahawkins@xxxxxxxxx> wrote: > I now have been able to compile GCC (c, ada) and Newlib. Now I'm > coming back around to recompile GCC with the Newlib headers. The > problem I am now faced with is Newlib does not support dirent.h -- > dirent.h contains an #error pragma to force an error if compiled. But > gcc/ada/adadecode.c include dirent.h by way of adaint.h. It does not > appear that the include is optional in either adadecode.c or adaint.h. > Do I need to provide a definition for dirent.h? More info regarding the dirent.h problem with building GNAT with Newlib: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6853 http://sourceware.org/ml/newlib/2008/msg00242.html Master's Thesis "Ada05 compiler for ARM based systems" by Bartlomieji Horn: http://www.google.com/url?sa=t&source=web&ct=res&cd=8&ved=0CCoQFjAH&url=http%3A%2F%2Fwww.zsk.p.lodz.pl%2F~morawski%2FDyplomy%2FPraca%2520dyplomowa%2520p.%2520Horna.pdf&rct=j&q=gcc+gnat+newlib+dirent.h&ei=_YndS6qmKJCONYiy5esB&usg=AFQjCNEzdMpMGeWPkYcqFLh1i_GM30OGvQ&sig2=yUguDEmZ5Xgst8zTmB6FIQ