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

O. Hartmann ohartman at zedat.fu-berlin.de
Fri Oct 7 11:43:28 UTC 2016


Am Fri, 7 Oct 2016 13:27:19 +0200
Dimitry Andric <dim at FreeBSD.org> schrieb:

> On 07 Oct 2016, at 10:26, O. Hartmann <ohartman at zedat.fu-berlin.de> wrote:
> > 
> > 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/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  
> ...
> > 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>  
> 
> 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 ... 

> 
> 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
> 

-------------- 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/5239a5ab/attachment.sig>


More information about the freebsd-ports mailing list