Bug 44432 - [boot with C++] configure does not check presence of host C++ compiler
Summary: [boot with C++] configure does not check presence of host C++ compiler
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: build, patch
Depends on:
Blocks: 44433
  Show dependency treegraph
 
Reported: 2010-06-06 11:50 UTC by Richard Biener
Modified: 2010-06-09 10:47 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work: 4.6.0
Known to fail:
Last reconfirmed: 2010-06-08 22:50:20


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Biener 2010-06-06 11:50:34 UTC
Without a C++ host compiler (AC_PROG_CXX fails) bootsrap with --enbale-build-with-cxx fails like

config.status: creating nm
config.status: creating Makefile
config.status: creating gccbug
config.status: creating ada/gcc-interface/Makefile
config.status: creating ada/Makefile
config.status: creating auto-host.h
config.status: executing default commands
make[2]: Leaving directory `/home/abuild/rguenther/obj'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/abuild/rguenther/obj'
make: *** [all] Error 2

instead of complaining for the lack of a C++ host compiler.
Comment 1 Jorn Wolfgang Rennecke 2010-06-08 22:50:20 UTC
A patch is here:
http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00835.html
Comment 2 Jorn Wolfgang Rennecke 2010-06-09 10:32:39 UTC
Subject: Bug 44432

Author: amylaar
Date: Wed Jun  9 10:32:23 2010
New Revision: 160460

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160460
Log:
	PR bootstrap/44432
	* configure.ac: Before using ZW_PROG_COMPILER_DEPENDENCIES for C++,
	check that C++ compiler works.
	* configure: Regenerate.

Modified:
    trunk/libcpp/ChangeLog
    trunk/libcpp/configure
    trunk/libcpp/configure.ac

Comment 3 Jorn Wolfgang Rennecke 2010-06-09 10:47:10 UTC
Fixed in trunk by revision 160460.