Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build or crosscompile for arm64 #3

Open
Teque5 opened this issue Feb 20, 2020 · 0 comments
Open

Cannot build or crosscompile for arm64 #3

Teque5 opened this issue Feb 20, 2020 · 0 comments

Comments

@Teque5
Copy link

Teque5 commented Feb 20, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant