Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Aug 2020 20:19:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 248995] devel/avarice: current llvm 11.0.0 fallout
Message-ID:  <bug-248995-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248995

            Bug ID: 248995
           Summary: devel/avarice: current llvm 11.0.0 fallout
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: joerg@FreeBSD.org
          Reporter: leres@freebsd.org
             Flags: maintainer-feedback?(joerg@FreeBSD.org)
          Assignee: joerg@FreeBSD.org

Building on FreeBSD 13.0-CURRENT (r364847) produces two fatal errors:

    --- devdescr.o ---
    devdescr.cc:2251:2: error: type 'gdb_io_reg_def_type []' cannot be narr=
owed
to 'bool' in initializer list [-Wc++11-narrowing]
            atmega32m1_io_registers,
            ^~~~~~~~~~~~~~~~~~~~~~~
    devdescr.cc:2251:2: note: insert an explicit cast to silence this issue
            atmega32m1_io_registers,
            ^~~~~~~~~~~~~~~~~~~~~~~
            static_cast<bool>(     )
    devdescr.cc:2375:2: error: type 'gdb_io_reg_def_type []' cannot be narr=
owed
to 'bool' in initializer list [-Wc++11-narrowing]
            atmega32c1_io_registers,
            ^~~~~~~~~~~~~~~~~~~~~~~
    devdescr.cc:2375:2: note: insert an explicit cast to silence this issue
            atmega32c1_io_registers,
            ^~~~~~~~~~~~~~~~~~~~~~~
            static_cast<bool>(     )
    devdescr.cc:2375:2: warning: address of array 'atmega32c1_io_registers'
will always evaluate to 'true' [-Wpointer-bool-conversion]
            atmega32c1_io_registers,
            ^~~~~~~~~~~~~~~~~~~~~~~
    devdescr.cc:2251:2: warning: address of array 'atmega32m1_io_registers'
will always evaluate to 'true' [-Wpointer-bool-conversion]
            atmega32m1_io_registers,
            ^~~~~~~~~~~~~~~~~~~~~~~
    2 warnings and 2 errors generated.

The problem appears to be two instances of static initialization of the wro=
ng
field. These look like straight up bugs to me that the newer compiler with
better warning detects.

I also filed an upstream bug report:

    https://sourceforge.net/p/avarice/bugs/28/

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248995-7788>