C++14 was enabled in PCH file but is currently disabled

Dear ROOT-Team,
I’m trying to learn ROOT and I would like to install it with c++14 support,
unfortunately it doesn’t seems to get activated. Its a build from source and
AFAIK all dependencies needed for c++14 are installed (?):

OS-System is a Debian Stretch:
ci@r5:~/Prog/ROOT6/root$ uname -a
Linux r5 4.0.0-2-rt-amd64 #1 SMP PREEMPT RT Debian 4.0.8-1 (2015-07-11) x86_64 GNU/Linux

gcc:
ci@r5:~/Prog/ROOT6/root$ gcc --version
gcc (Debian 4.9.3-1) 4.9.3

clang:
ci@r5:~/Prog/ROOT6/root$ clang --version
clang version 3.7.0 (root.cern.ch/git/llvm.git 4f6e66a29b11d6c6398f7e8cfa90356d07c1036a)
Target: x86_64-unknown-linux-gnu
Thread model: posix

Last commit:
commit 8f1a77ec7b04beb706b6d79790f61a1f94f2bb2f
Author: Danilo Piparo danilo.piparo@cern.ch
Date: Sat Jul 18 05:57:09 2015 +0200

ROOT-config (see ‘configure.output.txt’ and ‘config.log.txt’ ):
ci@r5:~/Prog/ROOT6/root$ cat config.status
–with-clang --enable-cxx14 --enable-soversion --fail-on-missing

ROOT-build (see ‘make.output.txt’):
make -j6

ROOT-starting:
ci@r5:~/Prog/ROOT6/root$ root
error: C++14 was enabled in PCH file but is currently disabled

| Welcome to ROOT 6.03/04 root.cern.ch |
| © 1995-2014, The ROOT Team |
| Built for linuxx8664gcc |
| From heads/master@v6-05-01-353-g8f1a77e, Jul 19 2015, 14:48:42 |

Try ‘.help’, ‘.demo’, ‘.license’, ‘.credits’, ‘.quit’/’.q’

root [0]

What I’m missing?

Thanks in advance!
francis
config.log.txt (280 KB)
make.output.txt (1.91 MB)
configure.output.txt (8.2 KB)

Some more info (after checking ‘make.output.txt’). There are errors during compilation:

[size=50][…]
clang -O2 -DNDEBUG -pipe -m64 -Wshadow -Wall -W -fPIC -Iinclude -pthread -DINCLUDEDIR="/usr/include" -DOBJSUFFIX=".o" -o build/rmkdepend/pr.o -c /home/ci/Prog/ROOT6/root/build/rmkdepend/pr.c
In file included from /home/ci/Prog/ROOT6/root/build/rmkdepend/ifparser.c:63:
In file included from In file included from /home/ci/Prog/ROOT6/root/build/rmkdepend/ifparser.h/home/ci/Prog/ROOT6/root/build/rmkdepend/cppsetup.c::6230:
:
/usr/include/stdio.hIn file included from :/home/ci/Prog/ROOT6/root/build/rmkdepend/def.h33::3511:
:/usr/include/stdio.h :fatal error33: :‘stddef.h’ file not found11
: fatal error: # include <stddef.h>
^
‘stddef.h’ file not found

include <stddef.h>

      ^

In file included from /home/ci/Prog/ROOT6/root/build/rmkdepend/include.c:30:
In file included from /home/ci/Prog/ROOT6/root/build/rmkdepend/def.h:35:
/usr/include/stdio.h:33:11: fatal error: ‘stddef.h’ file not found

include <stddef.h>

      ^

In file included from /home/ci/Prog/ROOT6/root/build/rmkdepend/parse.c:30:
In file included from /home/ci/Prog/ROOT6/root/build/rmkdepend/def.h:35:
/usr/include/stdio.h:33:11: fatal error: ‘stddef.h’ file not found

include <stddef.h>

      ^

In file included from /home/ci/Prog/ROOT6/root/build/rmkdepend/main.c:34:
In file included from /home/ci/Prog/ROOT6/root/build/rmkdepend/def.h:35:
/usr/include/stdio.h:33:11: fatal error: ‘stddef.h’ file not found

include <stddef.h>

      ^

In file included from /home/ci/Prog/ROOT6/root/build/rmkdepend/pr.c:29:
In file included from /home/ci/Prog/ROOT6/root/build/rmkdepend/def.h:35:
/usr/include/stdio.h:33:11: fatal error: ‘stddef.h’ file not found

include <stddef.h>

      ^

1 error generated.
clang++ -O2 -DNDEBUG -pipe -m64 -std=c++1y -Wshadow -Wall -W -Woverloaded-virtual -fPIC -Iinclude -Wno-deprecated-declarations -pthread -DINCLUDEDIR="/usr/include" -DOBJSUFFIX=".o" -o build/rmkdepend/mainroot.o -c /home/ci/Prog/ROOT6/root/build/rmkdepend/mainroot.cxx
1 error generated.
1 error generated.
1 error generated.
1 error generated.
Running /home/ci/Prog/ROOT6/root/build/unix/compiledata.sh
Changing include/compiledata.h
1 error generated.
In file included from /home/ci/Prog/ROOT6/root/build/rmkdepend/mainroot.cxx:28:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/…/…/…/…/include/c++/4.9/string:40:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/…/…/…/…/include/c++/4.9/bits/char_traits.h:40:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/…/…/…/…/include/c++/4.9/bits/postypes.h:40:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/…/…/…/…/include/c++/4.9/cwchar:44:
/usr/include/wchar.h:39:11: fatal error: ‘stdarg.h’ file not found

include <stdarg.h>

      ^

1 error generated.
cp /home/ci/Prog/ROOT6/root/core/utils/src/rootcling.cxx core/utils/src/rootcling_tmp.cxx
*** Building interpreter/llvm/inst/lib/libclangSema.a…
clang++ -O2 -DNDEBUG -pipe -m64 -std=c++1y -Wshadow -Wall -W -Woverloaded-virtual -fPIC -Iinclude -Wno-deprecated-declarations -pthread -MMD -MP -o core/metautils/src/TClassEdit.o -c /home/ci/Prog/ROOT6/root/core/metautils/src/TClassEdit.cxx
clang++ -O2 -DNDEBUG -pipe -m64 -std=c++1y -Wshadow -Wall -W -Woverloaded-virtual -fPIC -Iinclude -Wno-deprecated-declarations -pthread -MMD -MP -o core/metautils/src/RConversionRuleParser.o -c /home/ci/Prog/ROOT6/root/core/metautils/src/RConversionRuleParser.cxx
clang -O2 -DNDEBUG -pipe -m64 -Wshadow -Wall -W -fPIC -Iinclude -pthread -MMD -MP -o core/clib/src/snprintf.o -c /home/ci/Prog/ROOT6/root/core/clib/src/snprintf.c
clang -O2 -DNDEBUG -pipe -m64 -Wshadow -Wall -W -fPIC -Iinclude -pthread -MMD -MP -o core/clib/src/strlcpy.o -c /home/ci/Prog/ROOT6/root/core/clib/src/strlcpy.c
clang -O2 -DNDEBUG -pipe -m64 -Wshadow -Wall -W -fPIC -Iinclude -pthread -MMD -MP -o core/clib/src/strlcat.o -c /home/ci/Prog/ROOT6/root/core/clib/src/strlcat.c
In file included from /home/ci/Prog/ROOT6/root/core/metautils/src/TClassEdit.cxx:5:
/usr/include/stdio.h:33:11: fatal error: ‘stddef.h’ file not found

include <stddef.h>

      ^

make[1]: Entering directory '/home/ci/Prog/ROOT6/root/interpreter/llvm/obj’
for dir in lib/Support lib/TableGen utils lib/IR lib tools/llvm-config tools cmake; do
if ([ ! -f $dir/Makefile ] ||
command test $dir/Makefile -ot /home/ci/Prog/ROOT6/root/interpreter/llvm/src/$dir/Makefile ); then
/home/ci/Prog/ROOT6/root/interpreter/llvm/src/autoconf/mkinstalldirs $dir;
/bin/cp /home/ci/Prog/ROOT6/root/interpreter/llvm/src/$dir/Makefile $dir/Makefile;
fi;
(make -C $dir all ) || exit 1;
done
In file included from /home/ci/Prog/ROOT6/root/core/clib/src/strlcpy.c:28:
/usr/include/unistd.h:226:10: fatal error: ‘stddef.h’ file not found
#include <stddef.h>
^
/home/ci/Prog/ROOT6/root/core/clib/src/snprintf.c:31:10: fatal error: ‘stdarg.h’ file not found
#include <stdarg.h>
^
In file included from /home/ci/Prog/ROOT6/root/core/clib/src/strlcat.c:28:
/usr/include/unistd.h:226:10: fatal error: ‘stddef.h’ file not found
#include <stddef.h>
^
make[2]: Entering directory ‘/home/ci/Prog/ROOT6/root/interpreter/llvm/obj/lib/Support’
/home/ci/Prog/ROOT6/root/interpreter/llvm/src/autoconf/mkinstalldirs /home/ci/Prog/ROOT6/root/interpreter/llvm/obj/lib/Support/Release > /dev/null
/bin/date > /home/ci/Prog/ROOT6/root/interpreter/llvm/obj/lib/Support/Release/.dir
/home/ci/Prog/ROOT6/root/interpreter/llvm/src/autoconf/mkinstalldirs /home/ci/Prog/ROOT6/root/interpreter/llvm/obj/lib/Support/Release/./ > /dev/null
/bin/date > /home/ci/Prog/ROOT6/root/interpreter/llvm/obj/lib/Support/Release/.//.dir
/home/ci/Prog/ROOT6/root/interpreter/llvm/src/autoconf/mkinstalldirs /home/ci/Prog/ROOT6/root/interpreter/llvm/obj/Release/lib > /dev/null
1 error generated.
Makefile:654: recipe for target ‘core/clib/src/strlcpy.o’ failed
make: *** [core/clib/src/strlcpy.o] Error 1
make: *** Waiting for unfinished jobs…
/bin/date > /home/ci/Prog/ROOT6/root/interpreter/llvm/obj/Release/lib/.dir
1 error generated.
[…]
[/size]

Thank in advance!
francis

Try with CMake. You can enable c++14 with -Dcxx14=ON