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]
Other format: [Raw text]

[Bug regression/40800] libcpp breaks bootstrap



------- Comment #11 from sgk at troutmask dot apl dot washington dot edu  2009-07-19 05:30 -------
Subject: Re:  libcpp breaks bootstrap

On Sun, Jul 19, 2009 at 05:09:31AM -0000, jlquinn at optonline dot net wrote:
> 
> 
> ------- Comment #10 from jlquinn at optonline dot net  2009-07-19 05:09 -------
> (In reply to comment #9)
> > Looks like the configure is broken.
> 
> One thing I can see from the log is that configure is acting as if
> ENABLE_BUILD_WITH_CXX is enabled.  Can you try the following patch on
> libcpp/configure, and see if that fixes the problem?
> 
> 
> Index: configure
> ===================================================================
> --- configure   (revision 149777)
> +++ configure   (working copy)
> @@ -3342,7 +3342,7 @@
>            ac_config_commands="$ac_config_commands depdir"
> 
> 
> -if test "$ENABLE_BUILD_WITH_CXX" == "no"; then
> +if test "$ENABLE_BUILD_WITH_CXX" = "no"; then
>  depcc="$CC"   am_compiler_list=
> 
>  am_depcomp=$ac_aux_dir/depcomp
> @@ -3674,7 +3674,7 @@
>  # AC_CHECK_HEADERS is repeated to work around apparent autoconf 2.59 bug.  If
>  # AC_CHECK_HEADERS comes after the if clause, the last AC_LANG call gets used,
>  # no matter which branch is taken.
> -if test "$ENABLE_BUILD_WITH_CXX" == "no"; then
> +if test "$ENABLE_BUILD_WITH_CXX" = "no"; then
>     ac_ext=c
>  ac_cpp='$CPP $CPPFLAGS'
>  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
> 

This patch appears to fix the problem.  At least, bootstrap has made it
past the initial build of libcpp.  I don't know if this is the correct
fix in that I know very little about autoconf.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40800


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