Closed gitterdude closed 8 months ago
The Surge folks had similar problems in https://github.com/VCVRack/library/issues/745 and the suggested fix from Andrew was to remove immintrin.h :
--- composites/MixM.h~ 2022-12-09 09:03:57.000000000 +0100
+++ composites/MixM.h 2022-12-09 11:48:34.562249343 +0100
@@ -2,7 +2,6 @@
#pragma once
#include <assert.h>
-#include <immintrin.h>
#include <memory>
--- dsp/third-party/src/SqMath.h~ 2022-12-09 09:03:57.000000000 +0100
+++ dsp/third-party/src/SqMath.h 2022-12-09 11:48:43.878249254 +0100
@@ -1,7 +1,6 @@
#pragma once
#include "rack.hpp"
-#include <immintrin.h>
#include <random>
#if !defined(M_PI)
#define M_PI float(3.14159265358979323846264338327950288)
--- ssehack/x86intrin.h.org 2022-12-09 09:03:57.000000000 +0100
+++ ssehack/x86intrin.h 2022-12-09 12:59:26.086208797 +0100
@@ -7,4 +7,3 @@
#include <xmmintrin.h>
#include <mmintrin.h>
-#include <immintrin.h>
I've confirmed that it builds and works in Ubuntu 22.04
This has been fixed, sent request to add latest version to vcv library
Rack 2.2.0 apparently changed something in the simde instructions resulting in the errors below when compiling with gcc 11.3 on Ubuntu 22.04 and having -march=nehalem in Rack/compile.mk
A workaround is to replaced nehalem with -march=broadwell or skylake or compile it using an older version of gcc, like 7.5 in Ubuntu 18.04