Hi, I think I found the bug. I is strange that this hasn't been discovered
earlier.
[kjetil@ttlush faust2]$ diff -u
compiler/generator/llvm/llvm_instructions.hh~
compiler/generator/llvm/llvm_instructions.hh
--- compiler/generator/llvm/llvm_instructions.hh~2016-06-08
13:36:37.0 +0200
Very strange. It seems a little bit arbitrary when a program crashes though.
How about this program:
import("music.lib");
process = 0;
?
(this is the original program I reduced into the two "declare" lines)
On Wed, Jun 8, 2016 at 5:56 PM, Stéphane Letz wrote:
> Bizarre, it does not crash
Bizarre, it does not crash here..
Stéphane
> Le 8 juin 2016 à 17:50, Kjetil Matheussen a écrit :
>
>
>
> On Wed, Jun 8, 2016 at 5:27 PM, Kjetil Matheussen
> wrote:
>
> Could it be that this assert inside LLVM is not very important, and I just
> need to recompile it with NDEBUG defined?
>
On Wed, Jun 8, 2016 at 5:27 PM, Kjetil Matheussen
wrote:
>
> Could it be that this assert inside LLVM is not very important, and I just
> need to recompile it with NDEBUG defined?
>
No, commenting out the assert line in LLVM didn't help.
--
Doesn't seem to work too well.
This program crashes inside llvm:
"
declare author "GRAME";
declare copyright "GRAME";
process = 0;
"
If I change any of the "GRAME" strings to something else, it works.
Here's the backtrace:
[kjetil@ttlush test]$ FAUST_LIB_PATH=/home/kjetil/faust2/architecture
Applied and tested (a bit…) on OSX.
Thanks a lot!
Stéphane
> Le 7 juin 2016 à 14:04, Kjetil Matheussen a écrit :
>
> Hi,
>
> Here is a patch to make faust2 compile with llvm 3.8.0:
> http://users.notam02.no/~kjetism/faust2_llvm38.patch
>
> Although I mostly didn't know what I was doing, it s
Hi,
Here is a patch to make faust2 compile with llvm 3.8.0:
http://users.notam02.no/~kjetism/faust2_llvm38.patch
Although I mostly didn't know what I was doing, it seems
to work.
I had to recompile llvm though to support rtti (run time type information),
since llvm 3.8 is configured with -no-rtt