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 server/20491] New: Failed to build GDBserver with --disable-build-with-cxx


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

            Bug ID: 20491
           Summary: Failed to build GDBserver with
                    --disable-build-with-cxx
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: server
          Assignee: unassigned at sourceware dot org
          Reporter: qiyao at gcc dot gnu.org
  Target Milestone: ---

If I configure gdbserver with --disable-build-with-cxx, and build it with new
gcc/glibc, the build failed like this,

/home/yao/SourceCode/gnu/gdb/git/gdb/gdbserver/linux-aarch64-low.c:404:1:
error: conflicting types for 'ps_get_thread_area'
 ps_get_thread_area (const struct ps_prochandle *ph,
 ^~~~~~~~~~~~~~~~~~
In file included from
/home/yao/SourceCode/gnu/gdb/git/gdb/gdbserver/gdb_proc_service.h:30:0,
                 from
/home/yao/SourceCode/gnu/gdb/git/gdb/gdbserver/linux-low.h:24,
                 from
/home/yao/SourceCode/gnu/gdb/git/gdb/gdbserver/linux-aarch64-low.c:23:
/scratch/yao/toolchain/gcc-7/aarch64-linux-gnu/sysroot/usr/include/proc_service.h:72:17:
note: previous declaration of 'ps_get_thread_area' was here
 extern ps_err_e ps_get_thread_area (struct ps_prochandle *,
                 ^~~~~~~~~~~~~~~~~~
make: *** [linux-aarch64-low.o] Error 1

The fix to PR 20311 installed proc_service.h and removes "const" from
ps_get_thread_area.

-- 
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]