Solved Errors with faust build
-
I'm seeing a bunch of faust related errors with the latest develop branch. If I build without faust then there is no issue.
In file included from ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/hi_faust_types.h:63, from ../../../../../HISE/hi_faust_jit/../hi_faust/hi_faust.h:90, from ../../../../../HISE/hi_faust_jit/hi_faust_jit.cpp:2, from ../../JuceLibraryCode/include_hi_faust_jit.cpp:9: ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h:255:9: error: ‘intptr_t’ does not name a type 255 | intptr_t fpsr; | ^~~~~~~~ ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h:39:1: note: ‘intptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 38 | #include <xmmintrin.h> +++ |+#include <cstdint> 39 | #endif ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h:257:34: error: ‘intptr_t’ has not been declared 257 | void setFpStatusRegister(intptr_t fpsr_aux) noexcept | ^~~~~~~~ ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h: In member function ‘void faust::ScopedNoDenormals::setFpStatusRegister(int)’: ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h:262:36: error: ‘uint32_t’ does not name a type 262 | _mm_setcsr(static_cast<uint32_t>(fpsr_aux)); | ^~~~~~~~ ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h:262:36: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h: In member function ‘void faust::ScopedNoDenormals::getFpStatusRegister()’: ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h:271:13: error: ‘fpsr’ was not declared in this scope 271 | fpsr = static_cast<intptr_t>(_mm_getcsr()); | ^~~~ ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h:271:32: error: ‘intptr_t’ does not name a type 271 | fpsr = static_cast<intptr_t>(_mm_getcsr()); | ^~~~~~~~ ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h:271:32: note: ‘intptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h: In constructor ‘faust::ScopedNoDenormals::ScopedNoDenormals()’: ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h:284:17: error: ‘intptr_t’ was not declared in this scope 284 | intptr_t mask = 0x8040; | ^~~~~~~~ ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h:284:17: note: ‘intptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h:293:33: error: ‘fpsr’ was not declared in this scope 293 | setFpStatusRegister(fpsr | mask); | ^~~~ ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h:293:40: error: ‘mask’ was not declared in this scope 293 | setFpStatusRegister(fpsr | mask); | ^~~~ ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h: In destructor ‘faust::ScopedNoDenormals::~ScopedNoDenormals()’: ../../../../../HISE/hi_faust_jit/../hi_faust/../hi_faust_types/faust_wrap/dsp/dsp.h:298:33: error: ‘fpsr’ was not declared in this scope 298 | setFpStatusRegister(fpsr);
-
Since there hasn't been any recent changes to the files mentioned in the errors, and I've just noticed I'm using a recent version of FAUST (2.70.3) I'm assuming these errors are related to the newer FAUST version?
-
@d-healey have you tried an older faust version?
-
@DanH Nope, I'm just using the one that comes with my distro. Which was updated sometime last month I think. If my suspicions are correct it will work with an earlier version, but I'm not living in the past. :)
-
I rolled back to faust v2.54.9 and I'm still seeing the errors. So seems it's not related to the faust version. @DanH Does the latest commit build for you with faust?
-
@d-healey which OS?
-
@Christoph-Hart Debian Testing
-
@d-healey seems like some missing header definitions, but the build process with Faust is so convoluted that I can't really help you with an OS that I have no experience with.
I haven't changed anything when it comes to the Faust integration for quite some time, so it's highly likely that it's some kind of local build glitch.
-
@Christoph-Hart Ah ok, I'll try it on one of my Linux VMs and see if I can solve it. I'm not actually using faust for anything so at least for the moment it's not a big deal for me.
-
Magically it's working today. I guess I just needed to restart my computer or something.
-
-