Bug 219601 - devel/llvm38: 'assertion_failed__1019' declared as an array with a negative size
Summary: devel/llvm38: 'assertion_failed__1019' declared as an array with a negative size
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-27 15:47 UTC by O. Hartmann
Modified: 2017-05-30 18:18 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (brooks)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2017-05-27 15:47:13 UTC
Updating/compiling devel/llvm38 fails due to the error shown below. Host is running FreeBSD 12.0-CURRENT #10 r318970: Sat May 27 01:35:07 CEST 2017 amd64, WITH_LLD_IS_LD=yes set:

[...]
In file included from /usr/ports/devel/llvm38/work/compiler-rt-3.8.1.src/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:56:
/usr/include/sys/timeb.h:42:2: warning: "this file includes <sys/timeb.h> which is deprecated" [-W#warnings]
#warning "this file includes <sys/timeb.h> which is deprecated"
 ^
/usr/ports/devel/llvm38/work/compiler-rt-3.8.1.src/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:1019:1: error: 'assertion_failed__1019' declared as an array with a negative size
CHECK_SIZE_AND_OFFSET(dirent, d_ino);
Comment 1 commit-hook freebsd_committer 2017-05-30 18:15:30 UTC
A commit references this bug:

Author: brooks
Date: Tue May 30 18:14:45 UTC 2017
New revision: 442109
URL: https://svnweb.freebsd.org/changeset/ports/442109

Log:
  Apply ino64 patches.

  PR:		219601

Changes:
  head/devel/llvm38/Makefile
  head/devel/llvm38/files/compiler-rt-patch-canonical-syscalls
  head/devel/llvm38/files/compiler-rt-patch-ino64
Comment 2 Brooks Davis freebsd_committer 2017-05-30 18:18:31 UTC
The assertion looks like a wrongly sized dirent entry which the ino64 patches from kib@ addresses.