help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling octave 3.8 on Ubuntu 12.04?


From: Alasdair McAndrew
Subject: Re: Compiling octave 3.8 on Ubuntu 12.04?
Date: Thu, 2 Jan 2014 13:37:33 +1100

What I did in the end was call configure with

sudo ./configure JAVA_HOME=/usr/lib/jvm/default-java --prefix=/opt/octave3.8

and the subsequent compilation seemed to go through with no problems.  When I ran "make check" I got PASS: 11457,  FAIL: 10,  XFAIL: 7, SKIPPED: 36. 


On Thu, Jan 2, 2014 at 1:17 PM, Mike Miller <address@hidden> wrote:
On 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?

Please try uninstalling the llvm-2.9-dev package and rebuild, let us
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



--
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew

reply via email to

[Prev in Thread] Current Thread [Next in Thread]