[Bug build/25289] New: Name conflict while compiling ada-exp.y

kryukov at frtk dot ru sourceware-bugzilla@sourceware.org
Tue Dec 17 21:55:00 GMT 2019


https://sourceware.org/bugzilla/show_bug.cgi?id=25289

            Bug ID: 25289
           Summary: Name conflict while compiling ada-exp.y
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: kryukov at frtk dot ru
  Target Milestone: ---

Hi

My system is CI server:

> $ clang --version
> Apple LLVM version 10.0.0 (clang-1000.11.45.5)
> Target: x86_64-apple-darwin17.7.0

Commands to reproduce:

> cd $GDB_DIR
> ./configure --target=mipsel-unknown-linux --with-system-zlib --with-python=no
> make configure-gdb CFLAGS='-w -O0' CXXFLAGS='-w -O0' MAKEINFO=true
> cd $GDB_DIR/opcodes && ./configure --target=mipsel-unknown-linux
> make libopcodes.a
> cd $GDB_DIR/libdecnumber && ./configure && make libdecnumber.a
> cd $GDB_DIR/readline && ./configure && cd readline && make libreadline.a
> cd $GDB_DIR/libctf && ./configure && make libctf.la
> cd $GDB_DIR/gdb
> make gdb CFLAGS='-w -O0' CXXFLAGS='-w -O0' MAKEINFO=true

The error message is:

> In file included from ada-exp.y:38:
> In file included from ./defs.h:652:
> In file included from ./utils.h:24:
> In file included from ./exceptions.h:23:
> ./ui-out.h:81:5: error: expected identifier
>     STRING,
>     ^
> ada-exp.c:125:16: note: expanded from macro 'STRING'
> #define STRING 265
>                ^
> In file included from ada-exp.y:38:
> In file included from ./defs.h:652:
> In file included from ./utils.h:24:
> In file included from ./exceptions.h:23:
> ./ui-out.h:129:26: error: expected unqualified-id
>   tmp.kind = field_kind::STRING;
>                          ^
> ada-exp.c:125:16: note: expanded from macro 'STRING'
> #define STRING 265
>                ^
> 2 errors generated.
> make: *** [ada-exp.o] Error 1

Could you please check if define/enum name conflict can be resolved?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list