[Bug 295976] graphics/drm-515-kmod: compilation fails on stable/15 f77062f506f7

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295976

            Bug ID: 295976
           Summary: graphics/drm-515-kmod: compilation fails on stable/15
                    f77062f506f7
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: [email protected]
          Reporter: [email protected]
             Flags: maintainer-feedback?([email protected])
          Assignee: [email protected]

Scenario:
- bhyve VM just upgraded to stable/15 f77062f506f7
- recompiling ports (latest)
- graphics/drm-515-kmod gets recompiled due to FreeBSD version change (1501500
-> 1501501)

Result:
- The compilation fails with multiple errors in multiple files, all of the form
(copied from the full build log):

--- intel_context_sseu.o ---
In file included from
/usr/tmp/net/orion/z/SRC/FreeBSD/ports/MBi/main/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_6/drivers/gpu/drm/i915/gt/intel_context_sseu.c:12:
/usr/tmp/net/orion/z/SRC/FreeBSD/ports/MBi/main/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_6/drivers/gpu/drm/i915/gt/intel_ring.h:64:2:
error: default initialization of an object of type 'typeof (ring->size)' (aka
'const unsigned int') leaves the object 
uninitialized [-Werror,-Wdefault-const-init-var-unsafe]          
   64 |         typecheck(typeof(ring->size), prev);
      |         ^                     
/usr/src/sys/compat/linuxkpi/common/include/linux/typecheck.h:31:9: note:
expanded from macro 'typecheck'
   31 | ({      type __var1; \                                                  
      |              ^   
--- i915_request.o ---              
2 errors generated.
--- intel_renderstate.o ---                                                     
In file included from
/usr/tmp/net/orion/z/SRC/FreeBSD/ports/MBi/main/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_6/drivers/gpu/drm/i915/gt/intel_renderstate.c:10:
/usr/tmp/net/orion/z/SRC/FreeBSD/ports/MBi/main/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_6/drivers/gpu/drm/i915/gt/intel_ring.h:63:2:
error: default initialization of an object of type 'typeof (ring->size)' (aka
'const unsigned int') leaves the object 
uninitialized [-Werror,-Wdefault-const-init-var-unsafe]          
   63 |         typecheck(typeof(ring->size), next);
      |         ^                                                               
/usr/src/sys/compat/linuxkpi/common/include/linux/typecheck.h:31:9: note:
expanded from macro 'typecheck'
   31 | ({      type __var1; \
      |              ^                         
In file included from
/usr/tmp/net/orion/z/SRC/FreeBSD/ports/MBi/main/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_6/drivers/gpu/drm/i915/gt/intel_renderstate.c:10:
/usr/tmp/net/orion/z/SRC/FreeBSD/ports/MBi/main/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_6/drivers/gpu/drm/i915/gt/intel_ring.h:64:2:
error: default initialization of an object of type 'typeof (ring->size)' (aka
'const unsigned int') leaves the object 
uninitialized [-Werror,-Wdefault-const-init-var-unsafe]          
   64 |         typecheck(typeof(ring->size), prev);
      |         ^                                                               
/usr/src/sys/compat/linuxkpi/common/include/linux/typecheck.h:31:9: note:
expanded from macro 'typecheck'
   31 | ({      type __var1; \                                                  
      |              ^               

Expected result:
- Should compile successfully as it did on May 1, with stable/15 at
0baae6223a63 and latest ports at that time.

-- Martin

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.