Compiling error because of the interpreter

Hello,
I have downloaded root using svn
I am tried to compile and I got the following error

*** Building interpreter/llvm/inst/lib/libclang.a…
make[1]: Entering directory /usr/local/root/interpreter/llvm/obj' llvm[1]: Constructing LLVMBuild project information. make[1]: Leaving directory/usr/local/root/interpreter/llvm/obj’
make[1]: Entering directory /usr/local/root/interpreter/llvm/obj' make[2]: Entering directory/usr/local/root/interpreter/llvm/obj/lib/Support’
llvm[2]: Compiling APFloat.cpp for Release+Asserts build
In file included from /usr/local/root/interpreter/llvm/src/lib/Support/APFloat.cpp:15:
In file included from /usr/local/root/interpreter/llvm/src/include/llvm/ADT/APFloat.h:104:
In file included from /usr/local/root/interpreter/llvm/src/include/llvm/ADT/APInt.h:18:
In file included from /usr/local/root/interpreter/llvm/src/include/llvm/ADT/ArrayRef.h:13:
In file included from /usr/local/root/interpreter/llvm/src/include/llvm/ADT/SmallVector.h:18:
In file included from /usr/local/root/interpreter/llvm/src/include/llvm/Support/type_traits.h:20:
In file included from /usr/local/root/interpreter/llvm/obj/include/llvm/Support/DataTypes.h:59:
/usr/include/sys/types.h:147:10: fatal error: ‘stddef.h’ file not found
#include <stddef.h>
^
1 error generated.
make[2]: *** [/usr/local/root/interpreter/llvm/obj/lib/Support/Release+Asserts/APFloat.o] Error 1
make[2]: Leaving directory /usr/local/root/interpreter/llvm/obj/lib/Support' make[1]: *** [all] Error 1 make[1]: Leaving directory/usr/local/root/interpreter/llvm/obj’
make[1]: Entering directory /usr/local/root/interpreter/llvm/obj' llvm[1]: Installing include files make[2]: Entering directory/usr/local/root/interpreter/llvm/obj/lib/Support’
llvm[2]: Compiling APFloat.cpp for Release+Asserts build
In file included from /usr/local/root/interpreter/llvm/src/lib/Support/APFloat.cpp:15:
In file included from /usr/local/root/interpreter/llvm/src/include/llvm/ADT/APFloat.h:104:
In file included from /usr/local/root/interpreter/llvm/src/include/llvm/ADT/APInt.h:18:
In file included from /usr/local/root/interpreter/llvm/src/include/llvm/ADT/ArrayRef.h:13:
In file included from /usr/local/root/interpreter/llvm/src/include/llvm/ADT/SmallVector.h:18:
In file included from /usr/local/root/interpreter/llvm/src/include/llvm/Support/type_traits.h:20:
In file included from /usr/local/root/interpreter/llvm/obj/include/llvm/Support/DataTypes.h:59:
/usr/include/sys/types.h:147:10: fatal error: ‘stddef.h’ file not found
#include <stddef.h>
^
1 error generated.
make[2]: *** [/usr/local/root/interpreter/llvm/obj/lib/Support/Release+Asserts/APFloat.o] Error 1
make[2]: Leaving directory /usr/local/root/interpreter/llvm/obj/lib/Support' make[1]: *** [install] Error 1 make[1]: Leaving directory/usr/local/root/interpreter/llvm/obj’
make: *** [interpreter/llvm/inst/lib/libclang.a] Error 2

On which platform is this?

Cheers, Fons.

Hi,
this is on ubuntu
2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:54:21 UTC 2011 i686 GNU/Linux

Hi,

You seem to use Ubuntu 10.04 Lucid; that might simply be too old. Does it work for you with a more recent OS?

Cheers, Axel.

Hi,
I really did not try!! I update root every few days and it works fine all the time except for the last update

Hi,

Let’s see - do you have /usr/include/linux/stddef.h? If not, could you run

sudo apt-get install linux-libc-dev

It’s either that or it’s looking for the stddef.h provided by the compiler. Which compiler do you use to build ROOT?

Cheers, Axel.

Hi,
I have that file and the compiler I use is
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)

Hi,

Weird. Can you do

cd interpreter/llvm/obj
make VERBOSE=1

and send the output?

Cheers, Axel.