Bug 196220

Summary: devel/git: base compiler CONFLICTS_BUILD with devel/utf8cpp: builtin/blame.c:25: In file included from /usr/local/include/utf8.h:31: utf8/core.h:31:10: fatal error: 'iterator' file not foun
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Renato Botelho <garga>
Status: Closed FIXED    
Severity: Affects Only Me CC: k, wxs
Priority: --- Keywords: patch
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
mark default ports include path as -isystem none

Description Jan Beich freebsd_committer freebsd_triage 2014-12-23 00:25:58 UTC
cc -o builtin/blame.o -c -MF builtin/.depend/blame.o.d -MQ builtin/blame.o -MMD -MP -I/usr/local/include -O2 -pipe -fstack-protector -I. -I/usr/local/include -I/usr/local/include -I/usr/include -DUSE_ST_TIMESPEC -DNO_GETTEXT -DOLD_ICONV -pthread -DHAVE_PATHS_H -DHAVE_STRINGS_H -DGMTIME_UNRELIABLE_ERRORS -DSHA1_HEADER='<openssl/sha.h>'  -DFREAD_READS_DIRECTORIES -DDIR_HAS_BSD_GROUP_SEMANTICS -DSHELL_PATH='"/bin/sh"'  builtin/blame.c
In file included from builtin/blame.c:25:
In file included from /usr/local/include/utf8.h:31:
In file included from /usr/local/include/utf8/checked.h:31:
/usr/local/include/utf8/core.h:31:10: fatal error: 'iterator' file not found
#include <iterator>
         ^
1 error generated.

Same issue as bug 193187.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-12-23 00:25:58 UTC
Maintainers CC'd
Comment 2 Jan Beich freebsd_committer freebsd_triage 2014-12-23 00:26:44 UTC
Created attachment 150888 [details]
mark default ports include path as -isystem
Comment 3 Jan Beich freebsd_committer freebsd_triage 2014-12-23 00:52:08 UTC
Not a devel/utf8cpp bug, just base compiler not having consistent includes with ports versions of lang/(gcc|clang)*. toolchain@ considers "/usr/local/include by default" a linuxism ad absurdum by ignoring freebsdisms it introduces.
Comment 4 Baptiste Daroussin freebsd_committer freebsd_triage 2015-01-25 09:31:49 UTC
Assign to new maintainer.
Comment 5 commit-hook freebsd_committer freebsd_triage 2015-01-25 12:53:38 UTC
A commit references this bug:

Author: jbeich
Date: Sun Jan 25 12:53:08 UTC 2015
New revision: 377892
URL: https://svnweb.freebsd.org/changeset/ports/377892

Log:
  Unbreak build with devel/utf8cpp installed

  Let preprocessor know ${LOCALBASE}/include is a system include path,
  so #include "..." shouldn't try to pick headers from there. lang/gcc*
  and lang/clang* already do the right thing.

  PR:		196220
  Differential Revision:	https://reviews.freebsd.org/D1664
  Approved by:	garga (maintainer)
  Approved by:	bapt (mentor)

Changes:
  head/devel/git/Makefile