I reproduced this with just gcc-core, I normally also build g++ and
gfortran as well. The problem goes away if I unpack the sources for
objc, which I am not really interested in.
Any takers? How/against what do I report this?
The problem is that now configure is processing config-lang.in files
even for languages that are not active by default.
It is a bit weird that objcp is included in the gcc-core download. It
could be included in the gcc-objc download (or in a separate objcp
download). But we can work around the problem by restricting the
operation of my patch to "allow typing `make cc1plus' on second
thought", to languages that are built by default.
I don't like the attached patch particularly, but if Salvatore confirms
that it works around his issue, I can give the necessary testing to the
patch.
Paolo
Index: configure.ac
===================================================================
--- configure.ac (revision 111635)
+++ configure.ac (working copy)
@@ -3328,13 +3328,6 @@ changequote(,)dnl
esac
changequote([,])dnl
- if test -f $srcdir/$subdir/lang.opt; then
- lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
- fi
- if test -f $srcdir/$subdir/$subdir-tree.def; then
- lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
- fi
-
language=
boot_language=
compilers=
@@ -3347,24 +3340,37 @@ changequote([,])dnl
echo "${srcdir}/$subdir/config-lang.in doesn't set \$language."
1>&2
exit 1
fi
- all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
- if test -f ${srcdir}/$subdir/Makefile.in
- then all_lang_makefiles="$subdir/Makefile"
- fi
- all_languages="$all_languages $language"
- if test "x$boot_language" = xyes
- then
- all_boot_languages="$all_boot_languages $language"
- fi
- all_compilers="$all_compilers $compilers"
- all_stagestuff="$all_stagestuff $stagestuff"
- all_outputs="$all_outputs $outputs"
- all_gtfiles="$all_gtfiles $gtfiles"
- for f in $gtfiles
- do
- all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
- all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
- done
+
+ # Don't include languages that are not built by default, unless
+ # specified explicitly.
+ case "$build_by_default:,$enable_languages," in
+ yes:* | no:*,$lang_alias,*)
+ all_lang_makefrags="$all_lang_makefrags
\$(srcdir)/$subdir/Make-lang.in"
+ if test -f $srcdir/$subdir/lang.opt; then
+ lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
+ fi
+ if test -f $srcdir/$subdir/$subdir-tree.def; then
+ lang_tree_files="$lang_tree_files
$srcdir/$subdir/$subdir-tree.def"
+ fi
+ if test -f ${srcdir}/$subdir/Makefile.in
+ then all_lang_makefiles="$subdir/Makefile"
+ fi
+ all_languages="$all_languages $language"
+ if test "x$boot_language" = xyes
+ then
+ all_boot_languages="$all_boot_languages $language"
+ fi
+ all_compilers="$all_compilers $compilers"
+ all_stagestuff="$all_stagestuff $stagestuff"
+ all_outputs="$all_outputs $outputs"
+ all_gtfiles="$all_gtfiles $gtfiles"
+ for f in $gtfiles
+ do
+ all_gtfiles_files_langs="$all_gtfiles_files_langs
${subdir} "
+ all_gtfiles_files_files="$all_gtfiles_files_files
${f} "
+ done
+ ;;
+ esac
;;
esac
done
Index: configure
===================================================================
--- configure (revision 111635)
+++ configure (working copy)
@@ -15845,13 +15748,6 @@ do
;;
esac
- if test -f $srcdir/$subdir/lang.opt; then
- lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
- fi
- if test -f $srcdir/$subdir/$subdir-tree.def; then
- lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
- fi
-
language=
boot_language=
compilers=
@@ -15864,24 +15760,37 @@ do
echo "${srcdir}/$subdir/config-lang.in doesn't set \$language."
1>&2
exit 1
fi
- all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
- if test -f ${srcdir}/$subdir/Makefile.in
- then all_lang_makefiles="$subdir/Makefile"
- fi
- all_languages="$all_languages $language"
- if test "x$boot_language" = xyes
- then
- all_boot_languages="$all_boot_languages $language"
- fi
- all_compilers="$all_compilers $compilers"
- all_stagestuff="$all_stagestuff $stagestuff"
- all_outputs="$all_outputs $outputs"
- all_gtfiles="$all_gtfiles $gtfiles"
- for f in $gtfiles
- do
- all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
- all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
- done
+
+ # Don't include languages that are not built by default, unless
+ # specified explicitly.
+ case "$build_by_default:,$enable_languages," in
+ yes:* | no:*,$lang_alias,*)
+ all_lang_makefrags="$all_lang_makefrags
\$(srcdir)/$subdir/Make-lang.in"
+ if test -f $srcdir/$subdir/lang.opt; then
+ lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
+ fi
+ if test -f $srcdir/$subdir/$subdir-tree.def; then
+ lang_tree_files="$lang_tree_files
$srcdir/$subdir/$subdir-tree.def"
+ fi
+ if test -f ${srcdir}/$subdir/Makefile.in
+ then all_lang_makefiles="$subdir/Makefile"
+ fi
+ all_languages="$all_languages $language"
+ if test "x$boot_language" = xyes
+ then
+ all_boot_languages="$all_boot_languages $language"
+ fi
+ all_compilers="$all_compilers $compilers"
+ all_stagestuff="$all_stagestuff $stagestuff"
+ all_outputs="$all_outputs $outputs"
+ all_gtfiles="$all_gtfiles $gtfiles"
+ for f in $gtfiles
+ do
+ all_gtfiles_files_langs="$all_gtfiles_files_langs
${subdir} "
+ all_gtfiles_files_files="$all_gtfiles_files_files
${f} "
+ done
+ ;;
+ esac
;;
esac
done