[Bug 228320] lang/v8 fails to build on 11.2-BETA1

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu May 17 17:15:15 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228320

            Bug ID: 228320
           Summary: lang/v8 fails to build on 11.2-BETA1
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet at FreeBSD.org
          Reporter: mgrooms at shrew.net
             Flags: maintainer-feedback?(sunpoet at FreeBSD.org)
          Assignee: sunpoet at FreeBSD.org

I believe this is due to 11.2 containing a newer version of LLVM. If I add the
following to the Makefile, the build completes successfully.

Makefile Diff ...

--- Makefile.old        2018-05-17 11:45:28.661295000 -0500
+++ Makefile    2018-05-17 11:45:45.353226000 -0500
@@ -39,6 +39,9 @@
 CXXFLAGS+=     -Wno-tautological-undefined-compare
 .if ${COMPILER_VERSION} >= 36
 CXXFLAGS+=     -Wno-unused-local-typedef
+.if ${COMPILER_VERSION} >= 60
+CXXFLAGS+=     -Wno-null-pointer-arithmetic -Wno-vexing-parse
+.endif
 .endif
 .endif
 .endif


Source code diff ( not sure how to make that conditional on clang 6.0 ) ...

--- src/stub-cache.cc.old       2018-05-17 12:13:38.104285000 -0500
+++ src/stub-cache.cc   2018-05-17 12:13:53.180471000 -0500
@@ -1474,7 +1474,7 @@
                                             Handle<Name> name) {
   return (FLAG_print_code_stubs && !name.is_null() && name->IsString())
       ? GetCodeWithFlags(flags, *Handle<String>::cast(name)->ToCString())
-      : GetCodeWithFlags(flags, reinterpret_cast<char*>(NULL));
+      : GetCodeWithFlags(flags, static_cast<char*>(NULL));
 }

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list