Skip to content

Cannot build or crosscompile for arm64 #3

@Teque5

Description

@Teque5

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions