[LLVMdev] build error

Chris Lattner sabre at nondot.org
Mon Aug 7 22:12:41 PDT 2006


On Tue, 8 Aug 2006, Simon Burton wrote:
>> From CVS:
>
> llvm[3]: Compiling SJLJ-Exception.cpp for Debug build (bytecode)
> SJLJ-Exception.cpp:16:19: cstdlib: No such file or directory

This looks like your C++ compiler doesn't work: cstdlib is a standard C++ 
header.

-Chris

> SJLJ-Exception.cpp:17:19: cassert: No such file or directory
> SJLJ-Exception.cpp: In function `void SJLJDestructor(llvm_exception*)':
> SJLJ-Exception.cpp:43: error: `free' undeclared (first use this function)
> SJLJ-Exception.cpp:43: error: (Each undeclared identifier is reported only once for each function it appears in.)
> SJLJ-Exception.cpp: In function `void __llvm_sjljeh_throw_longjmp(void*, int)':
> SJLJ-Exception.cpp:53: error: `malloc' undeclared (first use this function)
> SJLJ-Exception.cpp: In function `void __llvm_sjljeh_destroy_setjmpmap(void**)':
> SJLJ-Exception.cpp:78: error: `free' undeclared (first use this function)
> SJLJ-Exception.cpp: In function `void __llvm_sjljeh_add_setjmp_to_map(void**, void*, unsigned int)':
> SJLJ-Exception.cpp:96: error: `malloc' undeclared (first use this function)
> SJLJ-Exception.cpp: In function `unsigned int __llvm_sjljeh_try_catching_longjmp_exception(void**)':
> SJLJ-Exception.cpp:138: error: `free' undeclared (first use this function)
>
> $ gcc --version
> gcc (GCC) 3.3.5 (Debian 1:3.3.5-12)
>
> Simon.
>
>
>

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list