[Bug 251646] devel/gdb: fails to compile gdb-10.1/gdb/fbsd-kvm.c on CURRENT amd64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Dec 6 18:07:02 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251646

            Bug ID: 251646
           Summary: devel/gdb: fails to compile gdb-10.1/gdb/fbsd-kvm.c on
                    CURRENT amd64
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pizzamig at freebsd.org
          Reporter: Trond.Endrestol at ximalas.info
             Flags: maintainer-feedback?(pizzamig at freebsd.org)
          Assignee: pizzamig at freebsd.org
 Attachment #220320 text/plain
         mime type:

Created attachment 220320
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=220320&action=edit
Complete build log for devel/gdb at py37

Both the running system (host) and the system snapshot used by ports-mgmt/synth
are base/head amd64 r368387. The ports tree is ports/head at r557134.

  CXX    fbsd-kvm.o
/construction/xports/devel/gdb/work-py37/gdb-10.1/gdb/fbsd-kvm.c:342:10: error:
typedef 'section_offsets' cannot be referenced with a struct specifier
                struct section_offsets *new_offsets;
                       ^
/construction/xports/devel/gdb/work-py37/gdb-10.1/gdb/symtab.h:1351:32: note:
declared here
typedef std::vector<CORE_ADDR> section_offsets;
                               ^
/construction/xports/devel/gdb/work-py37/gdb-10.1/gdb/fbsd-kvm.c:349:22: error:
no member named 'num_sections' in 'objfile'; did you mean 'sections'?
                                symfile_objfile->num_sections);
                                                 ^~~~~~~~~~~~
                                                 sections
/construction/xports/devel/gdb/work-py37/gdb-10.1/gdb/../include/libiberty.h:365:55:
note: expanded from macro 'XALLOCAVEC'
#define XALLOCAVEC(T, N)        ((T *) alloca (sizeof (T) * (N)))
                                                             ^
/construction/xports/devel/gdb/work-py37/gdb-10.1/gdb/../include/libiberty.h:738:37:
note: expanded from macro 'alloca'
# define alloca(x) __builtin_alloca(x)
                                    ^
/construction/xports/devel/gdb/work-py37/gdb-10.1/gdb/objfiles.h:653:23: note:
'sections' declared here
  struct obj_section *sections = nullptr;
                      ^
/construction/xports/devel/gdb/work-py37/gdb-10.1/gdb/fbsd-kvm.c:351:37: error:
no member named 'num_sections' in 'objfile'
                        for (i = 0; i < symfile_objfile->num_sections; i++)
                                        ~~~~~~~~~~~~~~~  ^
3 errors generated.
gmake[3]: *** [Makefile:1625: fbsd-kvm.o] Error 1

Is this a pilot error on my part or an incompatibility with LLVM 11?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list