Bug 197869

Summary: Fix lang/v8 build with clang 3.6.0
Product: Ports & Packages Reporter: Dimitry Andric <dim>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Many People Flags: bugzilla: maintainer-feedback? (sunpoet)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 197395    
Attachments:
Description Flags
Mark temporary typedefs in static asserts as unused none

Description Dimitry Andric freebsd_committer freebsd_triage 2015-02-20 23:04:06 UTC
Created attachment 153254 [details]
Mark temporary typedefs in static asserts as unused

During the exp-run in bug 197395, it was found that lang/v8 gives errors with clang 3.6.0:

http://package18.nyi.freebsd.org/data/headamd64PR197395-default/2015-02-11_23h04m51s/logs/errors/v8-3.18.5.log

This is because v8 is compiled with -Werror, and its hand-rolled implementation of static_assert uses temporary local typedefs.

To fix it, we can use the same approach as used in base, here:
https://svnweb.freebsd.org/base?view=revision&revision=278222
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-02-20 23:04:06 UTC
Auto-assigned to maintainer sunpoet@FreeBSD.org
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2015-02-21 11:39:14 UTC
It should be fixed in r379501 (tested with lang/clang36). Thanks!