jatinchowdhury18 / ADAA

Experiments with Antiderivative Antialiasing
BSD 3-Clause "New" or "Revised" License
72 stars 8 forks source link

compiling issues #3

Open jeppius opened 9 months ago

jeppius commented 9 months ago

I would love to compile the ADAA plugin for Mac M1 platform, would that be feasible? By now, I am stuck with a number of errors I do not know how to solve:

% cmake -Bbuild -- The C compiler identification is AppleClang 14.0.0.14000029 -- The CXX compiler identification is AppleClang 14.0.0.14000029 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring juceaide -- Building juceaide CMake Error at modules/JUCE/extras/Build/juceaide/CMakeLists.txt:86 (message): Failed to build juceaide

[ 12%] Building CXX object extras/Build/juceaide/CMakeFiles/juceaide.dir/Main.cpp.o

In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juceaide/Main.cpp:26:

In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juce_build_tools/juce_build_tools.h:56:

In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_gui_basics/juce_gui_basics.h:56:

In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_graphics/juce_graphics.h:57:

In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/juce_core.h:239:

/Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/memory/juce_LeakedObjectDetector.h:92:17: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not?

              jassertfalse;
              ^

/Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:150:140: note: expanded from macro 'jassertfalse'

#define jassertfalse              JUCE_BLOCK_WITH_FORCED_SEMICOLON (JUCE_LOG_CURRENT_ASSERTION; if (juce::juce_isRunningUnderDebugger()) JUCE_BREAK_IN_DEBUGGER; JUCE_ANALYZER_NORETURN)
                                                                                                                                         ^

/Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:78:48: note: expanded from macro 'JUCE_BREAK_IN_DEBUGGER'

 #define JUCE_BREAK_IN_DEBUGGER       { asm ("int $3"); }
                                             ^
:1:2: note: instantiated into assembly here int $3 ^ In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juceaide/Main.cpp:26: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juce_build_tools/juce_build_tools.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_gui_basics/juce_gui_basics.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_graphics/juce_graphics.h:57: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/juce_core.h:239: /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/memory/juce_LeakedObjectDetector.h:68:13: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not? jassertfalse; ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:150:140: note: expanded from macro 'jassertfalse' #define jassertfalse JUCE_BLOCK_WITH_FORCED_SEMICOLON (JUCE_LOG_CURRENT_ASSERTION; if (juce::juce_isRunningUnderDebugger()) JUCE_BREAK_IN_DEBUGGER; JUCE_ANALYZER_NORETURN) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:78:48: note: expanded from macro 'JUCE_BREAK_IN_DEBUGGER' #define JUCE_BREAK_IN_DEBUGGER { asm ("int $3"); } ^ :1:2: note: instantiated into assembly here int $3 ^ In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juceaide/Main.cpp:26: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juce_build_tools/juce_build_tools.h:58: /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juce_build_tools/utils/juce_ProjectType.h:141:17: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not? jassertfalse; ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:150:140: note: expanded from macro 'jassertfalse' #define jassertfalse JUCE_BLOCK_WITH_FORCED_SEMICOLON (JUCE_LOG_CURRENT_ASSERTION; if (juce::juce_isRunningUnderDebugger()) JUCE_BREAK_IN_DEBUGGER; JUCE_ANALYZER_NORETURN) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:78:48: note: expanded from macro 'JUCE_BREAK_IN_DEBUGGER' #define JUCE_BREAK_IN_DEBUGGER { asm ("int $3"); } ^ :1:2: note: instantiated into assembly here int $3 ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juceaide/Main.cpp:288:9: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not? jassert (! bundleIdSegments.isEmpty()); ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:160:91: note: expanded from macro 'jassert' #define jassert(expression) JUCE_BLOCK_WITH_FORCED_SEMICOLON (if (! (expression)) jassertfalse;) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:150:140: note: expanded from macro 'jassertfalse' #define jassertfalse JUCE_BLOCK_WITH_FORCED_SEMICOLON (JUCE_LOG_CURRENT_ASSERTION; if (juce::juce_isRunningUnderDebugger()) JUCE_BREAK_IN_DEBUGGER; JUCE_ANALYZER_NORETURN) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:78:48: note: expanded from macro 'JUCE_BREAK_IN_DEBUGGER' #define JUCE_BREAK_IN_DEBUGGER { asm ("int $3"); } ^ :1:2: note: instantiated into assembly here int $3 ^ In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juceaide/Main.cpp:26: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juce_build_tools/juce_build_tools.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_gui_basics/juce_gui_basics.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_graphics/juce_graphics.h:57: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/juce_core.h:222: /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/maths/juce_MathsFunctions.h:288:5: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not? jassert (upperLimit >= 0); // makes no sense to call this if the upper limit is itself below zero.. ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:160:91: note: expanded from macro 'jassert' #define jassert(expression) JUCE_BLOCK_WITH_FORCED_SEMICOLON (if (! (expression)) jassertfalse;) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:150:140: note: expanded from macro 'jassertfalse' #define jassertfalse JUCE_BLOCK_WITH_FORCED_SEMICOLON (JUCE_LOG_CURRENT_ASSERTION; if (juce::juce_isRunningUnderDebugger()) JUCE_BREAK_IN_DEBUGGER; JUCE_ANALYZER_NORETURN) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:78:48: note: expanded from macro 'JUCE_BREAK_IN_DEBUGGER' #define JUCE_BREAK_IN_DEBUGGER { asm ("int $3"); } ^ :1:2: note: instantiated into assembly here int $3 ^ In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juceaide/Main.cpp:26: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juce_build_tools/juce_build_tools.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_gui_basics/juce_gui_basics.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_graphics/juce_graphics.h:57: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/juce_core.h:255: /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/containers/juce_ArrayBase.h:141:9: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not? jassert (elements != nullptr); ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:160:91: note: expanded from macro 'jassert' #define jassert(expression) JUCE_BLOCK_WITH_FORCED_SEMICOLON (if (! (expression)) jassertfalse;) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:150:140: note: expanded from macro 'jassertfalse' #define jassertfalse JUCE_BLOCK_WITH_FORCED_SEMICOLON (JUCE_LOG_CURRENT_ASSERTION; if (juce::juce_isRunningUnderDebugger()) JUCE_BREAK_IN_DEBUGGER; JUCE_ANALYZER_NORETURN) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:78:48: note: expanded from macro 'JUCE_BREAK_IN_DEBUGGER' #define JUCE_BREAK_IN_DEBUGGER { asm ("int $3"); } ^ :1:2: note: instantiated into assembly here int $3 ^ In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juceaide/Main.cpp:26: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juce_build_tools/juce_build_tools.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_gui_basics/juce_gui_basics.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_graphics/juce_graphics.h:57: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/juce_core.h:255: /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/containers/juce_ArrayBase.h:142:9: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not? jassert (isPositiveAndBelow (index, numUsed)); ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:160:91: note: expanded from macro 'jassert' #define jassert(expression) JUCE_BLOCK_WITH_FORCED_SEMICOLON (if (! (expression)) jassertfalse;) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:150:140: note: expanded from macro 'jassertfalse' #define jassertfalse JUCE_BLOCK_WITH_FORCED_SEMICOLON (JUCE_LOG_CURRENT_ASSERTION; if (juce::juce_isRunningUnderDebugger()) JUCE_BREAK_IN_DEBUGGER; JUCE_ANALYZER_NORETURN) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:78:48: note: expanded from macro 'JUCE_BREAK_IN_DEBUGGER' #define JUCE_BREAK_IN_DEBUGGER { asm ("int $3"); } ^ :1:2: note: instantiated into assembly here int $3 ^ In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juceaide/Main.cpp:26: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juce_build_tools/juce_build_tools.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_gui_basics/juce_gui_basics.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_graphics/juce_graphics.h:57: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/juce_core.h:255: /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/containers/juce_ArrayBase.h:360:9: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not? jassert (indexToRemoveAt >= 0); ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:160:91: note: expanded from macro 'jassert' #define jassert(expression) JUCE_BLOCK_WITH_FORCED_SEMICOLON (if (! (expression)) jassertfalse;) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:150:140: note: expanded from macro 'jassertfalse' #define jassertfalse JUCE_BLOCK_WITH_FORCED_SEMICOLON (JUCE_LOG_CURRENT_ASSERTION; if (juce::juce_isRunningUnderDebugger()) JUCE_BREAK_IN_DEBUGGER; JUCE_ANALYZER_NORETURN) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:78:48: note: expanded from macro 'JUCE_BREAK_IN_DEBUGGER' #define JUCE_BREAK_IN_DEBUGGER { asm ("int $3"); } ^ :1:2: note: instantiated into assembly here int $3 ^ In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juceaide/Main.cpp:26: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juce_build_tools/juce_build_tools.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_gui_basics/juce_gui_basics.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_graphics/juce_graphics.h:57: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/juce_core.h:255: /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/containers/juce_ArrayBase.h:361:9: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not? jassert (numElementsToRemove >= 0); ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:160:91: note: expanded from macro 'jassert' #define jassert(expression) JUCE_BLOCK_WITH_FORCED_SEMICOLON (if (! (expression)) jassertfalse;) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:150:140: note: expanded from macro 'jassertfalse' #define jassertfalse JUCE_BLOCK_WITH_FORCED_SEMICOLON (JUCE_LOG_CURRENT_ASSERTION; if (juce::juce_isRunningUnderDebugger()) JUCE_BREAK_IN_DEBUGGER; JUCE_ANALYZER_NORETURN) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:78:48: note: expanded from macro 'JUCE_BREAK_IN_DEBUGGER' #define JUCE_BREAK_IN_DEBUGGER { asm ("int $3"); } ^ :1:2: note: instantiated into assembly here int $3 ^ In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juceaide/Main.cpp:26: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juce_build_tools/juce_build_tools.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_gui_basics/juce_gui_basics.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_graphics/juce_graphics.h:57: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/juce_core.h:255: /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/containers/juce_ArrayBase.h:362:9: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not? jassert (indexToRemoveAt + numElementsToRemove <= numUsed); ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:160:91: note: expanded from macro 'jassert' #define jassert(expression) JUCE_BLOCK_WITH_FORCED_SEMICOLON (if (! (expression)) jassertfalse;) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:150:140: note: expanded from macro 'jassertfalse' #define jassertfalse JUCE_BLOCK_WITH_FORCED_SEMICOLON (JUCE_LOG_CURRENT_ASSERTION; if (juce::juce_isRunningUnderDebugger()) JUCE_BREAK_IN_DEBUGGER; JUCE_ANALYZER_NORETURN) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:78:48: note: expanded from macro 'JUCE_BREAK_IN_DEBUGGER' #define JUCE_BREAK_IN_DEBUGGER { asm ("int $3"); } ^ :1:2: note: instantiated into assembly here int $3 ^ In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juceaide/Main.cpp:26: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/extras/Build/juce_build_tools/juce_build_tools.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_gui_basics/juce_gui_basics.h:56: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_graphics/juce_graphics.h:57: In file included from /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/juce_core.h:255: /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/containers/juce_ArrayBase.h:212:9: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not? jassert (numElements >= numUsed); ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:160:91: note: expanded from macro 'jassert' #define jassert(expression) JUCE_BLOCK_WITH_FORCED_SEMICOLON (if (! (expression)) jassertfalse;) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:150:140: note: expanded from macro 'jassertfalse' #define jassertfalse JUCE_BLOCK_WITH_FORCED_SEMICOLON (JUCE_LOG_CURRENT_ASSERTION; if (juce::juce_isRunningUnderDebugger()) JUCE_BREAK_IN_DEBUGGER; JUCE_ANALYZER_NORETURN) ^ /Users/jcm/Downloads/ADAA-master/ADAA/modules/JUCE/modules/juce_core/system/juce_PlatformDefs.h:78:48: note: expanded from macro 'JUCE_BREAK_IN_DEBUGGER' #define JUCE_BREAK_IN_DEBUGGER { asm ("int $3"); } ^ :1:2: note: instantiated into assembly here int $3 ^ 11 errors generated. make[2]: *** [extras/Build/juceaide/CMakeFiles/juceaide.dir/Main.cpp.o] Error 1 make[1]: *** [extras/Build/juceaide/CMakeFiles/juceaide.dir/all] Error 2 make: *** [all] Error 2 -- Configuring incomplete, errors occurred!
Arthritiz commented 6 months ago

My apple silicon mac met the same errors. It seemed to be solved after i updated the version of modules/JUCE to 6.0.3.