build error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

build error

Simon Burton

>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 

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: build error

Reid Spencer-2
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.
>
>

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: build error

Simon Burton
On Mon, 07 Aug 2006 19:36:01 -0700
Reid Spencer <[hidden email]> 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_ROOT

I 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 
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: build error

Chris Lattner
In reply to this post by Simon Burton
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/
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: build error

Reid Spencer-2
In reply to this post by Simon Burton
Okay, that's the problem then.

When you configure llvm you need to give it the
--with-llvmgccdir=/path/to/llvmgcc. I suggest you carefully read the
getting started instructions, found here:

http://llvm.org/docs/GettingStarted.html

This will allow the runtime library to build properly. If you don't need
the runtime library (i.e. you don't care about running C/C++ programs
compiled with LLVM) then you can safely build LLVM with:

make tools-only

and it will skip the runtime directory.

Reid.

On Tue, 2006-08-08 at 14:01 +1000, Simon Burton wrote:

> On Mon, 07 Aug 2006 19:36:01 -0700
> Reid Spencer <[hidden email]> 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_ROOT
>
> I 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.
>

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev