graphics/opencv2-core: compiler error on CURRENT: error: 'stddef.h' file not found

O. Hartmann ohartman at zedat.fu-berlin.de
Fri Oct 7 08:26:27 UTC 2016


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 questions a remnant or
miscompiled library might be the culprit.

The most important fact, always questioned here, is that I use CPUTYPE?+native on both
IvyNridge (failing systems, both consumer and XEON type) and COPTS+=-O3 as 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 recompilation of all
requiremets via "portmaster -df graphics/opencv-core" (the same is with
graphics/blender!), as well as with vanilla/default settings shipped with FreeBSD
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 optimixations
set(!) for some embedded appliances and it's driving me nuts: on those systems, 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. Since 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, suggestions.

I already filed PRs regarding graphics/blender
(https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211809) and graphics/opencv-core
(https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211808).

Maybe someone has made similar experiences.

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

Thanks in advance,

Oliver

[...]
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/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=native -fstack-protector -fno-strict-aliasing   -fsigned-char -W
-Werror=return-type -Werror=address -Werror=sequence-point -Wformat
-Werror=format-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=native -fstack-protector
-fno-strict-aliasing  -DNDEBUG -fPIC -o CMakeFiles/opencv_core.dir/src/arithm.cpp.o
-c /usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core/src/arithm.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/include/opencv2/core/core.hpp:53:
--- modules/core/CMakeFiles/opencv_core.dir/src/array.cpp.o --- In file included
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/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 <stddef.h> ^ ---
modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.o --- In file included
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/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 <stddef.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20161007/fc0202ee/attachment.sig>


More information about the freebsd-ports mailing list