Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Oct 2016 10:13:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 211808] graphics/opencv-core: c++ compiler error due to "fatal error: 'stddef.h' file not found"
Message-ID:  <bug-211808-13-MUVpuuJvFM@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-211808-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-211808-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211808

ohartman@zedat.fu-berlin.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Affects Many People         |Affects Some People
              Flags|                            |maintainer-feedback+

--- Comment #3 from ohartman@zedat.fu-berlin.de ---
The problem still persists on one box and drives me nuts.

It seems the compiler doesn't find its standard includes - or gets confused=
 by
accidentally found remanants of previous, non-cleaned installations. I trie=
d to
rebuild opencv-core with "portmaster -d" option to build everything, but it
doesn't help much.

Running an update of port graphics/opencv-core on most recent ports tree
(r423107) on a 12-CURRENT (FreeBSD 12.0-CURRENT #30 r306561: Sat Oct  1
23:55:43 CEST 2016), results in a compilation error shown below. The port h=
as
been successfully installed when CURRENT was 11-CURRENT and updated as it h=
as
been required by port changes (compiled from sources!).

In /etc/src.conf, I use these lines reflcting compilation of the OS sources:
#
CPUTYPE?=3D               native
#
CFLAGS+=3D                -O3
# for the kernel
COPTFLAGS+=3D             -O3
#
#CXXFLAGS+=3D             -std=3Dc++11
#
WITH_CLANG_EXTRAS=3D      YES
WITH_CLANG_FULL=3D        YES
WITH_LLDB=3D              YES
[...]

and  I use in /etc/make.conf also apart from the standard/vanilla parameter=
s:

[...]
CPUTYPE?=3Dnative
CFLAGS+=3D-O3
COPTFLAGS+=3D-O3
[...]

The error while compilation is then shown as

[...]
/usr/include/c++/v1/cstddef:43:15: fatal error: 'stddef.h' file not found

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211808-13-MUVpuuJvFM>