From owner-freebsd-ports@freebsd.org Fri Oct 7 11:27:49 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4D94BEC20D for ; Fri, 7 Oct 2016 11:27:49 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 31BF8356 for ; Fri, 7 Oct 2016 11:27:48 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [10.192.1.157] (unknown [178.20.50.10]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id D6D573C67E; Fri, 7 Oct 2016 13:27:45 +0200 (CEST) Subject: Re: graphics/opencv2-core: compiler error on CURRENT: error: 'stddef.h' file not found Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_E8A005DC-8077-454E-95F2-762F8AD725FF"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6.1 From: Dimitry Andric In-Reply-To: <20161007102619.7989b299.ohartman@zedat.fu-berlin.de> Date: Fri, 7 Oct 2016 13:27:19 +0200 Cc: FreeBSD Ports Message-Id: <82D50395-FC1C-475B-B414-C83EB90AAB77@FreeBSD.org> References: <20161007102619.7989b299.ohartman@zedat.fu-berlin.de> To: "O. Hartmann" X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Oct 2016 11:27:49 -0000 --Apple-Mail=_E8A005DC-8077-454E-95F2-762F8AD725FF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 07 Oct 2016, at 10:26, O. Hartmann = wrote: >=20 > I'm being haunted by this error on two CURRENT systems, while several = other CURRENT > systems with identical src.conf and make.conf are not affected, please = see below. ... > cd /usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core = && /usr/bin/c++ > -DCVAPI_EXPORTS > = -I/usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/dynamicuda= /include > -I/usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core > = -I/usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core/src > = -I/usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core/inclu= de > -I/usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1 > -isystem /usr/local/include/eigen3 -isystem /usr/include/include -O2 = -pipe -O3 > -march=3Dnative -fstack-protector -fno-strict-aliasing -fsigned-char = -W > -Werror=3Dreturn-type -Werror=3Daddress -Werror=3Dsequence-point = -Wformat > -Werror=3Dformat-security -Wmissing-declarations -Wmissing-prototypes = -Wstrict-prototypes > -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo = -Wno-narrowing > -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args = -Wno-array-bounds > -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer = -msse -msse2 -mavx > -mavx2 -ffunction-sections -O2 -pipe -O3 -march=3Dnative = -fstack-protector > -fno-strict-aliasing -DNDEBUG -fPIC -o = CMakeFiles/opencv_core.dir/src/arithm.cpp.o ... > In file included > from = /usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core/include= /opencv2/core/core.hpp:53: > In file included from /usr/include/c++/v1/algorithm:624: In file = included > from /usr/include/c++/v1/initializer_list:47: = /usr/include/c++/v1/cstddef:43:15: fatal > error: 'stddef.h' file not found #include_next So for some reason, on your system, the compilation flags include -isystem /usr/include/include, which is rather strange. I would not expect this to break compilation in the fashion you are seeing. Do you have an /usr/include/include directory on your system, by any chance? That said, for me graphics/opencv2-core compiles just fine, and the compilation flags only have an -isystem option to point at the /usr/local/include/eigen3 directory. Maybe the problem lies in the eigen3 port? I assume this will have a pkg-config file, or some other way at getting the required CFLAGS and CXXFLAGS for using it. -Dimitry --Apple-Mail=_E8A005DC-8077-454E-95F2-762F8AD725FF Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAlf3hq4ACgkQsF6jCi4glqPzqACeL9zpKFEQ/I/d9stSyrQVQ8i1 SGcAoITomj3PskKSpr6paXpnasH+RhUA =HUgY -----END PGP SIGNATURE----- --Apple-Mail=_E8A005DC-8077-454E-95F2-762F8AD725FF--