|
From: | Alasdair McAndrew |
Subject: | Re: Compiling octave 3.8 on Ubuntu 12.04? |
Date: | Thu, 2 Jan 2014 13:37:33 +1100 |
Please try uninstalling the llvm-2.9-dev package and rebuild, let usOn Thu, 2 Jan 2014 11:14:49 +1100, Alasdair McAndrew wrote:
> Hello,
>
> I followed the instructions here:
>
> http://blogs.bu.edu/mhirsch/2013/12/compiling-octave-3-8/
>
> and then
>
> sudo apt-get install llvm-3.2-dev
>
> and finally
>
> sudo ./configure LLVM_CONFIG=/usr/bin/llvm-config-3.2
> JAVA_HOME=/usr/lib/jvm/default-java --enable-jit --prefix=/opt/octave3.8
>
> This ground away happily for an hour or so, until:
>
>
> In file included from corefcn/pt-jit.cc:81:0:
> /usr/include/llvm/Target/TargetData.h:38:6: error: multiple definition
> of 'enum llvm::AlignTypeEnum'
> /usr/lib/llvm-3.2/include/llvm/DataLayout.h:41:6: error: previous
> definition here
> /usr/include/llvm/Target/TargetData.h:296:7: error: redefinition of
> 'class llvm::StructLayout'
> /usr/lib/llvm-3.2/include/llvm/DataLayout.h:389:7: error: previous
> definition of 'class llvm::StructLayout'
> corefcn/pt-jit.cc: In member function 'bool tree_jit::initialize()':
> corefcn/pt-jit.cc:1898:53: error: 'class llvm::ExecutionEngine' has no
> member named 'getTargetData'
> make[3]: *** [corefcn/corefcn_libcorefcn_la-pt-jit.lo] Error 1
> make[3]: Leaving directory `/usr/local/src/octave-3.8.0/libinterp'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/local/src/octave-3.8.0/libinterp'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/octave-3.8.0'
> make: *** [all] Error 2
>
>
> Can anybody elucidate this, and let me know how I can compile without
> these errors?
know if that solves the problem.
Note that /usr/include/llvm is a symlink to the llvm-2.9-dev header
files, while /usr/lib/llvm-3.2/include is the correct include path for
llvm-3.2-dev.
HTH,
--
mike
[Prev in Thread] | Current Thread | [Next in Thread] |