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 bootstrap/19517] New: --enable-languages=c,ada enables Ada twice, and possibly breaks gcc/options.h in the build directory


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


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