Describe the bug
Compiling an application that imports Concrete as a dependency fails on Apple M1 with the latest update of Concrete 0.1.11. Rolling back to the previous version works fine.
All steps described in #65 have been followed, including a fresh reinstall of Rust, FFTW and Brew after updating Concrete
To Reproduce
Steps to reproduce the behaviour
- update cargo.toml to concrete version 0.1.11
- run
cargo run --release --target x86_64-apple-darwin
Expected behaviour
Concrete compiles and runs correctly on Apple M1 machines
Configuration:
- MacOS BigSur 11.6
- Macbook Pro 2020 with Apple Silicon M1 and 16g RAM
Evidence
This is the console output:
error: failed to run custom build command for concrete-fftw-sys v0.1.2
Caused by:
process didn't exit successfully: /Users/randhindi/code/fhealth-ml/target/release/build/concrete-fftw-sys-058acdd3bd100c13/build-script-build
(exit status: 101)
--- stdout
Running: "/Users/randhindi/code/fhealth-ml/target/x86_64-apple-darwin/release/build/concrete-fftw-sys-de375ee38e09f5ed/out/src/configure" "--with-pic" "--enable-static" "--enable-avx" "--enable-avx2" "--enable-sse2" "--enable-generic-simd128" "--enable-generic-simd256" "--disable-doc" "--prefix=/Users/randhindi/code/fhealth-ml/target/x86_64-apple-darwin/release/build/concrete-fftw-sys-de375ee38e09f5ed/out"
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... arm-apple-darwin20.6.0
checking host system type... arm-apple-darwin20.6.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for C compiler vendor... clang
checking for gcc option to accept ISO C99... none needed
checking for gcc option to accept ISO Standard C... (cached) none needed
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 786432
checking how to convert arm-apple-darwin20.6.0 file names to arm-apple-darwin20.6.0 format... func_convert_file_noop
checking how to convert arm-apple-darwin20.6.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @file support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin20.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for ranlib... (cached) ranlib
checking for ocamlbuild... no
checking whether C compiler accepts -mtune=native... yes
checking whether C compiler accepts -fstrict-aliasing... yes
checking whether C compiler accepts -O3 -fomit-frame-pointer -mtune=native -fstrict-aliasing... yes
checking whether C compiler accepts -mavx... yes
checking whether C compiler accepts -mavx2... yes
checking whether C compiler accepts -mfma... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking altivec.h usability... no
checking altivec.h presence... no
checking for altivec.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for long double... yes
checking for hrtime_t... no
checking size of int... 4
checking size of unsigned int... 4
checking size of long... 8
checking size of unsigned long... 8
checking size of long long... 8
checking size of unsigned long long... 8
checking size of size_t... 8
checking size of ptrdiff_t... 8
checking for ptrdiff_t... yes
checking for uintptr_t... yes
checking size of float... 4
checking size of double... 8
checking size of fftw_r2r_kind... 4
checking for working alloca.h... yes
checking for alloca... yes
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for sin in -lm... yes
checking for BSDgettimeofday... no
checking for gettimeofday... yes
checking for gethrtime... no
checking for read_real_time... no
checking for time_base_to_time... no
checking for drand48... yes
checking for sqrt... yes
checking for memset... yes
checking for posix_memalign... yes
checking for memalign... no
checking for _mm_malloc... no
checking for _mm_free... no
checking for clock_gettime... yes
checking for mach_absolute_time... yes
checking for sysctl... yes
checking for abort... yes
checking for sinl... yes
checking for cosl... yes
checking for snprintf... yes
checking for memmove... yes
checking for strchr... yes
checking for getpagesize... yes
checking whether sinl is declared... yes
checking whether cosl is declared... yes
checking whether sinq is declared... no
checking whether cosq is declared... no
checking whether memalign is declared... no
checking whether drand48 is declared... yes
checking whether srand48 is declared... yes
checking whether posix_memalign is declared... yes
checking for _rtc intrinsic... no
checking for isnan... yes
checking whether C compiler accepts -mpreferred-stack-boundary=4... no
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fno-common
checking if gfortran PIC flag -fno-common works... yes
checking if gfortran static flag -static works... no
checking if gfortran supports -c -o file.o... yes
checking if gfortran supports -c -o file.o... (cached) yes
checking whether the gfortran linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin20.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking how to get verbose linking output from gfortran... -v
checking for Fortran 77 libraries of gfortran... -L/opt/homebrew/Cellar/gcc/11.2.0/lib/gcc/11/gcc/aarch64-apple-darwin20/11.1.0 -L/opt/homebrew/Cellar/gcc/11.2.0/lib/gcc/11/gcc/aarch64-apple-darwin20/11.1.0/../../.. -lgfortran -lm
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... lower case, underscore, no extra underscore
checking whether a cycle counter is available... no
WARNING: No cycle counter found. FFTW will use ESTIMATE mode
for all plans. See the manual for more information.
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating support/Makefile
config.status: creating genfft/Makefile
config.status: creating kernel/Makefile
config.status: creating simd-support/Makefile
config.status: creating dft/Makefile
config.status: creating dft/scalar/Makefile
config.status: creating dft/scalar/codelets/Makefile
config.status: creating dft/simd/Makefile
config.status: creating dft/simd/common/Makefile
config.status: creating dft/simd/sse2/Makefile
config.status: creating dft/simd/avx/Makefile
config.status: creating dft/simd/avx-128-fma/Makefile
config.status: creating dft/simd/avx2/Makefile
config.status: creating dft/simd/avx2-128/Makefile
config.status: creating dft/simd/avx512/Makefile
config.status: creating dft/simd/kcvi/Makefile
config.status: creating dft/simd/altivec/Makefile
config.status: creating dft/simd/vsx/Makefile
config.status: creating dft/simd/neon/Makefile
config.status: creating dft/simd/generic-simd128/Makefile
config.status: creating dft/simd/generic-simd256/Makefile
config.status: creating rdft/Makefile
config.status: creating rdft/scalar/Makefile
config.status: creating rdft/scalar/r2cf/Makefile
config.status: creating rdft/scalar/r2cb/Makefile
config.status: creating rdft/scalar/r2r/Makefile
config.status: creating rdft/simd/Makefile
config.status: creating rdft/simd/common/Makefile
config.status: creating rdft/simd/sse2/Makefile
config.status: creating rdft/simd/avx/Makefile
config.status: creating rdft/simd/avx-128-fma/Makefile
config.status: creating rdft/simd/avx2/Makefile
config.status: creating rdft/simd/avx2-128/Makefile
config.status: creating rdft/simd/avx512/Makefile
config.status: creating rdft/simd/kcvi/Makefile
config.status: creating rdft/simd/altivec/Makefile
config.status: creating rdft/simd/vsx/Makefile
config.status: creating rdft/simd/neon/Makefile
config.status: creating rdft/simd/generic-simd128/Makefile
config.status: creating rdft/simd/generic-simd256/Makefile
config.status: creating reodft/Makefile
config.status: creating threads/Makefile
config.status: creating api/Makefile
config.status: creating mpi/Makefile
config.status: creating libbench2/Makefile
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: creating doc/FAQ/Makefile
config.status: creating tools/Makefile
config.status: creating tools/fftw_wisdom.1
config.status: creating tools/fftw-wisdom-to-conf
config.status: creating m4/Makefile
config.status: creating fftw.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
Running: "make" "-j8"
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in support
make[2]: Nothing to be done for all'. Making all in kernel make[2]: Nothing to be done for
all'.
Making all in simd-support
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I .. -O3 -fomit-frame-pointer -mtune=native -fstrict-aliasing -MT sse2.lo -MD -MP -MF .deps/sse2.Tpo -c -o sse2.lo sse2.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I .. -O3 -fomit-frame-pointer -mtune=native -fstrict-aliasing -MT avx.lo -MD -MP -MF .deps/avx.Tpo -c -o avx.lo avx.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I .. -O3 -fomit-frame-pointer -mtune=native -fstrict-aliasing -MT avx2.lo -MD -MP -MF .deps/avx2.Tpo -c -o avx2.lo avx2.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I .. -O3 -fomit-frame-pointer -mtune=native -fstrict-aliasing -MT avx.lo -MD -MP -MF .deps/avx.Tpo -c avx.c -fno-common -DPIC -o avx.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I .. -O3 -fomit-frame-pointer -mtune=native -fstrict-aliasing -MT sse2.lo -MD -MP -MF .deps/sse2.Tpo -c sse2.c -fno-common -DPIC -o sse2.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I .. -O3 -fomit-frame-pointer -mtune=native -fstrict-aliasing -MT avx2.lo -MD -MP -MF .deps/avx2.Tpo -c avx2.c -fno-common -DPIC -o avx2.o
--- stderr
In file included from avx2.c:29:
./x86-cpuid.h:61:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) /* output /
^
./x86-cpuid.h:52:15: note: use constraint modifier "w"
"popl %0\n\t"
^~
%w0
./x86-cpuid.h:61:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:53:15: note: use constraint modifier "w"
"movl %0,%1\n\t"
^~
%w0
./x86-cpuid.h:61:28: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:53:18: note: use constraint modifier "w"
"movl %0,%1\n\t"
^~
%w1
./x86-cpuid.h:61:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:54:24: note: use constraint modifier "w"
"xorl $0x40000,%0\n\t"
^~
%w0
./x86-cpuid.h:61:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:55:16: note: use constraint modifier "w"
"pushl %0\n\t"
^~
%w0
./x86-cpuid.h:61:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:58:15: note: use constraint modifier "w"
"popl %0\n\t"
^~
%w0
./x86-cpuid.h:61:28: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:59:16: note: use constraint modifier "w"
"pushl %1\n\t"
^~
%w1
./x86-cpuid.h:99:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:90:14: note: use constraint modifier "w"
"pop %0\n\t"
^~
%w0
./x86-cpuid.h:99:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:91:15: note: use constraint modifier "w"
"movl %0,%1\n\t"
^~
%w0
./x86-cpuid.h:99:28: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:91:18: note: use constraint modifier "w"
"movl %0,%1\n\t"
^~
%w1
./x86-cpuid.h:99:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:92:25: note: use constraint modifier "w"
"xorl $0x200000,%0\n\t"
^~
%w0
./x86-cpuid.h:99:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:93:16: note: use constraint modifier "w"
"pushl %0\n\t"
^~
%w0
./x86-cpuid.h:99:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:96:15: note: use constraint modifier "w"
"popl %0\n\t"
^~
%w0
./x86-cpuid.h:99:28: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output */
^
./x86-cpuid.h:97:16: note: use constraint modifier "w"
"pushl %1\n\t"
^~
%w1
./x86-cpuid.h:136:16: error: invalid output constraint '+a' in asm
: "+a" (*eax), "+r" (*ebx), "+c" (*ecx), "+d" (edx));
^
./x86-cpuid.h:161:9: error: invalid output constraint '=a' in asm
: "=a" (eax), "=c" (ecx), "=d" (edx)
^
./x86-cpuid.h:183:9: error: invalid output constraint '=a' in asm
: "=a" (eax), "=c" (ecx), "=d" (edx)
^
./x86-cpuid.h:208:42: error: invalid output constraint '=a' in asm
asm (".byte 0x0f, 0x01, 0xd0" : "=a"(eax), "=d"(edx) : "c" (op));
^
In file included from avx.c:29:
./x86-cpuid.h:61:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:52:15: note: use constraint modifier "w"
"popl %0\n\t"
^~
%w0
./x86-cpuid.h:61:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:53:15: note: use constraint modifier "w"
"movl %0,%1\n\t"
^~
%w0
./x86-cpuid.h:61:28: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:53:18: note: use constraint modifier "w"
"movl %0,%1\n\t"
^~
%w1
./x86-cpuid.h:61:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:54:24: note: use constraint modifier "w"
"xorl $0x40000,%0\n\t"
^~
%w0
./x86-cpuid.h:61:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /14 warnings and 4 error
s generated.
^
./x86-cpuid.h:55:16: note: use constraint modifier "w"
"pushl %0\n\t"
^~
%w0
./x86-cpuid.h:61:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:58:15: note: use constraint modifier "w"
"popl %0\n\t"
^~
%w0
./x86-cpuid.h:61:28: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:59:16: note: use constraint modifier "w"
"pushl %1\n\t"
^~
%w1
./x86-cpuid.h:99:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:90:14: note: use constraint modifier "w"
"pop %0\n\t"
^~
%w0
./x86-cpuid.h:99:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:91:15: note: use constraint modifier "w"
"movl %0,%1\n\t"
^~
%w0
./x86-cpuid.h:99:28: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:91:18: note: use constraint modifier "w"
"movl %0,%1\n\t"
^~
%w1
./x86-cpuid.h:99In file included from sse2.c:43:
./x86-cpuid.h:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]:
61 : "=r" (result), "=r" (tst) / output /
^
:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
./x86-cpuid.h:92:25: note: use constraint modifier "w"
"xorl $0x200000,%0\n\t"
^~
%w0
./x86-cpuid.h:99:13: warning: : "=r" (result), "=r" (tst) / output /
^
value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:52:15: note: use constraint modifier "w"
"popl %0\n\t"
^~
%w0
./x86-cpuid.h:./x86-cpuid.h93::6116::13 :note : use constraint modifier "w"
warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
"pushl %0\n\t"
^~
%w0
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:99:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output */
^
./x86-cpuid.h:53:15: note: use constraint modifier "w"
./x86-cpuid.h:96:15: note: "movl %0,%1\n\t"
^~
%w0
use constraint modifier "w"
./x86-cpuid.h:61 "popl %0\n\t":28: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
./x86-cpuid.h:99:28: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] : "=r" (result), "=r" (tst) /* output */
^
: "=r" (result), "=r" (tst) /* output */
^
./x86-cpuid.h:97:16: note: use constraint modifier "w"
"pushl %1\n\t"
^~
%w1
./x86-cpuid.h:53:18: note: use constraint modifier "w"
"movl %0,%1\n\t"
^~
%w1
./x86-cpuid.h:61:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) /* output */
^
./x86-cpuid.h:136:16: error: invalid output constraint '+a' in asm
./x86-cpuid.h:54:24 : "+a" (*eax), "+r" (*ebx), "+c" (*ecx), "+d" (edx));:
^note
: use constraint modifier "w"
"xorl $0x40000,%0\n\t"
^~
%w0
./x86-cpuid.h:61:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
./x86-cpuid.h:161:9: : "=r" (result), "=r" (tst) / output */
^error: invalid output constraint '=a' in asm
: "=a" (eax), "=c" (ecx), "=d" (edx)./x86-cpuid.h
: ^55:16:
note: use constraint modifier "w"
"pushl %0\n\t"
^~
%w0
./x86-cpuid.h:61:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) /* output /
^
./x86-cpuid.h:58:15: note: use constraint modifier "w"
"popl %0\n\t"
^~
%w0
./x86-cpuid.h./x86-cpuid.h:61:28::183 :warning9: :value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
error: invalid output constraint '=a' in asm
: "=r" (result), "=r" (tst) / output */ : "=a" (eax), "=c" (ecx), "=d" (edx)
./x86-cpuid.h:59:16: note: use constraint modifier "w"
./x86-cpuid.h:208:42: "pushl %1\n\t"
^~
%w1
error: invalid output constraint '=a' in asm
asm (".byte 0x0f, 0x01, 0xd0" : "=a"(eax), "=d"(edx) : "c" (op));
^
./x86-cpuid.h:99:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) /* output /
^
./x86-cpuid.h:90:14: note: use constraint modifier "w"
"pop %0\n\t"
^~
%w0
./x86-cpuid.h:99:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:91:15: note: use constraint modifier "w"
"movl %0,%1\n\t"
^~
%w0
./x86-cpuid.h:99:28: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:91:18: note: use constraint modifier "w"
"movl %0,%1\n\t"
^~
%w1
./x86-cpuid.h:99:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:92:25: note: use constraint modifier "w"
"xorl $0x200000,%0\n\t"
^~
%w0
./x86-cpuid.h:99:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:93:16: note: use constraint modifier "w"
"pushl %0\n\t"
^~
%w0
./x86-cpuid.h:99:13: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output /
^
./x86-cpuid.h:96:15: note: use constraint modifier "w"
"popl %0\n\t"
^~
%w0
./x86-cpuid.h:99:28: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
: "=r" (result), "=r" (tst) / output */
^
./x86-cpuid.h:97:16: note: use constraint modifier "w"
"pushl %1\n\t"
^~
%w1
./x86-cpuid.h:136:16: error: invalid output constraint '+a' in asm
: "+a" (*eax), "+r" (*ebx), "+c" (*ecx), "+d" (*edx));
^
./x86-cpuid.h:161:9: error: invalid output constraint '=a' in asm
14 : "=a" (eax), "=c" (ecx), "=d" (edx) warning
s ^ and
4 errors generated.
./x86-cpuid.h:183:9: error: invalid output constraint '=a' in asm
: "=a" (eax), "=c" (ecx), "=d" (edx)
^
./x86-cpuid.h:208:42: error: invalid output constraint '=a' in asm
asm (".byte 0x0f, 0x01, 0xd0" : "=a"(eax), "=d"(edx) : "c" (op));
^
14 warnings and 4 errors generated.
make[2]: *** [avx2.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [avx.lo] Error 1
make[2]: *** [sse2.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
thread 'main' panicked at '"make" "-j8"
failed: exit status: 2', /Users/randhindi/.cargo/registry/src/github.com-1ecc6299db9ec823/concrete-fftw-sys-0.1.2/build.rs:11:17
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace