HISE Logo Forum
    • Categories
    • Register
    • Login

    Errors with faust build

    Scheduled Pinned Locked Moved Solved Faust Development
    18 Posts 4 Posters 866 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey
      last edited by

      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);
      
      

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        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?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        DanHD 1 Reply Last reply Reply Quote 0
        • DanHD
          DanH @d.healey
          last edited by

          @d-healey have you tried an older faust version?

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @DanH
            last edited by

            @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. :)

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey
              last edited by

              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?

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              Christoph HartC 1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @d.healey
                last edited by

                @d-healey which OS?

                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @Christoph Hart
                  last edited by

                  @Christoph-Hart Debian Testing

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  Christoph HartC 1 Reply Last reply Reply Quote 0
                  • Christoph HartC
                    Christoph Hart @d.healey
                    last edited by

                    @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.

                    d.healeyD 1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey @Christoph Hart
                      last edited by

                      @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.

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey
                        last edited by

                        Magically it's working today. I guess I just needed to restart my computer or something.

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        oskarshO 1 Reply Last reply Reply Quote 0
                        • d.healeyD d.healey marked this topic as a question on
                        • d.healeyD d.healey has marked this topic as solved on
                        • oskarshO
                          oskarsh @d.healey
                          last edited by

                          @d-healey I am running into the same exact problem on latest HISE Develop on Linux and Faust 2.69.3

                          Can you share your config that works for you? I tried multiple Faust version but the newer ones all seem to produce the same error.

                          breathing HISE

                          d.healeyD 1 Reply Last reply Reply Quote 0
                          • d.healeyD
                            d.healey @oskarsh
                            last edited by d.healey

                            @oskarsh I haven't used faust since this post so I don't know if it's still working for me

                            Ah wait, are you trying to compile HISE or a project?

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            oskarshO 1 Reply Last reply Reply Quote 0
                            • oskarshO
                              oskarsh @d.healey
                              last edited by

                              @d-healey On Linux I am trying to compile HISE with Faust.

                              breathing HISE

                              d.healeyD 1 Reply Last reply Reply Quote 0
                              • d.healeyD
                                d.healey @oskarsh
                                last edited by

                                @oskarsh I have faust version 2.72.14. I believe this is the current version in the Debian testing repo.

                                Libre Wave - Freedom respecting instruments and effects
                                My Patreon - HISE tutorials
                                YouTube Channel - Public HISE tutorials

                                oskarshO 1 Reply Last reply Reply Quote 0
                                • oskarshO
                                  oskarsh @d.healey
                                  last edited by

                                  @d-healey Which commit of HISE are you running? Have you tried one of the latest develop builds?

                                  breathing HISE

                                  d.healeyD 1 Reply Last reply Reply Quote 0
                                  • d.healeyD
                                    d.healey @oskarsh
                                    last edited by

                                    @oskarsh I'm on the commit from yesterday "fixed poly filter display not being updated correctly when no voices are played"

                                    Libre Wave - Freedom respecting instruments and effects
                                    My Patreon - HISE tutorials
                                    YouTube Channel - Public HISE tutorials

                                    oskarshO 1 Reply Last reply Reply Quote 0
                                    • oskarshO
                                      oskarsh @d.healey
                                      last edited by

                                      @d-healey got it. I will try to get the latest faust running and try to compile HISE with it.

                                      breathing HISE

                                      oskarshO 1 Reply Last reply Reply Quote 0
                                      • oskarshO
                                        oskarsh @oskarsh
                                        last edited by

                                        @oskarsh I've set up a new Debian Testing VM, installed faust 2.72.9.

                                        I needed to compille faust using the BACKEND=backends/all.cmake && sudo make install
                                        If you have a version from apt that does not produce any errors use that!

                                        I then set up HISE with faust the usual way by adding faust to the extra linker flags and enabling faust in the modules.

                                        To fix the _mm_setcsr(static_cast<uint32_t>(fpsr_aux)); or setFpStatusRegister(fpsr); error. I've added this line to HISE source code.
                                        #include <cstdint>

                                        at the beginning of the dsp.h file

                                        breathing HISE

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post

                                        55

                                        Online

                                        1.7k

                                        Users

                                        11.7k

                                        Topics

                                        101.9k

                                        Posts