[Bug 205818] devel/ninja
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jan 3 06:15:02 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205818
Bug ID: 205818
Summary: devel/ninja
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: Individual Port(s)
Assignee: gblach at FreeBSD.org
Reporter: kenneth.freidank at gmail.com
Flags: maintainer-feedback?(gblach at FreeBSD.org)
Assignee: gblach at FreeBSD.org
The ninja port is configured to compile with g++, not clang. Clang is the
FreeBSD default compiler and sets defines differently than g++. One error with
the default use of clang is use of a g++ deprecated and hence removed
/user/include/c++/v1/ext/hash_map file:
src/hash_map.h:91:10: fatal error: 'ext/hash_map' file not found
The port's Makefile correctly uses the gnu replacement for hash_map only if you
use g++, and NOT clang. I tried using "clang-cpp -x c++ -std=c++0x" in place
of ${CXX} in the port's Makefile, but I still had additional build errors.
To build the port, I substituted g++ for ${CXX} in the Makefile.
You will not experience this problem if you retained the old include files from
earlier g++ distributions!
Pertinent info...
PORTNAME=ninja
PORTVERSION=1.6.0
FreeBSD 10.2-RELEASE-p7 #0....
root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
# c++ --version
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: i386-unkown-freebsd10.2
Thread model: posix
# g++ --version
g++ (FreeBSD Ports Collection) 4.8.5
Copyright (C) 2015 Free Software Foundation, Inc.
...
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list