<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Hello All,</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">  Someprogress:  after doing some searching, the offending directory (where the wrong check is made) is rtems/testsuites/samples.  deleting the samples directory from the testsuites directory allowed the build to continue (and to fall on the next bug, but this will be reported shortly in another thread).</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">  I'm far from being an expert on the configure.ac and makefile.am stuff, but from looking into configure.ac in the testsuite/samples directory I suspect that the problem shows up because I'm building with --disable-cxx (I also built the compiler without c++ support, since I'm looking for Ada and C only).</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">  Can any expert comment on that?</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Thanks everybody</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Avy Atrominger</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><A href="mailto:astrominger@yahoo.com">astrominger@yahoo.com</A><BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Robert S. Grimes <rsg@alum.mit.edu><BR>To: avy st <astrominger@yahoo.com><BR>Cc: RTEMS mailing list <rtems-users@rtems.org><BR>Sent: Thursday, December 28, 2006 6:30:22 PM<BR>Subject: Re: Fw: problems building RTEMS 4.6.99.3<BR><BR>
<DIV>Sorry that didn't work.  Try linking to the host flavor?<BR><BR>Anyway, I agree it's only a hack, but it's the best I can do for you<BR>until one of the more knowledgeable people give you a better one!<BR><BR>Good luck!<BR>-Bob<BR><BR>avy st wrote:<BR>> Hello Bob,<BR>>  <BR>>   I saw the line.  It looked wierd to me as well, but I had no clue<BR>> why the sanity check refered to /lib/cpp.  You gave a possible answer<BR>> - there are some configurations where there should be a /lib/cpp, and<BR>> probably what we see is a configuration file bug, that mis-interprets<BR>> my configuration.  The question is - where, and how do I locate the bug?<BR>>  <BR>>   As for your suggestion, I tried it (I tried linking it to the target<BR>> flavor, though).  It didn't work.  Even if it did, it would be a hack,<BR>> and a correction was still needed.
 <BR>> Avy<BR>> ----- Original Message ----<BR>> From: Robert S. Grimes <rsg@alum.mit.edu><BR>> To: avy st <astrominger@yahoo.com><BR>> Cc: RTEMS mailing list <rtems-users@rtems.org><BR>> Sent: Thursday, December 28, 2006 5:18:39 PM<BR>> Subject: Re: Fw: problems building RTEMS 4.6.99.3<BR>><BR>> Hi Avy,<BR>><BR>> Not sure, but don't these lines look funny to you?<BR>><BR>>     checking how to run the C++ preprocessor... /lib/cpp<BR>>     configure: error: C++ preprocessor "/lib/cpp" fails sanity check<BR>><BR>> I'm not sure which cpp it is looking at (host or target), but I would<BR>> expect something like /usr/bin/cpp (host) or<BR>> /opt/rtems-tools-4.7/bin/powerpc-rtems-cpp (target).  I know _my_ cygwin<BR>> has no /lib/cpp.  I did check, and my Gentoo Linux box _does_ have a<BR>> /lib/cpp.  Again, I don't know what the
 configure script is looking for,<BR>> but in case it is looking for the host flavor, I would try (naively,<BR>> perhaps) creating a symbolic link (e.g. ln -s /usr/bin/cpp /lib/cpp) and<BR>> see if that works.<BR>><BR>> Funny, I didn't have that problem...<BR>><BR>> -Bob<BR>><BR>><BR>> avy st wrote:<BR>> > Hello all,<BR>> >  <BR>> > I'm trying to build the RTEMS toolset and RTEMS 4.6.99.3 for powerpc,<BR>> > hosted on cygwin, and supporting Ada.  I followed pretty much the<BR>> > instructions givn on<BR>> > <A href="http://www.rtems.com/wiki/index.php/BuildingUnderCygwin" target=_blank>http://www.rtems.com/wiki/index.php/BuildingUnderCygwin</A> (with the<BR>> > required modifications needed for Ada building), and got a problem<BR>> > when building RTEMS itself which blows with the following message:<BR>> >  <BR>> ><BR>> >    
 checking for RTEMS_NETWORKING... no<BR>> >     checking how to run the C++ preprocessor... /lib/cpp<BR>> >     configure: error: C++ preprocessor "/lib/cpp" fails sanity check<BR>> >     See `config.log' for more details.<BR>> >     configure: error:<BR>> >    <BR>> ../../../../../../../source/rtems-4.6.99.3/c/src/../../testsuites/samples/configure<BR>> >     failed for samples<BR>> >     configure: error: /bin/sh<BR>> >    <BR>> '../../../../../../source/rtems-4.6.99.3/c/src/../../testsuites/configure'<BR>> >     failed for ../../testsuites<BR>> >     make[2]: *** [psim] Error 1<BR>> >     make[2]: Leaving directory<BR>> >    <BR>>
 `/cygdrive/d/BuildGccCygwin/powerpc-rtems-4.7-tools/rtems-4.6.99.3/powerpc-rtems/c'<BR>> >     make[1]: *** [all-recursive] Error 1<BR>> >     make[1]: Leaving directory<BR>> >    <BR>> `/cygdrive/d/BuildGccCygwin/powerpc-rtems-4.7-tools/rtems-4.6.99.3/powerpc-rtems/c'<BR>> >     make: *** [all-recursive] Error 1<BR>> >      <BR>> ><BR>> > The config.log and the end of the make log of the make output are<BR>> > enclosed.<BR>> > Any Ideas?<BR>> > Thanks<BR>> > Avy Strominger<BR>> > astrominger@yahoo.com <mailto:astrominger@yahoo.com><BR>> ><BR>> > ------------------------------------------------------------------------<BR>> ><BR>> > _______________________________________________<BR>> > rtems-users mailing list<BR>> > rtems-users@rtems.com<BR>>
 > <A href="http://rtems.rtems.org/mailman/listinfo/rtems-users" target=_blank>http://rtems.rtems.org/mailman/listinfo/rtems-users</A><BR>> ><BR>></DIV></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR></DIV></div></body></html>