[Bug 228319] database/mongodb fails to build on 11.2-BETA1
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu May 17 16:50:27 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228319
Bug ID: 228319
Summary: database/mongodb fails to build on 11.2-BETA1
Product: Ports & Packages
Version: Latest
Hardware: arm64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: mgrooms at shrew.net
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.
.if ${COMPILER_TYPE} == clang
.if ${COMPILER_VERSION} >= 60
CXXFLAGS+= -Wno-undefined-var-template -Wno-unused-private-field
-Wno-unused-local-typedef -Wno-undefined-bool-conversion
.endif
.endif
There is also one source code change that needs to be patched ...
../src/stub-cache.cc:1477:33: error: reinterpret_cast from 'nullptr_t' to 'char
*' is not allowed
: GetCodeWithFlags(flags, reinterpret_cast<char*>(NULL));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Changing the reinterpret_cast to a static_cast allows the build to complete.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list