I tried crosscompiling with env GOOS=linux GOARCH=arm64 CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc go build and then I tried natively building with go get -x github.com/barnex/fftw and in both scenarios I got
cd /home/teque5/go/src/github.com/barnex/fftw/internal/double
TERM='dumb' gcc -I . -fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b031=/tmp/go-build -gno-record-gcc-switches -I $WORK/b031/ -g -O2 -std=gnu99 -DHAVE_CONFIG_H -fomit-frame-pointer -fstrict-aliasing -ffast-math -o $WORK/b031/_x142.o -c dft_scalar_t.c
# github.com/barnex/fftw/internal/float
In file included from dft_simd_sse2_codlist.c:3:0:
simd-sse2.h:41:4: error: #error "compiling simd-sse2.h in single precision without -msse"
# error "compiling simd-sse2.h in single precision without -msse"
^~~~~
simd-sse2.h:58:12: fatal error: xmmintrin.h: No such file or directory
# include <xmmintrin.h>
^~~~~~~~~~~~~
compilation terminated.
TERM='dumb' gcc -I . -fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b031=/tmp/go-build -gno-record-gcc-switches -I $WORK/b031/ -g -O2 -std=gnu99 -DHAVE_CONFIG_H -fomit-frame-pointer -fstrict-aliasing -ffast-math -o $WORK/b031/_x143.o -c dft_simd_sse2_codlist.c
# github.com/barnex/fftw/internal/double
In file included from dft_simd_sse2_codlist.c:3:0:
simd-sse2.h:39:4: error: #error "compiling simd-sse2.h in double precision without -msse2"
# error "compiling simd-sse2.h in double precision without -msse2"
^~~~~
simd-sse2.h:60:12: fatal error: emmintrin.h: No such file or directory
# include <emmintrin.h>
^~~~~~~~~~~~~
compilation terminated.
This similar issue concludes that a NEON implementation is required. I understand if this is a wont fix.
I tried crosscompiling with
env GOOS=linux GOARCH=arm64 CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc go buildand then I tried natively building withgo get -x github.com/barnex/fftwand in both scenarios I gotThis similar issue concludes that a NEON implementation is required. I understand if this is a wont fix.