Bug 210919 - audio/qsampler: Build fails in qt5 QtCore at including stddef.h
Summary: audio/qsampler: Build fails in qt5 QtCore at including stddef.h
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: needs-qa, regression
Depends on:
Blocks:
 
Reported: 2016-07-08 10:36 UTC by Ivan Klymenko
Modified: 2016-07-14 16:34 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Klymenko 2016-07-08 10:36:12 UTC
Maintainer:     ports@FreeBSD.org
Last committer: mat@FreeBSD.org
Ident:          $FreeBSD: head/audio/qsampler/Makefile 412733 2016-04-08 12:37:30Z mat $
Log URL:        /qsampler-0.4.0.log
Build URL:      
Log:

====>> Building audio/qsampler  
build started at Thu Jul  7 16:37:43 EEST 2016
port directory: /usr/ports/audio/qsampler
building for: FreeBSD 11_ALPHA6_amd64-default-job-02 11.0-ALPHA6 FreeBSD 11.0-ALPHA6 amd64
maintained by: ports@FreeBSD.org
Makefile ident:      $FreeBSD: head/audio/qsampler/Makefile 412733 2016-04-08 12:37:30Z mat $
Poudriere version: 3.2-pre
Host OSVERSION: 1100120
Jail OSVERSION: 1100120

---Begin Environment---
SHELL=/bin/csh
UNAME_v=FreeBSD 11.0-ALPHA6
UNAME_r=11.0-ALPHA6
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
OPSYS=FreeBSD
ARCH=amd64
SAVED_TERM=screen
MASTERMNT=/usr/local/poudriere/data/.m/11_ALPHA6_amd64-default/ref
UID=0
FORCE_PACKAGE=yes
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
_JAVA_VERSION_LIST_REGEXP=1.6\|1.7\|1.8\|1.6+\|1.7+\|1.8+
POUDRIERE_BUILD_TYPE=bulk
PKGNAME=qsampler-0.4.0
OSREL=11.0
_OSRELEASE=11.0-ALPHA6
PYTHONBASE=/usr/local
OLDPWD=/
_SMP_CPUS=8
PWD=/usr/local/poudriere/data/.m/11_ALPHA6_amd64-default/ref/.p/pool
HAVE_COMPAT_IA32_KERN=YES LINUX_OSRELEASE=2.6.32
MASTERNAME=11_ALPHA6_amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
_JAVA_VENDOR_LIST_REGEXP=openjdk\|oracle\|sun
USER=root
HOME=/root
POUDRIERE_VERSION=3.2-pre
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
CONFIGURE_MAX_CMD_LEN=262144
LIBEXECPREFIX=/usr/local/libexec/poudriere
LOCALBASE=/usr/local
PACKAGE_BUILDING=yes
_JAVA_OS_LIST_REGEXP=native\|linux
OSVERSION=1100120
---End Environment---

---Begin OPTIONS List---
===> The following configuration options are available for qsampler-0.4.0:
====> Qt toolkit: you have to select exactly one of them  
     QT4=off: Qt 4 toolkit support
     QT5=on: Qt 5 toolkit support
===> Use 'make config' to modify these settings  
---End OPTIONS List---

--CONFIGURE_ARGS--
--disable-qt4 --enable-qt5 --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
ac_cv_path_ac_cv_qmake=/usr/local/lib/qt5/bin/qmake  ac_cv_path_ac_moc=/usr/local/lib/qt5/bin/moc  ac_cv_path_ac_uic=/usr/local/lib/qt5/bin/uic  ac_cv_path_ac_rcc=/usr/local/lib/qt5/bin/rcc  ac_cv_path_ac_lupdate=/usr/local/lib/qt5/bin/lupdate  ac_cv_path_ac_lrelease=/usr/local/lib/qt5/bin/lrelease MAKE=gmake PKG_CONFIG=pkgconf XDG_DATA_HOME=/wrkdirs/usr/ports/audio/qsampler/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/audio/qsampler/work  HOME=/wrkdirs/usr/ports/audio/qsampler/work TMPDIR="/tmp" SHELL=/bin/sh CONFIG_SHELL=/bin/sh PATH=/usr/local/libexec/ccache:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin CCACHE_DIR="/root/.ccache" CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=262144
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/audio/qsampler/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/audio/qsampler/work  HOME=/wrkdirs/usr/ports/audio/qsampler/work TMPDIR="/tmp" NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  LIBDIR="/usr/lib"  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector -fno-strict-aliasing"  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector" LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing "  MANPREFIX="/usr/local" PATH=/usr/local/libexec/ccache:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin CCACHE_DIR="/root/.ccache" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 444"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
QT_PREFIX="/usr/local"
QT_BINDIR="lib/qt5/bin"
QT_INCDIR="include/qt5"
QT_LIBDIR="lib"
QT_ARCHDIR="lib/qt5"
QT_PLUGINDIR="lib/qt5/plugins"
QT_LIBEXECDIR="libexec/qt5"
QT_IMPORTDIR="lib/qt5/imports"
QT_QMLDIR="lib/qt5/qml"
QT_DATADIR="share/qt5"
QT_DOCDIR="share/doc/qt5"
QT_L10NDIR="share/qt5/translations"
QT_ETCDIR="etc/xdg"
QT_EXAMPLEDIR="share/examples/qt5"
QT_TESTDIR="share/qt5/tests"
QT_MKSPECDIR="lib/qt5/mkspecs"
OSREL=11.0
PREFIX=%D
LOCALBASE=/usr/local
RESETPREFIX=/usr/local
PORTDOCS=""
PORTEXAMPLES=""
LIB32DIR=lib
DOCSDIR="share/doc/qsampler"
EXAMPLESDIR="share/examples/qsampler"
DATADIR="share/qsampler"
WWWDIR="www/qsampler"
ETCDIR="etc/qsampler"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local
LOCALBASE=/usr/local
DATADIR=/usr/local/share/qsampler
DOCSDIR=/usr/local/share/doc/qsampler
EXAMPLESDIR=/usr/local/share/examples/qsampler
WWWDIR=/usr/local/www/qsampler
ETCDIR=/usr/local/etc/qsampler
--End SUB_LIST--

---Begin make.conf---
WITH_CCACHE_BUILD=yes
CCACHE_DIR=/root/.ccache
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
#### /usr/local/etc/poudriere.d/make.conf ####
OVERRIDE_LINUX_BASE_PORT=c6_64
OVERRIDE_LINUX_NONBASE_PORTS=c6_64
WITH_CCACHE_BUILD=yes
CFLAGS.clang+=-Ofast
#CFLAGS.clang+=-O3
CFLAGS.clang+=-fvectorize -fslp-vectorize
CFLAGS.clang+=-fblocks
CFLAGS.clang+=-fcolor-diagnostics
#CFLAGS.clang+=-flto
_LICENSE_STATUS=accepted
JN=3
.if ${.CURDIR:M/usr/ports/*}
MAKE_JOBS_NUMBER=${JN}
WORLD_FLAGS+= -j${JN}
.endif
---End make.conf---
=======================<phase: check-sanity   >============================
===>   NOTICE:  

The qsampler port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port

===>  License GPLv2+ accepted by the user
===>  Found saved configuration for qsampler-0.3.1  
===========================================================================
=======================<phase: pkg-depends    >============================
===>   qsampler-0.4.0 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.8.7.txz  
[11_ALPHA6_amd64-default-job-02] Installing pkg-1.8.7...
[11_ALPHA6_amd64-default-job-02] Extracting pkg-1.8.7: .......... done
===>   qsampler-0.4.0 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of qsampler-0.4.0  
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>   NOTICE:  

The qsampler port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port

===>  License GPLv2+ accepted by the user
===>  Found saved configuration for qsampler-0.3.1
===> Fetching all distfiles required by qsampler-0.4.0 for building  
===========================================================================
=======================<phase: checksum       >============================
===>   NOTICE:  

The qsampler port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port

===>  License GPLv2+ accepted by the user
===>  Found saved configuration for qsampler-0.3.1
===> Fetching all distfiles required by qsampler-0.4.0 for building
=> SHA256 Checksum OK for qsampler-0.4.0.tar.gz.  
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
<snip>

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port
===>   qsampler-0.4.0 depends on shared library: libgig.so - found (/usr/local/lib/libgig.so)
===>   Returning to build of qsampler-0.4.0
===>   qsampler-0.4.0 depends on shared library: liblscp.so - not found
===>   Installing existing package /packages/All/liblscp-0.5.7.txz  
[11_ALPHA6_amd64-default-job-02] Installing liblscp-0.5.7...
[11_ALPHA6_amd64-default-job-02] Extracting liblscp-0.5.7: .......... done
Message from liblscp-0.5.7:
===>   NOTICE:  

The liblscp port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port
===>   qsampler-0.4.0 depends on shared library: liblscp.so - found (/usr/local/lib/liblscp.so)
===>   Returning to build of qsampler-0.4.0  
===========================================================================
=======================<phase: configure      >============================
===>  Configuring for qsampler-0.4.0  
configure: loading site script /usr/ports/Templates/config.site
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cpp
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking how to run the C++ preprocessor... c++ -E
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking whether cc needs -traditional... no
checking pkg-config is at least version 0.9.0... yes
checking for qmake-qt5... no
checking for qmake... (cached) /usr/local/lib/qt5/bin/qmake
checking for qmake... (cached) /usr/local/lib/qt5/bin/qmake
checking for Qt library version >= 5.1... yes
checking for moc... (cached) /usr/local/lib/qt5/bin/moc
checking for uic... (cached) /usr/local/lib/qt5/bin/uic
checking for lupdate... (cached) /usr/local/lib/qt5/bin/lupdate
checking for lrelease... (cached) /usr/local/lib/qt5/bin/lrelease
checking for main in -lm... yes
checking for main in -lX11... yes
checking for main in -lXext... yes
checking for round in -lm... yes
checking for main in -llscp... yes
checking for instrument_name in lscp_channel_info_t... yes
checking for mute/solo in lscp_channel_info_t... yes
checking for lscp_set_channel_mute in -llscp... yes
checking for lscp_set_channel_solo in -llscp... yes
checking for lscp_map_midi_instrument in -llscp... yes
checking for lscp_create_fxsend in -llscp... yes
checking for FX send level in lscp_fxsend_info_t... yes
checking for lscp_set_fxsend_name in -llscp... yes
checking for audio_routing array type... yes
checking for lscp_set_volume in -llscp... yes
checking for lscp_edit_channel_instrument in -llscp... yes
checking for CHANNEL_MIDI LSCP event support in liblscp... yes
checking for DEVICE_MIDI LSCP event support in liblscp... yes
checking for lscp_get_voices in -llscp... yes
checking for LIBGIG... yes
checking for lroundf in -lm... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for signal.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking lscp/client.h usability... yes
checking lscp/client.h presence... yes
checking for lscp/client.h... yes
checking libgig/SF.h usability... no
checking libgig/SF.h presence... no
checking for libgig/SF.h... no
checking for system... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating qsampler.spec
config.status: creating src/src.pri
config.status: creating src/qsampler.desktop
config.status: creating src/config.h

  Qsampler 0.4.0

  Build target . . . . . . . . . . . . . . . . . . .: release

  LSCP instrument name support . . . . . . . . . . .: yes
  LSCP mute/solo support . . . . . . . . . . . . . .: yes
  LSCP MIDI instrument support . . . . . . . . . . .: yes
  LSCP FX send support . . . . . . . . . . . . . . .: yes
  LSCP FX send level support . . . . . . . . . . . .: yes
  LSCP FX send rename support  . . . . . . . . . . .: yes
  LSCP audio routing support . . . . . . . . . . . .: yes
  LSCP volume support  . . . . . . . . . . . . . . .: yes
  LSCP edit instrument support . . . . . . . . . . .: yes
  GigaSampler instrument file support (libgig) . . .: yes
  libgig supports fast information retrieval . . . .: yes
  libgig supports SoundFont2 instruments files . . .: no
  LSCP channel MIDI event support  . . . . . . . . .: yes
  LSCP device MIDI event support . . . . . . . . . .: yes
  LSCP runtime max. voices / disk streams support  .: yes

  X11 Unique/Single instance . . . . . . . . . . . .: yes
  Debugger stack-trace (gdb) . . . . . . . . . . . .: no

  Install prefix . . . . . . . . . . . . . . . . . .: /usr/local

Now type 'make', followed by 'make install' as root.

Reading /wrkdirs/usr/ports/audio/qsampler/work/qsampler-0.4.0/src/src.pro
===========================================================================
=======================<phase: build          >============================
===>  Building for qsampler-0.4.0  
gmake[1]: Entering directory '/wrkdirs/usr/ports/audio/qsampler/work/qsampler-0.4.0'
gmake[2]: Entering directory '/wrkdirs/usr/ports/audio/qsampler/work/qsampler-0.4.0'
cd src/ && ( test -e Makefile || /usr/local/lib/qt5/bin/qmake /wrkdirs/usr/ports/audio/qsampler/work/qsampler-0.4.0/src/src.pro -spec /usr/local/lib/qt5/mkspecs/freebsd-clang QMAKE_CC=cc QMAKE_CXX=c++ QMAKE_LINK_C=cc QMAKE_LINK_C_SHLIB=cc QMAKE_LINK=c++ QMAKE_LINK_SHLIB=c++ 'QMAKE_CFLAGS=-O2 -pipe  -fstack-protector -fno-strict-aliasing' 'QMAKE_CXXFLAGS=-O2 -pipe -fstack-protector -fno-strict-aliasing ' 'QMAKE_LFLAGS= -fstack-protector' QMAKE_LIBS= QMAKE_CFLAGS_DEBUG= QMAKE_CFLAGS_RELEASE= QMAKE_CXXFLAGS_DEBUG= QMAKE_CXXFLAGS_RELEASE= PREFIX=/usr/local CONFIG+=release 'CONFIG-=debug separate_debug_info' -o Makefile ) && gmake -f Makefile 
gmake[3]: Entering directory '/wrkdirs/usr/ports/audio/qsampler/work/qsampler-0.4.0/src'
/usr/local/lib/qt5/bin/uic qsamplerInstrumentForm.ui -o .ui/ui_qsamplerInstrumentForm.h
/usr/local/lib/qt5/bin/uic qsamplerInstrumentListForm.ui -o .ui/ui_qsamplerInstrumentListForm.h
/usr/local/lib/qt5/bin/uic qsamplerDeviceForm.ui -o .ui/ui_qsamplerDeviceForm.h
/usr/local/lib/qt5/bin/uic qsamplerChannelStrip.ui -o .ui/ui_qsamplerChannelStrip.h
/usr/local/lib/qt5/bin/uic qsamplerChannelForm.ui -o .ui/ui_qsamplerChannelForm.h
/usr/local/lib/qt5/bin/uic qsamplerChannelFxForm.ui -o .ui/ui_qsamplerChannelFxForm.h
/usr/local/lib/qt5/bin/uic qsamplerOptionsForm.ui -o .ui/ui_qsamplerOptionsForm.h
/usr/local/lib/qt5/bin/uic qsamplerMainForm.ui -o .ui/ui_qsamplerMainForm.h
c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include -Wall -W -pthread -D_THREAD_SAFE -fPIC -DDATADIR="/usr/local/share" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include/qt5 -I/usr/local/include -isystem /usr/include -I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5/QtX11Extras -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtCore -I.moc -I/usr/local/include -I.ui -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o .obj/qsamplerMessages.o qsamplerMessages.cpp
c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include -Wall -W -pthread -D_THREAD_SAFE -fPIC -DDATADIR="/usr/local/share" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include/qt5 -I/usr/local/include -isystem /usr/include -I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5/QtX11Extras -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtCore -I.moc -I/usr/local/include -I.ui -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o .obj/qsamplerFxSendsModel.o qsamplerFxSendsModel.cpp
c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include -Wall -W -pthread -D_THREAD_SAFE -fPIC -DDATADIR="/usr/local/share" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include/qt5 -I/usr/local/include -isystem /usr/include -I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5/QtX11Extras -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtCore -I.moc -I/usr/local/include -I.ui -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o .obj/qsamplerUtilities.o qsamplerUtilities.cpp
In file included from qsamplerFxSendsModel.cpp:24:
In file included from ./qsamplerFxSendsModel.h:26:
In file included from /usr/local/include/qt5/QtCore/QAbstractListModel:1:
In file included from /usr/local/include/qt5/QtCore/qabstractitemmodel.h:37:
In file included from /usr/local/include/qt5/QtCore/qvariant.h:37:
In file included from /usr/local/include/qt5/QtCore/qatomic.h:34:
In file included from /usr/local/include/qt5/QtCore/qglobal.h:39:
/usr/include/c++/v1/cstddef:43:15: fatal error: 'stddef.h' file not found
#include_next <stddef.h>
              ^
In file included from qsamplerUtilities.cpp:23:
In file included from ./qsamplerUtilities.h:26:
In file included from /usr/local/include/qt5/QtCore/QString:1:
In file included from /usr/local/include/qt5/QtCore/qstring.h:41:
In file included from /usr/local/include/qt5/QtCore/qchar.h:37:
In file included from /usr/local/include/qt5/QtCore/qglobal.h:39:
/usr/include/c++/v1/cstddef:43:15: fatal error: 'stddef.h' file not found
#include_next <stddef.h>
              ^
In file included from qsamplerMessages.cpp:24:
In file included from ./qsamplerMessages.h:26:
In file included from /usr/local/include/qt5/QtWidgets/QDockWidget:1:
In file included from /usr/local/include/qt5/QtWidgets/qdockwidget.h:37:
In file included from /usr/local/include/qt5/QtWidgets/qwidget.h:37:
In file included from /usr/local/include/qt5/QtGui/qwindowdefs.h:37:
In file included from /usr/local/include/qt5/QtCore/qglobal.h:39:
/usr/include/c++/v1/cstddef:43:15: fatal error: 'stddef.h' file not found
#include_next <stddef.h>
              ^
1 error generated.
gmake[3]: *** [Makefile:3264: .obj/qsamplerFxSendsModel.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
1 error generated.
gmake[3]: *** [Makefile:3351: .obj/qsamplerUtilities.o] Error 1
1 error generated.
gmake[3]: *** [Makefile:2645: .obj/qsamplerMessages.o] Error 1
gmake[3]: Leaving directory '/wrkdirs/usr/ports/audio/qsampler/work/qsampler-0.4.0/src'
gmake[2]: *** [qsampler.mak:43: sub-src-make_first] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/audio/qsampler/work/qsampler-0.4.0'
gmake[1]: *** [Makefile:88: src/qsampler] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/audio/qsampler/work/qsampler-0.4.0'
===> Compilation failed unexpectedly.  
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/audio/qsampler
Comment 1 VK 2016-07-08 23:37:33 UTC
Thanks for the report. Three ports (this one, bug #210920, bug #210921) failing for the same apparent reason:

In file included from /usr/local/include/qt5/QtCore/qglobal.h:39:
/usr/include/c++/v1/cstddef:43:15: fatal error: 'stddef.h' file not found
#include_next <stddef.h>

Something tells me this is an issue with devel/qt5-core? CC'ing kde@
Comment 2 Ivan Klymenko 2016-07-09 05:53:21 UTC
(In reply to Vladimir Krstulja from comment #1)
This problem appeared after updating clang.
So I'm not sure what the problem is most devel/qt5-core and kde@
Comment 3 VK 2016-07-09 09:39:46 UTC
(In reply to Ivan Klymenko from comment #2)

Thanks for your reply. That's why I've not rebased the issue to devel/qt5-creator because I am not sure, only asked kde@ for feedback via CC.

I've also not been able to replicate this on 10.3, so yeah I guess something new in 11 could be causing this. Marking as regression. Leaving those other related issues as they are now until this is better understood. Although I'm inclined to close them as duplicates.
Comment 4 Dimitry Andric freebsd_committer freebsd_triage 2016-07-09 10:11:08 UTC
This is a problem similar to some other ports that I have fixed in bug 209103 and bug 209921.  For unknown reasons, some ports like to add -isystem /usr/include to their CFLAGS and CXXFLAGS.  For C++ programs, this messes up the include path order.

The normal include path order for C++ programs without any -I flags is:

#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/v1
 /usr/bin/../lib/clang/3.8.0/include
 /usr/include
End of search list.

However, with -isystem /usr/include, the order becomes:

ignoring duplicate directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include
 /usr/include/c++/v1
 /usr/bin/../lib/clang/3.8.0/include
End of search list.

The libc++ headers rely on being able to #include_next<> any C standard headers, and this is defeated by moving /usr/include to before /usr/include/c++/v1.

For this port, the solution is also to find some way of getting rid of the the -isystem /usr/include option.
Comment 5 Ivan Klymenko 2016-07-09 10:19:46 UTC
(In reply to Dimitry Andric from comment #4)

Thanks!