grame-cncm / faust

Functional programming language for signal processing and sound synthesis
http://faust.grame.fr
Other
2.59k stars 325 forks source link

int64_t has not been decalred #1014

Closed ddgg-el closed 1 week ago

ddgg-el commented 6 months ago

Hello!

I am having problem compiling faust on MSYS2 MinGW64.

In file included from faust/compiler/interval/interval_algebra.hh:5,
                from faust/compiler/signals/interval.hh:30:
faust/compiler/FaustAlgebra/FaustAlgebra.hh:54:24: error: 'int64_t' has not been declared
  54 |     virtual T Int64Num(int64_t x)         = 0;
     |                        ^~~~~~~
faust/compiler/interval/interval_algebra.hh:17:23: error: 'int64_t' has not been declared
  17 |     interval Int64Num(int64_t x) override;
     |                       ^~~~~~~

Is there any dependency that I am not aware of? Thank you!

sletz commented 6 months ago

Probably a missing header: that to add#include <cstdint>, probably to be added in FaustAlgebra.hh

Can you check and report ?

ddgg-el commented 6 months ago

Including cstdint I can compile faust but when running

./build/bin/faust --version

results in a Segmentation fault.

sletz commented 6 months ago

Any log there ?

ddgg-el commented 6 months ago

no but I'll keep investigating...I think that it is something related to this installation of MinGW. On another computer it works flawless. I don't even have to add the "missing" header

sletz commented 4 months ago

Does this commit fix the crash issue https://github.com/grame-cncm/faust/commit/08cf4e905fbcec5a2cd454705f317aff87e9b7cb ?

sletz commented 1 week ago

Should be fixed by https://github.com/grame-cncm/faust/commit/08cf4e905fbcec5a2cd454705f317aff87e9b7cb.