[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:36:22 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@…):
{{{
struct __sanitizer_dirent {
unsigned long long d_ino;
unsigned long long d_seekoff;
unsigned short d_reclen;
// more fields that we don't care about
};
}}}
{{{
#if !__DARWIN_64_BIT_INO_T
struct dirent {
ino_t d_ino; /* file number of entry */
__uint16_t d_reclen; /* length of this record */
__uint8_t d_type; /* file type, see below */
__uint8_t d_namlen; /* length of string in d_name */
char d_name[__DARWIN_MAXNAMLEN + 1]; /* name must be no longer
than this */
};
#endif /* !__DARWIN_64_BIT_INO_T */
{{{
#define __DARWIN_STRUCT_DIRENTRY { \
__uint64_t d_ino; /* file number of entry */ \
__uint64_t d_seekoff; /* seek offset (optional, used by servers)
*/ \
__uint16_t d_reclen; /* length of this record */ \
__uint16_t d_namlen; /* length of string in d_name */ \
__uint8_t d_type; /* file type, see below */ \
char d_name[__DARWIN_MAXPATHLEN]; /* entry name (up to
MAXPATHLEN bytes) */ \
}
#if __DARWIN_64_BIT_INO_T
struct dirent __DARWIN_STRUCT_DIRENTRY;
#endif /* __DARWIN_64_BIT_INO_T */
}}}
I wonder if you're getting the old legacy dirent for some reason...
--
Ticket URL: <https://trac.macports.org/ticket/43353#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list