[Bug bootstrap/24062] New: Parse error in options.h

schnetter at aei dot mpg dot de gcc-bugzilla@gcc.gnu.org
Mon Sep 26 01:38:00 GMT 2005


I checked out gcc from CVS today, and I configured with

/Users/eschnett/src/gcc/configure   --prefix=/Users/eschnett/gcc --with-mpfr=/Users/eschnett --
enable-languages=c,c++,fortran,java,objc,treelang

A following "make bootstrap" aborts with

gcc -c   -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -
DENABLE_ASSERT_CHECKING -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-
prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-
format-attribute -fno-common   -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/Users/eschnett/
src/gcc/gcc -I/Users/eschnett/src/gcc/gcc/build -I/Users/eschnett/src/gcc/gcc/../include -I./../intl -
I/Users/eschnett/src/gcc/gcc/../libcpp/include -I/Users/eschnett/include    -o build/genmddeps.o /
Users/eschnett/src/gcc/gcc/genmddeps.c
In file included from ./tm.h:4,
                 from /Users/eschnett/src/gcc/gcc/genmddeps.c:21:
./options.h:572: error: parse error before ‘-’ token
./options.h:643: error: ‘eq’ undeclared here (not in a function)
./options.h:738: error: parse error before ‘,’ token
./options.h:862: error: parse error before ‘-’ token
./options.h:872: error: parse error before ‘-’ token
make[2]: *** [build/genmddeps.o] Error 1
make[1]: *** [stage1_build] Error 2
make: *** [bootstrap] Error 2

The (autogenerated?) file gcc/options.h contains near line 572 the lines

  OPT_fdelayed_branch,                       /* -fdelayed-branch */
  OPT_fdelete_null_pointer_checks,           /* -fdelete-null-pointer-checks */
  OPT_fdiagnostics_show_location_,           /* -fdiagnostics-show-location= */
  OPT_fdiagnostics_show-option,              /* -fdiagnostics-show-option */
  OPT_fdisable_assertions,                   /* -fdisable-assertions */
  OPT_fdisable_assertions_,                  /* -fdisable-assertions= */
  OPT_fdollar_ok,                            /* -fdollar-ok */

which contains a hyphen ("-") instead of an underscore ("_") in "show-options".

I think that this error has been there for more than a week.

-- 
           Summary: Parse error in options.h
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schnetter at aei dot mpg dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin8.2.0
  GCC host triplet: powerpc-apple-darwin8.2.0
GCC target triplet: powerpc-apple-darwin8.2.0


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



More information about the Gcc-bugs mailing list