This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug compile/22395] New: ./configure picks up wrong compiler
- From: "hi-angel at yandex dot ru" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 04 Nov 2017 00:41:11 +0000
- Subject: [Bug compile/22395] New: ./configure picks up wrong compiler
- Auto-submitted: auto-generated
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.