This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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 compile/22395] New: ./configure picks up wrong compiler


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

            Bug ID: 22395
           Summary: ./configure picks up wrong compiler
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: compile
          Assignee: unassigned at sourceware dot org
          Reporter: hi-angel at yandex dot ru
  Target Milestone: ---

Upon building gdb with -flto I'm getting dozens of errors like:

        nat/linux-btrace.h:85:8: warning: type ‘struct btrace_target_info’
violates the C++ One Definition Rule [-Wodr]
         struct btrace_target_info
                        ^
        remote.c:13157:8: note: a different type is defined in another
translation unit
         struct btrace_target_info
                        ^
        nat/linux-btrace.h:102:5: note: the first difference of corresponding
definitions is field ‘variant’
           } variant;
                 ^
        remote.c:13157:8: note: a type with different number of fields is
defined in another translation unit
         struct btrace_target_info
                        ^

I didn't dig through all of them, but the primary reason seems to be that
build-toolchain picks up "g++" as the compiler, whereas the gdb source code
does not have .cpp files.

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

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