Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Oct 2016 10:26:19 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   graphics/opencv2-core: compiler error on CURRENT: error: 'stddef.h' file not found
Message-ID:  <20161007102619.7989b299.ohartman@zedat.fu-berlin.de>

next in thread | raw e-mail | index | archive | help
--Sig_/O63h=Jk6==Qq/PAheYNniSw
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

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.

It seems, that somehow the compiler environment doesn't find standard c++/c=
 includes.

Albeit the fact I spread my setups around other systems, I change sometimes
configuration, so it might be possible that on the both systems in question=
s a remnant or
miscompiled library might be the culprit.

The most important fact, always questioned here, is that I use CPUTYPE?+nat=
ive on both
IvyNridge (failing systems, both consumer and XEON type) and COPTS+=3D-O3 a=
s well. The very
same I use on systems with Haswell XEONs and SkyLake XEONs.

I tried to comment these "optimizations" out and restart a full recompilati=
on of all
requiremets via "portmaster -df graphics/opencv-core" (the same is with
graphics/blender!), as well as with vanilla/default settings shipped with F=
reeBSD
CURRENT/11-STABLE (same on 11-STABLE/11-RELEASE since I smoothly moved from=
 there to
12-CURRENT) - but with a NULL effect.

I also use a poudriere framework compiling packages with the very same opti=
mixations
set(!) for some embedded appliances and it's driving me nuts: on those syst=
ems, the
compilation works fine, I have the proper ports including graphics/blender!

So, I guess I have a polluted/sick system which needs some investigation. S=
ince I can
definitely not delete every port and recompile it and I'm willing to spend =
some time to
clean up the mess manually, I'd like to ask for some help, tipps, suggestio=
ns.

I already filed PRs regarding graphics/blender
(https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211809) and graphics/o=
pencv-core
(https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211808).

Maybe someone has made similar experiences.

Please CC me, I do not subscribe this list although I try to watch on a reg=
ular basis.

Thanks in advance,

Oliver

[...]
cd /usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core && /u=
sr/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/include
-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 -Wstr=
ict-prototypes
-Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing
-Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-array-bou=
nds
-fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -mss=
e -msse2 -mavx
-mavx2 -ffunction-sections -O2 -pipe -O3 -march=3Dnative -fstack-protector
-fno-strict-aliasing  -DNDEBUG -fPIC -o CMakeFiles/opencv_core.dir/src/arit=
hm.cpp.o
-c /usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core/src/a=
rithm.cpp In
file included
from /usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core/src=
/arithm.cpp:49:
In file included
from /usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core/src=
/precomp.hpp:48:
In file included
from /usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core/inc=
lude/opencv2/core/core.hpp:53:
--- modules/core/CMakeFiles/opencv_core.dir/src/array.cpp.o --- In file inc=
luded
from /usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core/src=
/array.cpp:49:
In file included
from /usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core/src=
/precomp.hpp:48:
In file included
from /usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core/inc=
lude/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:4=
3:15: fatal
error: 'stddef.h' file not found #include_next <stddef.h> ^ ---
modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.o --- In file includ=
ed
from /usr/include/c++/v1/algorithm:624: ---
modules/core/CMakeFiles/opencv_core.dir/src/alloc.cpp.o --- In file included
from /usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core/src=
/alloc.cpp:43:
In file included
from /usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core/src=
/precomp.hpp:48:
In file included
from /usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core/inc=
lude/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:4=
3:15: fatal
error: 'stddef.h' file not found #include_next <stddef.h>

--Sig_/O63h=Jk6==Qq/PAheYNniSw
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJX91wrAAoJEOgBcD7A/5N86iQIANejQOmN/MJcKYWb45bRVeWR
tHR9eXmWVxQPAlWU2LKflYAl91qkKs6nBP5CCszP8HGDJ6jbxh/BHUWbmVD1OZ9/
xJdVNUrKon1R8RUDDPdDSL0DPjC1fSQxAJYAoCvbxKhwyDoADsMlfQhEjr/0GC9/
eDRFO5pv5So/aqLzyutkySV4RRa9wbwrCdmCfqZBkCRdieKJKHVkOovrDeHHbUVs
BKwppXFGAX4PBzV/+knTqpA0oUNmCh4QrPCiwpEL0ETsPp7XsuZklQxckiJzuucO
cdKdRZYsLAcSwq3t8U37B5navPoZ9UtLKHyV7A9oxirpbnqw3BUD1OgGJi5LDUA=
=iaT/
-----END PGP SIGNATURE-----

--Sig_/O63h=Jk6==Qq/PAheYNniSw--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161007102619.7989b299.ohartman>