|
From: | Michael Goffioul |
Subject: | Re: Updating MXE to llvm-3.1 |
Date: | Tue, 16 Jul 2013 13:32:40 -0400 |
John Donoghue-2 wrote
> From: Michael Goffioul [mailto:
> michael.goffioul@
> On Tue, Jul 16, 2013 at 12:17 PM, John D <
> ]
> Sent: Tuesday, July 16, 2013 12:52 PM
> To: John D
> Cc: Octave Maintainers List
> Subject: Re: Updating MXE to llvm-3.1
>
>
>
> john.david.donoghue@
> >
> wrote:> From: Michael Goffioul <
>
> ------------------------------
>
> Message: 2
> Date: Mon, 15 Jul 2013 21:07:48 -0400
> michael.goffioul@
> >
> To: Stefan Mahr <
> dac922@
> >
> Cc: Octave Maintainers List <
> octave-maintainers@
> >
> Subject: Re: Re: Updating MXE to llvm-3.1> <
> Message-ID:
> address@hidden
> >
> Content-Type: text/plain; charset="iso-8859-1">> wrote:
>
> On Mon, Jul 15, 2013 at 5:37 PM, Michael Goffioul <
> michael.goffioul@
>
>> On Mon, Jul 15, 2013 at 11:45 AM, Stefan Mahr <
> dac922@
> > wrote:
>>
>>> Michael D. Godfrey wrote:
>>> > Have you been following the maintainers llvm/jit thread? Octave
>>> > devel currently supports llvm 3.1.and 3.2.
>>>
>>> AFAIK it supports LLVM 3.0 and 3.1. There's a patch for 3.2 in bug
>>> tracker, but it's not applied yet.
>>>
>>>
>>>
>>> Michael Goffioul wrote:
>>> > If it breaks horribly for everyone, we can consider downgrading,
>>> > but if
>>> not, it makes my life easier.
>>>
>>> [build] llvm
>>>
>>> Failed to build package llvm!
>>> ------------------------------------------------------------
>>> llvm-build: error: invalid target to enable: '' (not in project)
>>> -- Configuring incomplete, errors occurred!
>>>
>>
>> It seems the ';' in -DLLVM_TARGETS_TO_BUILD="X86;" is causing the
>> problem.
>> This also should only happen when cross-compiling.
>>
>
> This should fix the problem:
>
> http://hg.octave.org/mxe-octave/rev/0d23e586d872
>
> Michael.
>
> ---------
>
> With latest changeset 0d23e586d872, native mingw build:
>
> llvm[3]: Building llvm-config BuildVariables.inc file.
> llvm[3]: Compiling llvm-config.cpp for Release+Asserts build
> C:/MinGW/msys/1.0/home/jdonoghue/mxe-octave/tmp-llvm/llvm-3.1.src/tools/llvm
> -config/llvm-config.cpp:45:35: fatal error: LibraryDependencies.inc: No
> such
> file or directory compilation terminated.
> /bin/rm: cannot lstat
> `/usr/home/jdonoghue/mxe-octave/tmp-llvm/llvm-3.1.src/build/tools/llvm-confi
> g/Release+Asserts/llvm-config.d.tmp': No such file or directory
> make[3]: ***
> [/usr/home/jdonoghue/mxe-octave/tmp-llvm/llvm-3.1.src/build/tools/llvm-confi
> g/Release+Asserts/llvm-config.o] Error 1
> make[3]: Leaving directory
> `/home/jdonoghue/mxe-octave/tmp-llvm/llvm-3.1.src/build/tools/llvm-config'
> make[2]: *** [install] Error 1
>
>
>
> I don't do native MinGW compilation at the moment. Would you mind
> investigating in the Makefile's what's going on? It seems a file is not
> automatically generated (LibraryDependencies.inc). Alternatively, you
> might
> want to try to use cmake instead?
>
>
>
> Michael.
>
>
>
> _____
>
> I will take a look.Did you build llvm by simply using configure - make make install entered
>
> I originally got the native mingw build working by using the autotools as
> I
> gave up on the cmake stuff - I'm not a cmake fan, and the annoying trying
> to
> use Visual C message kept on coming up no matter what I seemed to do.
manually, rather than mk-dist?
I had similar troubles as you (Visual C++ interference and "llvm-config not
found") while running a native MXE build.
MXE configure has an option "--enable-jit" but the output from
'octave_config_info' from a cross build shows it just didn't work.
I think src/octave.mk has to be patched to (attempt to) build llvm support
(i.e., add the --enable-jit flag to the configure options there). I was
going to try that tonight (with an older MXE checkout) but I have little
hope -it didn't work last time I tried.
[Prev in Thread] | Current Thread | [Next in Thread] |