Problem to install root-6.04.06 - stddef.h file not found

I’m unable to install root-6:04:06 on ubuntu 14.04
I installed all dependencies.
I’m following the instructions of root.cern.ch/building-root address but in step 6, the process fails with the following error mesage:

Step 6

linux@LSD05:~/root$ sudo cmake --build /home/linux/root/ --target install

Message error

[  1%] Built target LZMA
[  4%] Built target LLVMSupport
[  4%] Built target LLVMTableGen
[  5%] Built target clang-tblgen
[  5%] Built target ClangAttrPCHWrite
[  5%] Built target ClangAttrClasses
[  5%] Built target ClangAttrImpl
[  5%] Built target ClangAttrDump
[  5%] Built target ClangAttrVisitor
[  5%] Built target ClangStmtNodes
[  5%] Built target ClangDeclNodes
[  5%] Built target ClangCommentNodes
[  5%] Built target ClangCommentHTMLTags
[  5%] Built target ClangCommentHTMLTagsProperties
[  5%] Built target ClangCommentHTMLNamedCharacterReferences
[  5%] Built target ClangCommentCommandInfo
[  5%] Built target ClangCommentCommandList
[  5%] Built target ClangDiagnosticAnalysis
[  5%] Built target ClangDiagnosticAST
[  5%] Built target ClangDiagnosticComment
[  5%] Built target ClangDiagnosticCommon
[  5%] Built target ClangDiagnosticDriver
[  5%] Built target ClangDiagnosticFrontend
[  5%] Built target ClangDiagnosticLex
[  5%] Built target ClangDiagnosticParse
[  5%] Built target ClangDiagnosticSema
[  5%] Built target ClangDiagnosticSerialization
[  6%] Built target ClangDiagnosticGroups
[  6%] Built target ClangDiagnosticIndexName
[  6%] Built target ClangAttrList
[  6%] Built target ClangAttrHasAttributeImpl
[  6%] Built target ClangARMNeon
[  7%] Built target ClangAttrParserStringSwitches
[  7%] Built target ClangAttrParsedAttrList
[  7%] Built target ClangAttrTemplateInstantiate
[  7%] Built target ClangAttrParsedAttrKinds
[  7%] Built target ClangAttrSpellingListIndex
[  7%] Built target ClangAttrParsedAttrImpl
[  7%] Built target ClangAttrPCHRead
[ 10%] Built target clangAST
[ 11%] Built target llvm-tblgen
[ 11%] Built target ClangDriverOptions
[ 11%] Built target clangBasic
[ 12%] Built target clingInterpreter
[ 14%] Built target clang-headers
[ 14%] Built target clingMetaProcessor
[ 14%] Built target intrinsics_gen
[ 16%] Built target clangCodeGen
[ 16%] Built target clingUtils
[ 16%] Built target CLING
[ 16%] Built target LLVMRES
[ 16%] Built target move_headers
[ 16%] Built target LLVMIRReader
[ 17%] Built target LLVMCore
[ 19%] Built target LLVMSelectionDAG
[ 20%] Built target LLVMAsmPrinter
[ 24%] Built target LLVMCodeGen
[ 24%] Built target LLVMBitReader
[ 24%] Built target LLVMBitWriter
[ 24%] Built target LLVMInstCombine
[ 25%] Built target LLVMTransformUtils
[ 26%] Built target LLVMInstrumentation
[ 26%] Built target LLVMipo
[ 28%] Built target LLVMScalarOpts
[ 28%] Built target LLVMVectorize
[ 28%] Built target LLVMObjCARCOpts
[ 28%] Built target LLVMLinker
[ 28%] Built target LLVMMCDisassembler
[ 29%] Built target LLVMipa
[ 30%] Built target LLVMAnalysis
[ 31%] Built target LLVMMC
[ 32%] Built target LLVMMCParser
[ 32%] Built target LLVMObject
[ 33%] Built target LLVMOption
[ 33%] Built target LLVMExecutionEngine
[ 33%] Built target LLVMOrcJIT
[ 33%] Built target LLVMMCJIT
[ 33%] Built target LLVMRuntimeDyld
[ 33%] Built target LLVMTarget
[ 33%] Built target X86CommonTableGen
[ 34%] Built target LLVMX86CodeGen
[ 34%] Built target LLVMX86AsmParser
[ 34%] Built target LLVMX86Disassembler
[ 34%] Built target LLVMX86AsmPrinter
[ 34%] Built target LLVMX86Desc
[ 34%] Built target LLVMX86Info
[ 34%] Built target LLVMX86Utils
[ 34%] Built target LLVMAsmParser
[ 34%] Built target LLVMProfileData
[ 35%] Built target clangLex
[ 37%] Built target clangParse
[ 38%] Built target clangSema
[ 39%] Built target clangAnalysis
[ 39%] Built target clangEdit
[ 40%] Built target clangSerialization
[ 40%] Built target clangDriver
[ 41%] Built target clangFrontend
[ 42%] Built target Clib
[ 43%] Built target MetaUtils
[ 43%] Built target MetaUtilsLLVM
[ 44%] Built target rootcling_tmp
[ 44%] Generating G__IO.cxx, ../../lib/libRIO.rootmap
ERROR in cling::CIFactory::createCI():
  resource directory /home//root/etc/cling/lib/clang/3.7.0 not found!
In file included from input_line_4:2:
/usr/include/stdlib.h:32:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^
Error: Error loading the default header files.
make[2]: ** [io/io/G__IO.cxx] Erro 1
make[1]: ** [io/io/CMakeFiles/G__IO.dir/all] Erro 2
make: ** [all] Erro 2

What can I do to fix it?
regards,

Why do you open another identical thread?
Please use Problems with installing root 6.04.06

Hi mato,

I’m sorry about this…
I tried to find a solution without to think if I had already asked here in the forum…