HISE Logo Forum
    • Categories
    • Register
    • Login

    Issue compiling HISE on Mac

    Scheduled Pinned Locked Moved General Questions
    24 Posts 5 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.
    • Christoph HartC
      Christoph Hart @dannytaurus
      last edited by

      @dannytaurus what, 1 hour per compile? Lol that's ridiculous, my Macbook Air M1 compiles HISE in the debug configuration within 1-2 minutes. I do have 16GB though but I don't think that should cause such a difference.

      Have you recently updated macOS or Xcode? I'm not sure if I'm running XCode 16 on there and Apple has the habit of completely f***cking up EVERY SINGLE XCODE RELEASE I CAN THINK OF...

      dannytaurusD 1 Reply Last reply Reply Quote 0
      • dannytaurusD
        dannytaurus @Christoph Hart
        last edited by

        @Christoph-Hart said in Issue compiling HISE on Mac:

        f***cking up EVERY SINGLE XCODE RELEASE I CAN THINK OF...

        Yep, sounds about right for Apple 😂

        I haven't updated macOS or Xcode since I was last able to compile. But it has always taken about an hour.

        Could this be related to the missing xcpretty gem discussed here: https://forum.hise.audio/topic/10559/export-setup-wizard-can-t-find-xcpretty?_=1728752884394

        If not, what steps can I take to narrow this down?

        Meat Beats: https://meatbeats.com
        Klippr Video: https://klippr.video

        Christoph HartC 1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart @dannytaurus
          last edited by

          @dannytaurus are you compiling through Xcode or through the command line?

          There is a minimal build configuration which you can choose as Debug build which excludes a few things (Faust, RTNeural, RLottie) and speeds up the build time by about 30% - 40%, which is what I'm using in my development cycle, but I don't think that this will help you.

          Not sure where to start troubleshooting this, maybe look at the activity monitor if it blows up the memory.

          dannytaurusD 2 Replies Last reply Reply Quote 0
          • dannytaurusD
            dannytaurus @Christoph Hart
            last edited by

            @Christoph-Hart I'm compiling in Xcode, following these instructions:

            1. Open HISE/tools/projucer
            2. In Projucer, open HISE/projects/standalone/HISE Standalone.jucer
            3. Hit the Xcode button at the top
            4. In Xcode do Product > Build For > Running

            Then wait...

            A couple of days ago I tried Product > Run and it launched HISE in less than a minute but now that takes a very long time too, and has crashed the Mac a couple of times.

            Meat Beats: https://meatbeats.com
            Klippr Video: https://klippr.video

            LindonL 1 Reply Last reply Reply Quote 0
            • dannytaurusD
              dannytaurus @Christoph Hart
              last edited by

              @Christoph-Hart Activity Monitor shows the Memory Pressure up in the red with 7+GB used of 8GB.

              CleanShot 2024-10-12 at 10.50.06@2x.png

              I'm trying Product > Run at the moment. It's been 14 minutes so far and it's on Building 136 / 148.

              It gets up to around 120+ of 148 within a minute to two then creeps through the remaining steps very slowly.

              It's usually at this point that the Mac will crash.

              Meat Beats: https://meatbeats.com
              Klippr Video: https://klippr.video

              bendursoB 1 Reply Last reply Reply Quote 0
              • bendursoB
                bendurso @dannytaurus
                last edited by

                @dannytaurus Mm maybe it's because of Xcode 16. I'm using M2 with 8GB and I can compile in 5 minutes using xcode 15.2.

                dannytaurusD 1 Reply Last reply Reply Quote 1
                • dannytaurusD
                  dannytaurus @bendurso
                  last edited by

                  @bendurso Thanks, I'll give that a try.

                  I don't use Xcode for coding HISE, only building. So I don't care at all which version is installed.

                  I just installed the one from the App Store for Sonoma.

                  Meat Beats: https://meatbeats.com
                  Klippr Video: https://klippr.video

                  1 Reply Last reply Reply Quote 0
                  • dannytaurusD
                    dannytaurus
                    last edited by

                    I removed Xcode 16 and installed 15.2 and build time went down to 30 minutes and didn't cause a complete crash of the machine.

                    I also quit a couple of background apps that might've been contributing to the slow times - an iStats-style resource watcher and a disk space indicator.

                    So at least I can compile HISE now, even if it takes a long time.

                    It's still getting stuck around 131 / 144. Then takes the majority of the 30 mins to do the rest.

                    Meat Beats: https://meatbeats.com
                    Klippr Video: https://klippr.video

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

                      @dannytaurus It sounds like it's the linking stage that's hanging, linking is really slow on Mac, I haven't found a way to speed it up, but 30 minutes seems like way too long. Check how many CPU cores/threads are being used.

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

                      dannytaurusD 1 Reply Last reply Reply Quote 0
                      • dannytaurusD
                        dannytaurus
                        last edited by

                        @Christoph-Hart Here's the timings of the build log if it helps. Sorry for the absurdly tall image. I' tried exporting the logs but they don't include the timings.

                        Seems to taking a long time on:

                        • hi_tools_01.cpp
                        • hi_scripting_03.cpp
                        • hi_scripting_01.cpp
                        • hi_lac_02.cpp
                        • hi_core_04.cpp
                        • hi_core.cpp
                        • hi_backend.mm
                        • Main.cpp

                        CleanShot 2024-10-12 at 12.56.26.png

                        Meat Beats: https://meatbeats.com
                        Klippr Video: https://klippr.video

                        1 Reply Last reply Reply Quote 0
                        • dannytaurusD
                          dannytaurus @d.healey
                          last edited by dannytaurus

                          @d-healey said in Issue compiling HISE on Mac:

                          @dannytaurus It sounds like it's the linking stage that's hanging, linking is really slow on Mac, I haven't found a way to speed it up, but 30 minutes seems like way too long. Check how many CPU cores/threads are being used.

                          Looks like all 8 CPU cores (or at least 8 clang threads) and almost all 8GB of RAM.

                          Also see my last post above with the build log timings and which files are taking a long time.

                          CleanShot 2024-10-12 at 10.43.16@2x.png

                          CleanShot 2024-10-12 at 10.50.06@2x.png

                          Meat Beats: https://meatbeats.com
                          Klippr Video: https://klippr.video

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

                            @dannytaurus might be ram that is the limiting factor then

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

                            dannytaurusD 1 Reply Last reply Reply Quote 0
                            • dannytaurusD
                              dannytaurus @d.healey
                              last edited by

                              @d-healey said in Issue compiling HISE on Mac:

                              @dannytaurus might be ram that is the limiting factor then

                              Yeah, I thought that too but @bendurso has M2 Mac with 8GB RAM and compiles in 5 mins 🤔

                              Meat Beats: https://meatbeats.com
                              Klippr Video: https://klippr.video

                              bendursoB 1 Reply Last reply Reply Quote 0
                              • LindonL
                                Lindon @dannytaurus
                                last edited by Lindon

                                @dannytaurus said in Issue compiling HISE on Mac:

                                @Christoph-Hart I'm compiling in Xcode, following these instructions:

                                1. Open HISE/tools/projucer
                                2. In Projucer, open HISE/projects/standalone/HISE Standalone.jucer
                                3. Hit the Xcode button at the top
                                4. In Xcode do Product > Build For > Running

                                Then wait...

                                A couple of days ago I tried Product > Run and it launched HISE in less than a minute but now that takes a very long time too, and has crashed the Mac a couple of times.

                                is step 4 correct? I recall(not on the mac right now) that "Running" isnt the target we use? Dont we use
                                Build for>Profiling ??

                                HISE Development for hire.
                                www.channelrobot.com

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

                                  @Lindon Running = debug build, profiling =release. They're both right, just depends what you want.

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

                                  LindonL bendursoB 2 Replies Last reply Reply Quote 0
                                  • LindonL
                                    Lindon @d.healey
                                    last edited by

                                    @d-healey said in Issue compiling HISE on Mac:

                                    @Lindon Running = debug build, profiling =release. They're both right, just depends what you want.

                                    and theres me thinking Build for> Test was for debugging....

                                    HISE Development for hire.
                                    www.channelrobot.com

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

                                      @Lindon Why would Apple be that logical :p

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

                                      1 Reply Last reply Reply Quote 0
                                      • bendursoB
                                        bendurso @d.healey
                                        last edited by

                                        @d-healey Debug is not slower than release? Maybe that's why he takes 30 minutes to compile.

                                        @dannytaurus or are you using Build for profiling?

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

                                          @bendurso said in Issue compiling HISE on Mac:

                                          Debug is not slower than release?

                                          Debug will build faster because it doesn't have to optimize as it does for the release.

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

                                          dannytaurusD 1 Reply Last reply Reply Quote 0
                                          • bendursoB
                                            bendurso @dannytaurus
                                            last edited by

                                            @dannytaurus Did you disable x86_64 from "Valid Architectures" on Projucer?

                                            I just was compiling Hise and forgot to remove that option, so it ended up running for about 20 minutes before giving me an faust error. Once I removed the option, it compiled in just 4 minutes. The process uses nearly all the RAM (7GB), but it's still fast.

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

                                            22

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.6k

                                            Posts