[MacPorts] #43353: clang-3.4: error: 'assertion_failed__839' declared as an array with a negative size

MacPorts noreply at macports.org
Sun Apr 13 23:31:17 PDT 2014


#43353: clang-3.4: error: 'assertion_failed__839' declared as an array with a
negative size
---------------------------+------------------------
  Reporter:  ryandesign@…  |      Owner:  jeremyhu@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.2.1
Resolution:                |   Keywords:  leopard
      Port:  clang-3.4     |
---------------------------+------------------------

Comment (by jeremyhu@…):

 sanitizer_platform_limits_posix.cc:839 is:
 {{{
 CHECK_SIZE_AND_OFFSET(dirent, d_ino);
 }}}

 {{{
 #define CHECK_SIZE_AND_OFFSET(CLASS, MEMBER)                       \
   COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *) NULL)->MEMBER) == \
                  sizeof(((CLASS *) NULL)->MEMBER));                \
   COMPILER_CHECK(offsetof(__sanitizer_##CLASS, MEMBER) ==          \
                  offsetof(CLASS, MEMBER))
 }}}

 so... __sanitizer_dirent doesn't match up with dirent.

 Can you attach the preprocessed source?

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


More information about the macports-tickets mailing list