HISE Logo Forum
    • Categories
    • Register
    • Login

    Updating to the latest HISE 3.0.3 build failure

    Scheduled Pinned Locked Moved General Questions
    24 Posts 4 Posters 1.1k 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.
    • T
      TNTHM
      last edited by

      I am updating HISE to the latest version (3.0.3). I would like to build it for Mac with Intel i7 chip.

      I am getting this error

      Showing Recent Issues
      Ignoring file ../../../../tools/faust/fakelib/libfaust.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64

      I am on a Mac Intel i7, 2020.
      Mac OS 12.1, Monterey.
      I am compiling the latest HISE git source code, 3.0.3.
      I am using JUCE v6.1.4 (which comes with 3.0.3 source code).
      I am using Xcode 13.4.1.

      Under Architectures in Xcode it shows
      Standard Architectures (Apple Silicon, Intel) - $(ARCHS_STANDARD)

      Under Excluded Architectures it shows
      i386 arm64 arm64e

      How can I fix this issue?

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

        @TNTHM - its in the error message, you are attempting to build an Arm64 build whilst using a faust library for x86 ( or re-looking at your error - maybe the other way round)

        -- so you should install the correct Faust for your operating system/CPU
        -- then set your HISE build target to also be for your OS/CPU

        HISE Development for hire.
        www.channelrobot.com

        T 1 Reply Last reply Reply Quote 0
        • T
          TNTHM @Lindon
          last edited by

          @Lindon That makes sense. I believe it is the other way around, yes. I am trying to build for x86 and the faust/fakelib/libfaust.a file that I downloaded in the 3.0.3 clone is arm64 architecture. Though, I don't know enough to say for sure that this is the case.

          I don't want to use Faust, but the placeholder libfaust.a file is giving me an error when compiling.

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

            @TNTHM - then compile for HISE alone not HISE with Faust

            HISE Development for hire.
            www.channelrobot.com

            T 1 Reply Last reply Reply Quote 0
            • T
              TNTHM @Lindon
              last edited by

              @Lindon When I compile for HISE alone is when I get the fatal error:

              Showing Recent Issues
              Ignoring file ../../../../tools/faust/fakelib/libfaust.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64

              I tried removing the line

              ../../../../tools/faust/fakelib

              in the Extra Library Search Paths in the JUCE project under Exporters >Xcode (OS) > Release, but it causes a different fatal error.

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

                @TNTHM Did you clean the build folder in between?

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

                T 1 Reply Last reply Reply Quote 0
                • T
                  TNTHM @d.healey
                  last edited by

                  @d-healey I did. In Xcode I went to

                  Product > Clean Build Folder

                  This is the correct way to clean the build folder, right?

                  When error persisted I dowloaded a fresh copy of the HISE source code and tried to compile again. The results are the same as before.

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

                    @TNTHM

                    This is the correct way to clean the build folder, right?

                    Yes

                    When error persisted I dowloaded a fresh copy of the HISE source code and tried to compile again. The results are the same as before.

                    Walk us through every step you're doing.

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

                    T 1 Reply Last reply Reply Quote 1
                    • T
                      TNTHM @d.healey
                      last edited by

                      @d-healey Sure thing.

                      Download source code

                      Navigate to the folder
                      /Users/[My name]/Desktop/HISE-master/tools/SDK

                      Open zip

                      Place VST3 SDK and ASIOSDK2.3 files in the SDK folder

                      Navigate to
                      /Users/[My name]/Desktop/HISE-master/projects/standalone

                      Open the file HISE Standalone.jucer

                      Enable GPLv3 in JUCE

                      JUCE gives a warning
                      "The path to your JUCE folder is incorrect"
                      Set path to JUCE folder as
                      /Users/[My Name]/Documents/HISE/HISE-3.0.3/JUCE/modules
                      The warning is still there but the path should be correct, I think.

                      JUCE prompts that a new version is available to download.
                      Ignore

                      In Modules > hi_core
                      Double check that USE_IPP is set to Disabled

                      In Modules > hi_faust
                      Double check that HISE_INCLUDE_FAUST is set to Disabled

                      Note: HISE_FAUST_USE_LLVM_JIT is set to Enabled
                      I tried a compile with this set to Disabled which failed

                      In Modules > hi_faust_types
                      Check FAUST_NO_WARNING_MESSAGES
                      It is set to Default (Disabled)
                      I tried a compile with this set to Enabled which also failed

                      In Exporters > Xcode (macOS)
                      Check Extra Preprocessor Definitions to ensure that USE_IPP=0

                      Note: In Extra Linker Flags
                      -rpath $(SRCROOT)/../../../../tools/faust/lib
                      I tried a compile deleting this which failed

                      In External Libraries to Link
                      faust
                      I tried a compile deleting this which failed

                      Check Valid Architectures
                      x86_64 is selected

                      In Exporters > Xcode > Release
                      In Extra Library Search Paths
                      ../../../../tools/faust/fakelib
                      I tried a compile deleting this which failed

                      With Release selected
                      File > Save Project and Open in IDE...

                      In Xcode
                      Wait for indexing

                      Set macOS Deployment Target to 12.0

                      HISE Standalone - App > Edit Scheme...
                      Check that Profile is set to Build Configuration: Release

                      Product > Build for > Profiling

                      Building proceeds fine and then gets stick at 155/160
                      There are 70 yellow warnings through the build process and 1 red error that causes the build process to fail.

                      I also tried replacing the libfaust.a file with a blank file which did not work.

                      1 Reply Last reply Reply Quote 0
                      • P
                        parker01
                        last edited by

                        First, let's ensure that you have followed the correct update procedure. Double-check the documentation or release notes provided by the HISE developers to ensure that you're following the recommended update process. It's possible that there are specific instructions or prerequisites that need to be addressed before the update can be successfully installed. For more information Click Here

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

                          @parker01 wow these bots are getting really good.....

                          HISE Development for hire.
                          www.channelrobot.com

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

                            Download source code

                            Navigate to the folder
                            /Users/[My name]/Desktop/HISE-master/tools/SDK

                            This tells me that you have downloaded the master branch and not the develop branch.

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

                            T 1 Reply Last reply Reply Quote 0
                            • T
                              TNTHM @d.healey
                              last edited by

                              @d-healey I noticed that there were two but didn't understand the difference. I take it I need the developer. What is the master for and what is the developer for?

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

                                @TNTHM If you click the branches link on the github page you'll see all of the current branches and when they were last updated. Generally you should probably always use the develop branch unless you want to use another branch for a specific reason.

                                The master branch is always out of date but it represents a stable snapshot of the source code.

                                I recommend you learn how to use git to manage different HISE versions.

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

                                T 2 Replies Last reply Reply Quote 0
                                • T
                                  TNTHM @d.healey
                                  last edited by

                                  @d-healey I see. I will, thank you for linking the video!

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    TNTHM @d.healey
                                    last edited by

                                    @d-healey I watched your video and I understand git and version control now and how to make sure you get the right version. That was really helpful, thank you.

                                    I am still getting an error on compiling, here is the full error message:

                                    Ld /Users/[My name]/Downloads/HISE-3.0.3/projects/standalone/Builds/MacOSX/build/Release/HISE.app/Contents/MacOS/HISE normal (in target 'HISE Standalone - App' from project 'HISE Standalone')
                                        cd /Users/[My name]/Downloads/HISE-3.0.3/projects/standalone/Builds/MacOSX
                                        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target x86_64-apple-macos10.9 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -L/Users/[My name]/Downloads/HISE-3.0.3/projects/standalone/Builds/MacOSX/build/Release -L../../../../tools/faust/fakelib -F/Users/[My name]/Downloads/HISE-3.0.3/projects/standalone/Builds/MacOSX/build/Release -filelist /Users/[My name]/Library/Developer/Xcode/DerivedData/HISE_Standalone-aegggqgrigitlrbhcadzloojgjwy/Build/Intermediates.noindex/HISE\ Standalone.build/Release/HISE\ Standalone\ -\ App.build/Objects-normal/x86_64/HISE.LinkFileList -dead_strip -stdlib\=libc++ -lfaust -rpath /Users/[My name]/Downloads/HISE-3.0.3/projects/standalone/Builds/MacOSX/../../../../tools/faust/lib -framework Accelerate -framework AudioToolbox -framework Carbon -framework Cocoa -framework CoreAudio -framework CoreAudioKit -framework CoreMIDI -framework DiscRecording -framework Foundation -framework IOKit -framework OpenGL -framework QuartzCore -framework WebKit -Xlinker -dependency_info -Xlinker /Users/[My name]/Library/Developer/Xcode/DerivedData/HISE_Standalone-aegggqgrigitlrbhcadzloojgjwy/Build/Intermediates.noindex/HISE\ Standalone.build/Release/HISE\ Standalone\ -\ App.build/Objects-normal/x86_64/HISE_dependency_info.dat -o /Users/[My name]/Downloads/HISE-3.0.3/projects/standalone/Builds/MacOSX/build/Release/HISE.app/Contents/MacOS/HISE
                                    
                                    ld: warning: ignoring file ../../../../tools/faust/fakelib/libfaust.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
                                    LLVM ERROR: SmallVector unable to grow. Requested capacity (4294967296) is larger than maximum value for size type (4294967295)
                                    clang: error: unable to execute command: Abort trap: 6
                                    clang: error: linker command failed due to signal (use -v to see invocation)
                                    Command Ld failed with a nonzero exit code
                                    

                                    I deleted all other copies of the source code from my system.
                                    Is there anything I can try to fix the error?

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

                                      @TNTHM Are you sure you are building the correct thing?

                                      You should be building just the Release option, not the Release with Faust.

                                      9d0078a3-ae8e-4f32-89e6-6e70afb2f996-image.png

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

                                      T 2 Replies Last reply Reply Quote 0
                                      • T
                                        TNTHM @d.healey
                                        last edited by

                                        @d-healey Good to double check. I am building release, yes.

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          TNTHM @d.healey
                                          last edited by

                                          @d-healey In the release notes for How to use Faust on macOS:

                                          "Integrating Faust on macOS is a bit special because (for now) we're running HISE under Rosetta so we need to use the x86 Faust libraries"

                                          I looked up Rosetta and it says that it is an interpreter program for Intel x64 architecture to communicate with arm64 architecture. If I am compiling for x64 architecture do I possibly need to run the compiler without Rosetta?

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

                                            @TNTHM

                                            Run this script. It will download the latest develop branch to your desktop and build HISE.

                                            build_hise_osx.zip

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

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

                                            12

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.6k

                                            Posts