[Bug 211808] graphics/opencv-core: c++ compiler error due to "fatal error: 'stddef.h' file not found"
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Oct 2 10:13:48 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211808
ohartman at zedat.fu-berlin.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|Affects Many People |Affects Some People
Flags| |maintainer-feedback+
--- Comment #3 from ohartman at 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 tried 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 has
been successfully installed when CURRENT was 11-CURRENT and updated as it has
been required by port changes (compiled from sources!).
In /etc/src.conf, I use these lines reflcting compilation of the OS sources:
#
CPUTYPE?= native
#
CFLAGS+= -O3
# for the kernel
COPTFLAGS+= -O3
#
#CXXFLAGS+= -std=c++11
#
WITH_CLANG_EXTRAS= YES
WITH_CLANG_FULL= YES
WITH_LLDB= YES
[...]
and I use in /etc/make.conf also apart from the standard/vanilla parameters:
[...]
CPUTYPE?=native
CFLAGS+=-O3
COPTFLAGS+=-O3
[...]
The error while compilation is then shown as
[...]
/usr/include/c++/v1/cstddef:43:15: fatal error: 'stddef.h' file not found
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list