Bug 63516 - error when trying to build without a c++ compiler could be better
Summary: error when trying to build without a c++ compiler could be better
Status: RESOLVED DUPLICATE of bug 63509
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-12 19:54 UTC by tbsaunde
Modified: 2014-10-12 20:02 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tbsaunde 2014-10-12 19:54:43 UTC
If for whatever reason you miss the requirement that you need a c++ compiler to build the first error you hit is
checking for uintmax_t... yes
checking for uintptr_t... yes
checking for int64_t underlying type... long long
configure: error: error verifying int64_t uses long long
Makefile:4042: recipe for target 'configure-stage1-gcc' failed
make[2]: *** [configure-stage1-gcc] Error 1
make[2]: Leaving directory '/src/gcc-opt'
Makefile:21799: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2

Which happens because that configure check happens to use C++.  It seems to me explicitly checking for a C++ compiler would be better.  This is reproducably by putting a dummy g++ in your path that just exits 1.
make[1]: Leaving directory '/src/gcc-opt'
Comment 1 Manuel López-Ibáñez 2014-10-12 20:02:12 UTC
Dup.

*** This bug has been marked as a duplicate of bug 63509 ***