On 2/11/2015 1:22 AM, Arnaud Charlet wrote: >> When building Ada for RTEMS, you need to pass in the CFLAGS_FOR_TARGET >> to see OS specific .h files. This was already done for the RTS but needed to >> be added to the process which extracts value settings from the .h files. >> >> This patch is against 4.9. OK to apply to 4.8, 4.9, and head assuming it >> applies cleanly? > This patch won't apply cleanly for head I think, where I suspect at least > part of your patch is OBE. OK. Rebuilding on the head. > It would be better to first have a patch for trunk (if still relevant) > and then backport it to the other branches, since changes on trunk have > already been done in a different way to address at least partly this issue > (e.g. use of GNATLIBCFLAGS_FOR_C in OSCONS_CPP, different computation of > OSCONS_CC). I am happy to do and from your description it sounds like the it would have built if the code had my previous patch to add CFLAGS_FOR_TARGET to the GNATLIBCFLAGS.
GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) $(CFLAGS_FOR_TARGET) \ -fexceptions -DIN_RTS -DHAVE_GETIPINFO But the build didn't get far enough to know. It fails before that with: gcc -c -g -O2 -gnatpg -gnata -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -I/users/joel/test-gcc/gcc/gcc/ada -I/users/joel/test-gcc/gcc/gcc/ada/gcc-interface /users/joel/test-gcc/gcc/gcc/ada/a-ioexce.ads -o ada/a-ioexce.o a-ioexce.ads:21:19: violation of restriction "No_Elaboration_Code" at system.ads:53 a-ioexce.ads:22:19: violation of restriction "No_Elaboration_Code" at system.ads:53 a-ioexce.ads:23:19: violation of restriction "No_Elaboration_Code" at system.ads:53 a-ioexce.ads:24:19: violation of restriction "No_Elaboration_Code" at system.ads:53 a-ioexce.ads:25:19: violation of restriction "No_Elaboration_Code" at system.ads:53 a-ioexce.ads:26:19: violation of restriction "No_Elaboration_Code" at system.ads:53 a-ioexce.ads:27:19: violation of restriction "No_Elaboration_Code" at system.ads:53 a-ioexce.ads:28:19: violation of restriction "No_Elaboration_Code" at system.ads:53 Any ideas? My native compiler is from the head back in August. I will rebuild it overnight and try again in the morning in case that's a factor. > Arno -- Joel Sherrill, Ph.D. Director of Research & Development joel.sherr...@oarcorp.com On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35805 Support Available (256) 722-9985