>From CVS:llvm[3]: Compiling SJLJ-Exception.cpp for Debug build (bytecode) SJLJ-Exception.cpp:16:19: cstdlib: No such file or directory 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. -- Simon Burton, B.Sc. Licensed PO Box 8066 ANU Canberra 2601 Australia Ph. 61 2 6249 6940 http://arrowtheory.com
Hi Simon, What version of llvm-gcc did you configure LLVM with? If you don't know, please send your configure.out file from your LLVM_OBJ_ROOT Thanks, Reid. On Tue, 2006-08-08 at 12:01 +1000, 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 > 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. > >
On Mon, 07 Aug 2006 19:36:01 -0700 Reid Spencer <rspencer at reidspencer.com> wrote:> > Hi Simon, > > What version of llvm-gcc did you configure LLVM with? If you don't > know, please send your configure.out file from your LLVM_OBJ_ROOTI didn't find that file in the source anywhere. Also, I don't normally use llvm-gcc, so I didn't knowingly configure for any version of llvm-gcc. But it turns out I have installed it already, from a binary: $ llvm-gcc --version llvm-gcc (GCC) 3.4-llvm 20051104 (LLVM 1.7cvs) It looks like I have enough of the llvm tools/libs installed to get my work done. thanks, Simon. -- Simon Burton, B.Sc. Licensed PO Box 8066 ANU Canberra 2601 Australia Ph. 61 2 6249 6940 http://arrowtheory.com
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 directoryThis 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/