This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

h8300-rtems configure problem in libstdc++-v3



Version: CVS

For some odd reason, the h8300-rtems g++ fails the configure
test that checks if it is newer than 2.95.  The conftest.C
code in question is:

#line 2575 "configure"
#include "confdefs.h"

  #if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
    ok
  #endif    

When I hack enough to figure out the command executed and check
the preprocessed output by hand, it appears to be OK:

bash$ sh -x j
+ /opt/test-gcc/build-h8/b-gcc/gcc/g++ -B/opt/test-gcc/build-h8/b-gcc/gcc/
-nost
dinc++ -L/opt/test-gcc/build-h8/b-gcc/h8300-rtems/libstdc++-v3/src
-L/opt/test-g
cc/build-h8/b-gcc/h8300-rtems/libstdc++-v3/src/.libs -nostdinc
-B/opt/test-gcc/b
uild-h8/b-gcc/h8300-rtems/newlib/ -isystem
/opt/test-gcc/build-h8/b-gcc/h8300-rt
ems/newlib/targ-include -isystem /opt/test-gcc/cvs-objs/gcc/newlib/libc/include
-B/usr2/test-gcc/install/h8300-rtems/bin/
-B/usr2/test-gcc/install/h8300-rtems/l
ib/ -isystem /usr2/test-gcc/install/h8300-rtems/include -E conftest.C
<command line>: warning: "cpu" re-asserted
<command line>: warning: "machine" re-asserted
# 2575 "configure"
# 1 "confdefs.h" 1
# 2576 "configure" 2


    ok                 

The "ok" above is what is supposed to be there.

My egrep return status is "0" so the following goes through the false case:

if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ok" >/dev/null 2>&1; then
  rm -rf conftest*
  gpp_satisfactory=yes
else
  #rm -rf conftest*
  { echo "configure: error: please upgrade to gcc-2.95 or above" 1>&2; exit 1;
}
fi
rm -f conftest*

The same source tree has compiled the i386-rtems target and did install
a libstdc++.a so I know it isn't THAT broken.  Any suggestions?


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]