Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Jan 2016 06:15:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 205818] devel/ninja
Message-ID:  <bug-205818-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205818

            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@FreeBSD.org
          Reporter: kenneth.freidank@gmail.com
             Flags: maintainer-feedback?(gblach@FreeBSD.org)
          Assignee: gblach@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=3Dc++0x" in p=
lace
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=3Dninja
PORTVERSION=3D1.6.0

FreeBSD 10.2-RELEASE-p7 #0....
    root@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.
...

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205818-13>