Error building libcpu on Ubuntu 10.04 with LLVM-2.6

60 views
Skip to first unread message

tsukishiro yamazaki

unread,
Aug 28, 2012, 3:39:41 AM8/28/12
to lib...@googlegroups.com
Hi,

I am having trouble building libcpu on my Ubuntu 10.04 machine.
I followed the instructions in Getting Started in libcpu's wiki.
    - Got LLVM-2.6 (did configure, make, and make install)
    - Got CMake 2.8.0
    - Installed other dependencies

When I execute make on libcpu, I get quite a lot of build errors.
To name a few :
1.) /libcpu/upcl/sema/expr_convert.cpp:30: error: call of overloaded 'fromInteger(long long unsigned int, long unsigned int)' is ambiguous
2.) /libcpu/libcpu/optimize.cpp:19: error: no matching function for call to 'llvm::FunctionPassManager::FunctionPassManager(llvm::Module*&)'

Can someone give me points to consider to fix these build errors?
Thanks,
- tsukishiro

Pekka Enberg

unread,
Aug 29, 2012, 3:18:26 AM8/29/12
to lib...@googlegroups.com, tsukis...@gmail.com
The instructions on libcpu wiki are not up to date, I suppose. IIRC we
require LLVM 2.8 these days.

Gianluca Guida

unread,
Sep 4, 2012, 12:09:43 PM9/4/12
to lib...@googlegroups.com
Yes, we're floating right now between 2.8 and 3.0.

G.

Pekka Enberg

unread,
Sep 4, 2012, 3:48:51 AM9/4/12
to lib...@googlegroups.com, Gianluca Guida
On Tue, Aug 28, 2012 at 10:39 AM, tsukishiro yamazaki
>> <tsukis...@gmail.com> wrote:
>> > Can someone give me points to consider to fix these build errors?

On Wed, Aug 29, 2012 at 10:18:26AM +0300, Pekka Enberg wrote:
>> The instructions on libcpu wiki are not up to date, I suppose. IIRC we
>> require LLVM 2.8 these days.

On Tue, Sep 4, 2012 at 7:09 PM, Gianluca Guida <glg...@tlbflush.org> wrote:
> Yes, we're floating right now between 2.8 and 3.0.

Also, libcpu does not compile on 64-bit x86 Linux which was the real
issue for Tsukishiro-san.
Reply all
Reply to author
Forward
0 new messages