Using SVN-20090831-Native-Multilib
Compile fails with "C++ compiler not available, see config.log for details."
This, I think, is the appropriate section of "configure:"
for cxxflags_choice in $cxxflags_list; do
eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
echo "$as_me:$LINENO: checking C++ compiler $CXX $CPPFLAGS
$CXXFLAGS" >&5
echo $ECHO_N "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS...
$ECHO_C" >&6
gmp_prog_cxx_works=yes
# start with a plain "main()", then go on to further checks
if test "$gmp_prog_cxx_works" = yes; then
# remove anything that might look like compiler output to our "||"
expression
rm -f conftest* a.out b.out a.exe a_out.exe
cat >conftest.cc <<EOF
int main (void) { return 0; }
EOF
echo "Test compile: " >&5
gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
(eval $gmp_cxxcompile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
if test "$cross_compiling" = no; then
if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe ||
./conftest'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then :;
else
gmp_prog_cxx_works="no, program does not run"
fi
fi
else
gmp_prog_cxx_works="no"
fi
case $gmp_prog_cxx_works in
no*)
echo "failed program was:" >&5
cat conftest.cc >&5
;;
esac
rm -f conftest* a.out b.out a.exe a_out.exe
fi
The archives talked about a situation with gmp and gcc last year before
the stable release. I tried the various switches and flags for gmp in
Ch.6--with --prefix=/cross-tools. The results were the same.
This is beyond my level of knowlege so I will appreciate and perform any
suggestions and directions.
Thanks,
Dan
_______________________________________________
Clfs-support mailing list
Clfs-support@lists.cross-lfs.org
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org