From owner-freebsd-ports@freebsd.org Fri Oct 7 11:43:28 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 BDE19BECA32 for ; Fri, 7 Oct 2016 11:43:28 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7EF69EE0; Fri, 7 Oct 2016 11:43:28 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1bsTYk-001Rmp-AM>; Fri, 07 Oct 2016 13:43:26 +0200 Received: from x4e3447a5.dyn.telefonica.de ([78.52.71.165] helo=thor.walstatt.dynvpn.de) by inpost2.zedat.fu-berlin.de (Exim 4.85) with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (envelope-from ) id <1bsTYj-002Qmd-Og>; Fri, 07 Oct 2016 13:43:26 +0200 Date: Fri, 7 Oct 2016 13:43:20 +0200 From: "O. Hartmann" To: Dimitry Andric Cc: FreeBSD Ports Subject: Re: graphics/opencv2-core: compiler error on CURRENT: error: 'stddef.h' file not found Message-ID: <20161007134320.2b241a96.ohartman@zedat.fu-berlin.de> In-Reply-To: <82D50395-FC1C-475B-B414-C83EB90AAB77@FreeBSD.org> References: <20161007102619.7989b299.ohartman@zedat.fu-berlin.de> <82D50395-FC1C-475B-B414-C83EB90AAB77@FreeBSD.org> Organization: FU Berlin X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.29; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/oaDbo3D7MBihYNCH7D.Y6N2"; protocol="application/pgp-signature" X-Originating-IP: 78.52.71.165 X-ZEDAT-Hint: A 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:43:28 -0000 --Sig_/oaDbo3D7MBihYNCH7D.Y6N2 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Fri, 7 Oct 2016 13:27:19 +0200 Dimitry Andric schrieb: > On 07 Oct 2016, at 10:26, O. Hartmann wrote: > >=20 > > I'm being haunted by this error on two CURRENT systems, while several o= ther CURRENT > > systems with identical src.conf and make.conf are not affected, please = see below. =20 > ... > > 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/dynamic= uda/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/in= clude > > -I/usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1 > > -isystem /usr/local/include/eigen3 -isystem /usr/include/include -O2 -p= ipe -O3 > > -march=3Dnative -fstack-protector -fno-strict-aliasing -fsigned-char = -W > > -Werror=3Dreturn-type -Werror=3Daddress -Werror=3Dsequence-point -Wform= at > > -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 =20 > ... > > 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 includ= ed > > from /usr/include/c++/v1/initializer_list:47: /usr/include/c++/v1/cstdd= ef:43:15: fatal > > error: 'stddef.h' file not found #include_next =20 >=20 > 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? YES :-( /usr/include/include does exist ...=20 >=20 > 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. >=20 > 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. >=20 > -Dimitry >=20 --Sig_/oaDbo3D7MBihYNCH7D.Y6N2 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJX94pYAAoJEOgBcD7A/5N8vVQH/in62+LZRZYWkngr32JrPOD/ 5wjUGV0q46Ogh1n2/r5faAmx/6Mpk/x/ctcC+zofH3hC0lPOLFrFfMpv84Da3BRj +/DAX6ki7ffIINVOwyKjfxgve5jS64LQRT1bPNW/enXl338S2ZPBLruojHSs30ID E9svJYZiP/QM4H6f0vrZOj3SVVWxq1VvoHjVYPdgEXgnuyS2gRoLhQlVh/a6mmiq 9KvWFQbvAnJYB7dgGv/Qzw5AHSgvWCsV2t6Ve8yYunXE3afAz1AP1AASFdp6hqTg w7lmfBH4T4cxw4Iz0lb12/jOAtctkGAi8+Tju0qOe/M1N/cL9MLFMdfzZEHUrt4= =jo3m -----END PGP SIGNATURE----- --Sig_/oaDbo3D7MBihYNCH7D.Y6N2--