https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122666

            Bug ID: 122666
           Summary: [16 regression] JSON-RPC support breaks Solaris build
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: diagnostics
          Assignee: dmalcolm at redhat dot com
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
            Target: *-*-solaris2.11

Solaris bootstrap is currently broken:

In file included from /usr/include/sys/socket.h:25,
                 from
/vol/gcc/src/hg/master/local/gcc/diagnostics/sarif-sink.cc:59:
/usr/include/sys/uio.h:192:17: error: attempt to use poisoned "bzero"
  192 |                 bzero(&(xuiop)->xu_hint, sizeof ((xuiop)->xu_hint)); \
      |            

This is due to sarif-sink.cc including <sys/socket.h> after system.h which
poisons bzero.

This issue has previously been seen in gcc/cp/mapper-client.cc and fixed
there by including <sys/socket.h> immediately after config.h.

Reply via email to