Yes, basically I just wanted to make sure it was not the overriding of the toolchain that had failed. Do you have more information on the error you get, or is it just:
error: failed to run custom build command for concrete-fftw-sys v0.1.2
Caused by:
process didn’t exit successfully: /Users/lp/Rust/Play with Concrete/play_with_fhe/target/release/build/concrete-fftw-sys-09dcb1922f220e0a/build-script-build (exit status: 101)
— stdout
Running: “/Users/lp/Rust/Play with Concrete/play_with_fhe/target/release/build/concrete-fftw-sys-8877f2c385ab5b30/out/src/configure” “–with-pic” “–enable-static” “–enable-avx” “–enable-avx2” “–enable-sse2” “–enable-generic-simd128” “–enable-generic-simd256” “–disable-doc” “–prefix=/Users/anil/Rust/Play with Concrete/play_with_fhe/target/release/build/concrete-fftw-sys-8877f2c385ab5b30/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... x86_64-apple-darwin21.3.0
checking host system type... x86_64-apple-darwin21.3.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 x86_64-apple-darwin21.3.0 file names to x86_64-apple-darwin21.3.0 format… func_convert_file_noop
checking how to convert x86_64-apple-darwin21.3.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… darwin21.3.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… darwin21.3.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_3/bin/…/lib/gcc/11/gcc/aarch64-apple-darwin21/11 -L/opt/homebrew/Cellar/gcc/11.2.0_3/bin/…/lib/gcc/11/gcc -L/opt/homebrew/Cellar/gcc/11.2.0_3/bin/…/lib/gcc/11/gcc/aarch64-apple-darwin21/11/…/…/… -lgfortran -lm
checking for dummy main to link with Fortran 77 libraries… none
checking for Fortran 77 name-mangling scheme… unknown
checking whether a cycle counter is available… yes
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
make[2]: Nothing to be done for all'. Making all in dft Making all in scalar Making all in codelets /Library/Developer/CommandLineTools/usr/bin/make all-am make[5]: Nothing to be done for all-am’.
make[4]: Nothing to be done for all-am'. Making all in simd Making all in common /Library/Developer/CommandLineTools/usr/bin/make all-am make[5]: Nothing to be done for all-am’.
Making all in sse2
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. Making all in avx /Library/Developer/CommandLineTools/usr/bin/make all-am make[5]: Nothing to be done for all-am’.
Making all in avx-128-fma
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. Making all in avx2 /Library/Developer/CommandLineTools/usr/bin/make all-am make[5]: Nothing to be done for all-am’.
Making all in avx2-128
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. Making all in avx512 /Library/Developer/CommandLineTools/usr/bin/make all-am make[5]: Nothing to be done for all-am’.
Making all in kcvi
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. Making all in altivec /Library/Developer/CommandLineTools/usr/bin/make all-am make[5]: Nothing to be done for all-am’.
Making all in vsx
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. Making all in neon /Library/Developer/CommandLineTools/usr/bin/make all-am make[5]: Nothing to be done for all-am’.
Making all in generic-simd128
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. Making all in generic-simd256 /Library/Developer/CommandLineTools/usr/bin/make all-am make[5]: Nothing to be done for all-am’.
make[4]: Nothing to be done for all-am'. make[3]: Nothing to be done for all-am’.
Making all in rdft
Making all in scalar
Making all in r2cf
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. Making all in r2cb /Library/Developer/CommandLineTools/usr/bin/make all-am make[5]: Nothing to be done for all-am’.
Making all in r2r
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. make[4]: Nothing to be done for all-am’.
Making all in simd
Making all in common
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. Making all in sse2 /Library/Developer/CommandLineTools/usr/bin/make all-am make[5]: Nothing to be done for all-am’.
Making all in avx
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. Making all in avx-128-fma /Library/Developer/CommandLineTools/usr/bin/make all-am make[5]: Nothing to be done for all-am’.
Making all in avx2
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. Making all in avx2-128 /Library/Developer/CommandLineTools/usr/bin/make all-am make[5]: Nothing to be done for all-am’.
Making all in avx512
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. Making all in kcvi /Library/Developer/CommandLineTools/usr/bin/make all-am make[5]: Nothing to be done for all-am’.
Making all in altivec
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. Making all in vsx /Library/Developer/CommandLineTools/usr/bin/make all-am make[5]: Nothing to be done for all-am’.
Making all in neon
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. Making all in generic-simd128 /Library/Developer/CommandLineTools/usr/bin/make all-am make[5]: Nothing to be done for all-am’.
Making all in generic-simd256
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[5]: Nothing to be done for all-am'. make[4]: Nothing to be done for all-am’.
make[3]: Nothing to be done for all-am'. Making all in reodft make[3]: Nothing to be done for all-am’.
Making all in api
/Library/Developer/CommandLineTools/usr/bin/make all-am
make[3]: Nothing to be done for all-am'. Making all in libbench2 make[2]: Nothing to be done for all’.
Making all in .
/bin/sh ./libtool --tag=CC --mode=link gcc -O3 -fomit-frame-pointer -mtune=native -fstrict-aliasing -no-undefined -version-info 8:8:5 -o libfftw3.la -rpath /Users/lp/Rust/Play with Concrete/play_with_fhe/target/release/build/concrete-fftw-sys-8877f2c385ab5b30/out/lib kernel/libkernel.la dft/libdft.la dft/scalar/libdft_scalar.la dft/scalar/codelets/libdft_scalar_codelets.la rdft/librdft.la rdft/scalar/librdft_scalar.la rdft/scalar/r2cf/librdft_scalar_r2cf.la rdft/scalar/r2cb/librdft_scalar_r2cb.la rdft/scalar/r2r/librdft_scalar_r2r.la reodft/libreodft.la api/libapi.la simd-support/libsimd_support.la dft/simd/sse2/libdft_sse2_codelets.la rdft/simd/sse2/librdft_sse2_codelets.la dft/simd/avx/libdft_avx_codelets.la rdft/simd/avx/librdft_avx_codelets.la dft/simd/avx2/libdft_avx2_codelets.la dft/simd/avx2-128/libdft_avx2_128_codelets.la rdft/simd/avx2/librdft_avx2_codelets.la rdft/simd/avx2-128/librdft_avx2_128_codelets.la dft/simd/generic-simd128/libdft_generic_simd128_codelets.la rdft/simd/generic-simd128/librdft_generic_simd128_codelets.la dft/simd/generic-simd256/libdft_generic_simd256_codelets.la rdft/simd/generic-simd256/librdft_generic_simd256_codelets.la -lm
cp -f fftw.pc fftw3.pc
libtool: link: rm -fr .libs/libfftw3.lax
libtool: link: (cd .libs/libfftw3.lax/libkernel.a && ar x “/Users/lp/Rust/Play with Concrete/play_with_fhe/target/release/build/concrete-fftw-sys-8877f2c385ab5b30/out/src/kernel/.libs/libkernel.a”)
— stderr
configure: WARNING: Libtool does not cope well with whitespace in pwd
configure: WARNING: unknown Fortran name-mangling scheme
./libtool: line 5678: cd: /Users/lp/Rust/Play: No such file or directory
./libtool: line 1719: cd: .libs/libfftw3.lax/libkernel.a: No such file or directory
make[2]: *** [libfftw3.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
thread ‘main’ panicked at ’"make" "-j8" failed: exit status: 2’, /Users/anil/.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
— stderr
configure: WARNING: Libtool does not cope well with whitespace in pwd
configure: WARNING: unknown Fortran name-mangling scheme
./libtool: line 5678: cd: /Users/lp/Rust/Play: No such file or directory
./libtool: line 1719: cd: .libs/libfftw3.lax/libkernel.a: No such file or directory
Does the path you are compiling in contains whitespaces ? if so try to move somewhere else where the path does not contains any whitespaces.
I think that @tmontaigu is right: your path does contain whitespaces. It seems they are not recognized well: can you try to rename “Play with Concrete” into “Play_with_Concrete” to see what happens?
I confirm that using whitespaces in the path cause this problem.
Running cargo +stable-x86_64-apple-darwin build in a directory "/Users/thomas/Projects/play with fhe"
Creates the same error with same warning about spaces.
configure: WARNING: Libtool does not cope well with whitespace in pwd
configure: WARNING: unknown Fortran name-mangling scheme
./libtool: line 5678: cd: /Users/thomas/Projects/play: No such file or directory
./libtool: line 1719: cd: .libs/libfftw3.lax/libkernel.a: No such file or directory
make[2]: *** [libfftw3.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
thread ‘main’ panicked at ‘"make" "-j8" failed: exit status: 2’, /Users/thomas/.cargo/registry/src/github.com-1ecc6299db9ec823/concrete-fftw-sys-0.1.2/build.rs:11:17