kockie69 / SquinkyVCV-main

GNU General Public License v3.0
23 stars 13 forks source link

Pluign fails to compile on macOS arm64 platform #85

Closed cschol closed 10 months ago

cschol commented 1 year ago

Lots of issues related to simde instructions:

In file included from src/BasicModule.cpp:7:                                                                                                                                                                                                                                                                           
In file included from ./composites/Basic.h:4:                                                                                                                                                                                                                                                                          
In file included from ./dsp/generators/BasicVCO.h:4:                                                                                                                                                                                                                                                                   
In file included from ./dsp/SimdBlocks.h:3:                                                                                                                                                                                                                                                                            
In file included from ./dsp/third-party/src/SqMath.h:4:                                                                                                                                                                                                                                                                
/home/build/rack-plugin-toolchain/local/bin/../lib/clang/15.0.7/include/immintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"                                                                                                                                                    
#error "This header is only meant to be used on x86 and x64 architecture"                                                                                                                                                                                                                                              
 ^                                                                                                                                                                                                                                                                                                                     
In file included from src/BasicModule.cpp:7:                                                                                                                                                                                                                                                                           
In file included from ./composites/Basic.h:4:                                                                                                                                                                                                                                                                          
In file included from ./dsp/generators/BasicVCO.h:4:                                                                                                                                                                                                                                                                   
In file included from ./dsp/SimdBlocks.h:3:                                                                                                                                                                                                                                                                            
In file included from ./dsp/third-party/src/SqMath.h:4:                                                                                                                                                                                                                                                                
In file included from /home/build/rack-plugin-toolchain/local/bin/../lib/clang/15.0.7/include/immintrin.h:17:                                                                                                                                                                                                          
In file included from /home/build/rack-plugin-toolchain/local/bin/../lib/clang/15.0.7/include/x86gprintrin.h:15:                                                                                                                                                                                                       
/home/build/rack-plugin-toolchain/local/bin/../lib/clang/15.0.7/include/hresetintrin.h:42:27: error: invalid input constraint 'a' in asm                                                                                                                                                                               
  __asm__ ("hreset $0" :: "a"(__eax));                                                                                                                                                                                                                                                                                 
                          ^                                                                                                                                                                                                                                                                                            
In file included from src/BasicModule.cpp:7:                                                                                                                                                                                                                                                                           
In file included from ./composites/Basic.h:4:                                                                                                                                                                                                                                                                          
In file included from ./dsp/generators/BasicVCO.h:4:                                                                                                                                                                                                                                                                   
In file included from ./dsp/SimdBlocks.h:3:                                                                                                                                                                                                                                                                            
In file included from ./dsp/third-party/src/SqMath.h:4:                                                                                                                                                                                                                                                                
In file included from /home/build/rack-plugin-toolchain/local/bin/../lib/clang/15.0.7/include/immintrin.h:17:                                                                                                                                                                                                          
In file included from /home/build/rack-plugin-toolchain/local/bin/../lib/clang/15.0.7/include/x86gprintrin.h:25:                                           
/home/build/rack-plugin-toolchain/local/bin/../lib/clang/15.0.7/include/crc32intrin.h:31:1: error: redefinition of 'simde_mm_crc32_u8'                                                                                                                                                                                 
_mm_crc32_u8(unsigned int __C, unsigned char __D)                                                                                                                                                                                                                                                                      
^  

[...]                                                                                                                         
cwmoriarty commented 11 months ago

I was able to build it, please see the binary here: https://github.com/cwmoriarty/SquinkyVCV2/releases/tag/v2.1.8

cwmoriarty commented 11 months ago

80 I believe addressed this.

cschol commented 11 months ago

macOS platform compiles fine with the changes in that PR.

kockie69 commented 10 months ago

Made changes and asked for deploy in library.