[MacPorts] #47022: msp430-gdb fails to build

MacPorts noreply at macports.org
Tue Mar 3 14:39:08 PST 2015


#47022: msp430-gdb fails to build
-------------------------+--------------------
  Reporter:  d.xin@…     |      Owner:  g5pw@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.3.3
Resolution:              |   Keywords:
      Port:  msp430-gdb  |
-------------------------+--------------------
Changes (by mf2k@…):

 * owner:  macports-tickets@… => g5pw@…


Old description:

> I tried to upgrade the outdated ports and msp430-gdb failed. I looked at
> the log file and the problem is the following:
>
> :info:build bfdio.c:580:31: error: 'memset' call operates on objects of
> type 'struct stat' while the size is based on a different type 'struct
> stat *' [-Werror,-Wsizeof-pointer-memaccess]
> :info:build   memset (statbuf, 0, sizeof (statbuf));
> :info:build           ~~~~~~~             ^~~~~~~
> :info:build bfdio.c:580:31: note: did you mean to dereference the
> argument to 'sizeof' (and multiply it by the number of elements)?
> :info:build   memset (statbuf, 0, sizeof (statbuf));
> :info:build                               ^~~~~~~
> :info:build 1 error generated.
> :info:build make[4]: *** [bfdio.lo] Error 1

New description:

 I tried to upgrade the outdated ports and msp430-gdb failed. I looked at
 the log file and the problem is the following:

 {{{
 :info:build bfdio.c:580:31: error: 'memset' call operates on objects of
 type 'struct stat' while the size is based on a different type 'struct
 stat *' [-Werror,-Wsizeof-pointer-memaccess]
 :info:build   memset (statbuf, 0, sizeof (statbuf));
 :info:build           ~~~~~~~             ^~~~~~~
 :info:build bfdio.c:580:31: note: did you mean to dereference the argument
 to 'sizeof' (and multiply it by the number of elements)?
 :info:build   memset (statbuf, 0, sizeof (statbuf));
 :info:build                               ^~~~~~~
 :info:build 1 error generated.
 :info:build make[4]: *** [bfdio.lo] Error 1
 }}}

--

Comment:

 In the future, please use WikiFormatting and Cc the port maintainers
 ({{{port info --maintainers msp430-gdb}}}), if any.

-- 
Ticket URL: <https://trac.macports.org/ticket/47022#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list