Hello,

I am attempting to compile the kernel and getting blocked by the following 
error:

   ../../../../kern/subr_devsw.c:424:29: error: 'bi' may be used uninitialized 
in this function [-Werror=maybe-uninitialized]
   localcount_drain(bdevswref[bi].dr_lc,
                             ^
I am using NetBSD 9.2 on an amd64 system, and I'm attempting to build the wifi 
branch of src-draft. Here is my gcc -v output:

   Using built-in specs.
   COLLECT_GCC=gcc
   COLLECT_LTO_WRAPPER=/usr/libexec/lto-wrapper
   Target: x86_64--netbsd
   Configured with: /usr/src/tools/gcc/../../external/gpl3/gcc/dist/configure 
--target=x86_64--netbsd --enable-long-long \
   --enable-threads --with-bugurl=http://www.NetBSD.org/Misc/send-pr.html 
--with-pkgversion='NetBSD nb4 20200810'\
   --with-system-zlib --without-isl --enable-__cxa_atexit 
--enable-libstdcxx-time=rt --enable-libstdcxx-threads                       \
   --with-diagnostics-color=auto-if-env --with-tune=nocona 
--with-default-libstdcxx-abi=new                                                
     \
    
--with-mpc-lib=/var/obj/mknative/amd64-x86_64/usr/src/external/lgpl3/mpc/lib/libmpc
                                                      \
    
--with-mpfr-lib=/var/obj/mknative/amd64-x86_64/usr/src/external/lgpl3/mpfr/lib/libmpfr
                                                    \
    
--with-gmp-lib=/var/obj/mknative/amd64-x86_64/usr/src/external/lgpl3/gmp/lib/libgmp
                                                       \
    --with-mpc-include=/usr/src/external/lgpl3/mpc/dist/src 
--with-mpfr-include=/usr/src/external/lgpl3/mpfr/dist/src         \
    --with-gmp-include=/usr/src/external/lgpl3/gmp/lib/libgmp/arch/x86_64 
--enable-tls --disable-multilib                               \
    --disable-libstdcxx-pch --build=x86_64--netbsd --host=x86_64--netbsd        
                                                                                
  \
    --with-sysroot=/var/obj/mknative/amd64-x86_64/usr/src/destdir.amd64
    Thread model: posix
    gcc version 7.5.0 (nb4 20200810)

Am I using the wrong version of gcc or something? All of my packages are up to 
date and it looks like this is the result of a commit
from back in March and I haven't seen anyone else mention being unable to build 
due to this.

Thanks for your help,
James

Reply via email to