This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/19517] New: --enable-languages=c,ada enables Ada twice, and possibly breaks gcc/options.h in the build directory
- From: "bauhaus at futureapps dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2005 23:32:10 -0000
- Subject: [Bug bootstrap/19517] New: --enable-languages=c,ada enables Ada twice, and possibly breaks gcc/options.h in the build directory
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
In a fresh directory, I did
../src/gcc/configure --prefix=/opt/GCC/4-01 \
--disable-nls \
--enable-languages=ada,c
This gives
...
checking for MPFR... yes
The following languages will be built: c,ada,ada
*** This configuration is not supported in the following subdirectories:
...
Note the duplication of "ada".
Might this have to do with the new_enable_languages
in configure?
make boostrap builds a stage1 compiler. The stage1 compiler
stops with an error, in options.h.
In options.h, CL_Ada is defined twice:
#define CL_Ada (1 << 0)
#define CL_Ada (1 << 1)
#define CL_C (1 << 2)
#define CL_CXX (1 << 3)
#define CL_ObjC (1 << 4)
#define CL_ObjCXX (1 << 5)
There is a repeated warning during the build of the
stage1 compiler. As warnings are treated as errors later,
this (luckily?) stops the build process.
(options.h announces to have been generated by opts.sh,
which I couldn't find. Is that o.K.?)
CC is gcc-3.4.2 on Debian testing, with Ada enabled.
--
Summary: --enable-languages=c,ada enables Ada twice, and possibly
breaks gcc/options.h in the build directory
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bauhaus at futureapps dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19517