spleeterpp icon indicating copy to clipboard operation
spleeterpp copied to clipboard

FFTW3 doesn't exist

Open aidv opened this issue 4 years ago • 7 comments

When I run the commandcmake --build . --config Release --target install

I get the error output

[  1%] Building CXX object _deps/rtff-build/src/rtff/CMakeFiles/rtff.dir/fft/fftw/fftw_fft.cc.o
/Users/username/Desktop/repos/vstSpleeter/external/spleeterpp/build/_deps/rtff-src/src/rtff/fft/fftw/fftw_fft.cc:5:10: fatal error: 
      'fftw3.h' file not found
#include "fftw3.h"
         ^~~~~~~~~
1 error generated.
make[2]: *** [_deps/rtff-build/src/rtff/CMakeFiles/rtff.dir/fft/fftw/fftw_fft.cc.o] Error 1
make[1]: *** [_deps/rtff-build/src/rtff/CMakeFiles/rtff.dir/all] Error 2
make: *** [all] Error 2

aidv avatar Jun 11 '20 10:06 aidv

Same error on macOS Catalina.

[koji@MacBook-Pro:~/work/PartScratch/spleeterpp/build]$ cmake --build . [ 1%] Building CXX object _deps/rtff-build/src/rtff/CMakeFiles/rtff.dir/fft/fftw/fftw_fft.cc.o /Users/koji/work/PartScratch/spleeterpp/build/_deps/rtff-src/src/rtff/fft/fftw/fftw_fft.cc:5:10: fatal error: 'fftw3.h' file not found #include "fftw3.h" ^~~~~~~~~ 1 error generated. make[2]: *** [_deps/rtff-build/src/rtff/CMakeFiles/rtff.dir/fft/fftw/fftw_fft.cc.o] Error 1 make[1]: *** [_deps/rtff-build/src/rtff/CMakeFiles/rtff.dir/all] Error 2 make: *** [all] Error 2

kyab avatar Sep 06 '20 13:09 kyab

This is full output of cmake ..

Seems something wrong with FFTW. Can someone help?

[koji@MacBook-Pro:~/work/PartScratch/spleeterpp/build]$ cmake ..
-- The C compiler identification is AppleClang 11.0.3.11030032
-- The CXX compiler identification is AppleClang 11.0.3.11030032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- using spleeter_input_frame_count 64
-- Downloading models from https://github.com/gvne/spleeterpp/releases/download/models-1.0/models.zip
-- [download 0% complete]
-- [download 100% complete]
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 13% complete]
-- [download 14% complete]
-- [download 15% complete]
-- [download 16% complete]
-- [download 17% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 21% complete]
-- [download 22% complete]
-- [download 23% complete]
-- [download 24% complete]
-- [download 25% complete]
-- [download 26% complete]
-- [download 27% complete]
-- [download 28% complete]
-- [download 29% complete]
-- [download 30% complete]
-- [download 31% complete]
-- [download 32% complete]
-- [download 33% complete]
-- [download 34% complete]
-- [download 35% complete]
-- [download 36% complete]
-- [download 37% complete]
-- [download 38% complete]
-- [download 39% complete]
-- [download 40% complete]
-- [download 41% complete]
-- [download 42% complete]
-- [download 43% complete]
-- [download 44% complete]
-- [download 45% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 49% complete]
-- [download 50% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 53% complete]
-- [download 54% complete]
-- [download 55% complete]
-- [download 56% complete]
-- [download 57% complete]
-- [download 58% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 62% complete]
-- [download 63% complete]
-- [download 64% complete]
-- [download 65% complete]
-- [download 66% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 69% complete]
-- [download 70% complete]
-- [download 71% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 74% complete]
-- [download 75% complete]
-- [download 76% complete]
-- [download 77% complete]
-- [download 78% complete]
-- [download 79% complete]
-- [download 80% complete]
-- [download 81% complete]
-- [download 82% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 87% complete]
-- [download 88% complete]
-- [download 89% complete]
-- [download 90% complete]
-- [download 91% complete]
-- [download 92% complete]
-- [download 93% complete]
-- [download 94% complete]
-- [download 95% complete]
-- [download 96% complete]
-- [download 97% complete]
-- [download 98% complete]
-- [download 99% complete]
-- [download 100% complete]
-- Downloading online models from https://github.com/gvne/spleeterpp/releases/download/olmodels-v1.0/models.zip
-- [download 0% complete]
-- [download 100% complete]
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 13% complete]
-- [download 14% complete]
-- [download 15% complete]
-- [download 16% complete]
-- [download 17% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 21% complete]
-- [download 22% complete]
-- [download 23% complete]
-- [download 24% complete]
-- [download 25% complete]
-- [download 26% complete]
-- [download 27% complete]
-- [download 28% complete]
-- [download 29% complete]
-- [download 30% complete]
-- [download 31% complete]
-- [download 32% complete]
-- [download 33% complete]
-- [download 34% complete]
-- [download 35% complete]
-- [download 36% complete]
-- [download 37% complete]
-- [download 38% complete]
-- [download 39% complete]
-- [download 40% complete]
-- [download 41% complete]
-- [download 42% complete]
-- [download 43% complete]
-- [download 44% complete]
-- [download 45% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 49% complete]
-- [download 50% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 53% complete]
-- [download 54% complete]
-- [download 55% complete]
-- [download 56% complete]
-- [download 57% complete]
-- [download 58% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 62% complete]
-- [download 63% complete]
-- [download 64% complete]
-- [download 65% complete]
-- [download 66% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 69% complete]
-- [download 70% complete]
-- [download 71% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 74% complete]
-- [download 75% complete]
-- [download 76% complete]
-- [download 77% complete]
-- [download 78% complete]
-- [download 79% complete]
-- [download 80% complete]
-- [download 81% complete]
-- [download 82% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 87% complete]
-- [download 88% complete]
-- [download 89% complete]
-- [download 90% complete]
-- [download 91% complete]
-- [download 92% complete]
-- [download 93% complete]
-- [download 94% complete]
-- [download 95% complete]
-- [download 96% complete]
-- [download 97% complete]
-- [download 98% complete]
-- [download 99% complete]
-- [download 100% complete]
-- Downloading tensorflow C API pre-built
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 13% complete]
-- [download 14% complete]
-- [download 15% complete]
-- [download 16% complete]
-- [download 17% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 21% complete]
-- [download 22% complete]
-- [download 23% complete]
-- [download 24% complete]
-- [download 25% complete]
-- [download 26% complete]
-- [download 27% complete]
-- [download 28% complete]
-- [download 29% complete]
-- [download 30% complete]
-- [download 31% complete]
-- [download 32% complete]
-- [download 33% complete]
-- [download 34% complete]
-- [download 35% complete]
-- [download 36% complete]
-- [download 37% complete]
-- [download 38% complete]
-- [download 39% complete]
-- [download 40% complete]
-- [download 41% complete]
-- [download 42% complete]
-- [download 43% complete]
-- [download 44% complete]
-- [download 45% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 49% complete]
-- [download 50% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 53% complete]
-- [download 54% complete]
-- [download 55% complete]
-- [download 56% complete]
-- [download 57% complete]
-- [download 58% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 62% complete]
-- [download 63% complete]
-- [download 64% complete]
-- [download 65% complete]
-- [download 66% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 69% complete]
-- [download 70% complete]
-- [download 71% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 74% complete]
-- [download 75% complete]
-- [download 76% complete]
-- [download 77% complete]
-- [download 78% complete]
-- [download 79% complete]
-- [download 80% complete]
-- [download 81% complete]
-- [download 82% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 87% complete]
-- [download 88% complete]
-- [download 89% complete]
-- [download 90% complete]
-- [download 91% complete]
-- [download 92% complete]
-- [download 93% complete]
-- [download 94% complete]
-- [download 95% complete]
-- [download 96% complete]
-- [download 97% complete]
-- [download 98% complete]
-- [download 99% complete]
-- [download 100% complete]
-- Downloading FFTW sources
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 13% complete]
-- [download 14% complete]
-- [download 15% complete]
-- [download 16% complete]
-- [download 17% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 21% complete]
-- [download 22% complete]
-- [download 23% complete]
-- [download 24% complete]
-- [download 25% complete]
-- [download 26% complete]
-- [download 27% complete]
-- [download 28% complete]
-- [download 29% complete]
-- [download 30% complete]
-- [download 31% complete]
-- [download 32% complete]
-- [download 33% complete]
-- [download 34% complete]
-- [download 35% complete]
-- [download 36% complete]
-- [download 37% complete]
-- [download 38% complete]
-- [download 39% complete]
-- [download 40% complete]
-- [download 41% complete]
-- [download 42% complete]
-- [download 43% complete]
-- [download 44% complete]
-- [download 45% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 49% complete]
-- [download 50% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 53% complete]
-- [download 54% complete]
-- [download 55% complete]
-- [download 56% complete]
-- [download 57% complete]
-- [download 58% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 62% complete]
-- [download 63% complete]
-- [download 64% complete]
-- [download 65% complete]
-- [download 66% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 69% complete]
-- [download 70% complete]
-- [download 71% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 74% complete]
-- [download 75% complete]
-- [download 76% complete]
-- [download 77% complete]
-- [download 78% complete]
-- [download 79% complete]
-- [download 80% complete]
-- [download 81% complete]
-- [download 82% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 87% complete]
-- [download 88% complete]
-- [download 89% complete]
-- [download 90% complete]
-- [download 91% complete]
-- [download 92% complete]
-- [download 93% complete]
-- [download 94% complete]
-- [download 95% complete]
-- [download 96% complete]
-- [download 97% complete]
-- [download 98% complete]
-- [download 99% complete]
-- [download 100% complete]
-- FFTW - Configure: ./configure;--prefix=/Users/koji/work/PartScratch/spleeterpp/build/_deps/rtff-build/fftw/build;--enable-static;--enable-float
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-darwin19.6.0
checking host system type... x86_64-apple-darwin19.6.0
checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
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... configure: error: in `/Users/koji/work/PartScratch/spleeterpp/build/_deps/rtff-build/fftw/fftw-3.3.7':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
-- FFTW - Make
make: *** No targets specified and no makefile found.  Stop.
-- FFTW - Install
make: Nothing to be done for `install'.
-- FFTW - Found at fftw3f-NOTFOUND
-- Found PythonInterp: /usr/bin/python (found version "2.7.16") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/koji/work/PartScratch/spleeterpp/build

kyab avatar Sep 07 '20 09:09 kyab

I add more.

Here is contents of build/_deps/rttf-build/fftw/fftw-3.3.7/config.log. This log says stdio.h not found...

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by fftw configure 3.3.7, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/Users/koji/work/PartScratch/spleeterpp/build/_deps/rtff-build/fftw/build --enable-static --enable-float

## --------- ##
## Platform. ##
## --------- ##

hostname = MacBook-Pro.local
uname -m = x86_64
uname -r = 19.6.0
uname -s = Darwin
uname -v = Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
	 Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 16.00 gigabytes
Default processor set: 421 tasks, 1821 threads, 8 processors
Load average: 16.32, Mach factor: 1.19
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /Users/koji/.pyenv/shims
PATH: /Users/koji/.pyenv/bin
PATH: /Users/koji/.cargo/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/go/bin
PATH: /opt/X11/bin
PATH: /Library/Apple/usr/bin
PATH: /Applications/Wireshark.app/Contents/MacOS
PATH: /Users/koji/work/mruby/mruby/build/host/bin
PATH: /Users/koji/scripts
PATH: /opt/metasploit-framework/bin
PATH: /opt/metasploit-framework/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2873: checking for a BSD-compatible install
configure:2941: result: /usr/bin/install -c
configure:2952: checking whether build environment is sane
configure:3007: result: yes
configure:3158: checking for a thread-safe mkdir -p
configure:3197: result: ./install-sh -c -d
configure:3204: checking for gawk
configure:3234: result: no
configure:3204: checking for mawk
configure:3234: result: no
configure:3204: checking for nawk
configure:3234: result: no
configure:3204: checking for awk
configure:3220: found /usr/bin/awk
configure:3231: result: awk
configure:3242: checking whether make sets $(MAKE)
configure:3264: result: yes
configure:3293: checking whether make supports nested variables
configure:3310: result: yes
configure:3440: checking whether to enable maintainer-specific portions of Makefiles
configure:3449: result: no
configure:3497: checking build system type
configure:3511: result: x86_64-apple-darwin19.6.0
configure:3531: checking host system type
configure:3544: result: x86_64-apple-darwin19.6.0
configure:4167: checking for gcc
configure:4194: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
configure:4423: checking for C compiler version
configure:4432: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc --version >&5
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:4443: $? = 0
configure:4432: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -v >&5
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:4443: $? = 0
configure:4432: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -V >&5
clang: error: unsupported option '-V -Wno-objc-signed-char-bool-implicit-int-conversion'
clang: error: no input files
configure:4443: $? = 1
configure:4432: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -qversion >&5
clang: error: unknown argument '-qversion'; did you mean '--version'?
clang: error: no input files
configure:4443: $? = 1
configure:4463: checking whether the C compiler works
configure:4485: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc    conftest.c  >&5
configure:4489: $? = 0
configure:4537: result: yes
configure:4540: checking for C compiler default output file name
configure:4542: result: a.out
configure:4548: checking for suffix of executables
configure:4555: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o conftest    conftest.c  >&5
configure:4559: $? = 0
configure:4581: result: 
configure:4603: checking whether we are cross compiling
configure:4611: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o conftest    conftest.c  >&5
conftest.c:14:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
configure:4615: $? = 1
configure:4622: ./conftest
./configure: line 4624: ./conftest: No such file or directory
configure:4626: $? = 127
configure:4633: error: in `/Users/koji/work/PartScratch/spleeterpp/build/_deps/rtff-build/fftw/fftw-3.3.7':
configure:4635: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-apple-darwin19.6.0
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_MPICC_set=
ac_cv_env_MPICC_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-apple-darwin19.6.0
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /Users/koji/work/PartScratch/spleeterpp/build/_deps/rtff-build/fftw/fftw-3.3.7/missing aclocal-1.15'
ALLOCA=''
ALTIVEC_CFLAGS=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AS=''
AUTOCONF='${SHELL} /Users/koji/work/PartScratch/spleeterpp/build/_deps/rtff-build/fftw/fftw-3.3.7/missing autoconf'
AUTOHEADER='${SHELL} /Users/koji/work/PartScratch/spleeterpp/build/_deps/rtff-build/fftw/fftw-3.3.7/missing autoheader'
AUTOMAKE='${SHELL} /Users/koji/work/PartScratch/spleeterpp/build/_deps/rtff-build/fftw/fftw-3.3.7/missing automake-1.15'
AVX2_CFLAGS=''
AVX512_CFLAGS=''
AVX_128_FMA_CFLAGS=''
AVX_CFLAGS=''
AWK='awk'
BUILD_DOC_FALSE='#'
BUILD_DOC_TRUE=''
CC='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc'
CCDEPMODE=''
CFLAGS=''
CHECK_PL_OPTS=''
COMBINED_THREADS_FALSE=''
COMBINED_THREADS_TRUE=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
C_FFTW_R2R_KIND=''
C_MPI_FINT=''
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
FGREP=''
FLIBS=''
GREP=''
HAVE_ALTIVEC_FALSE=''
HAVE_ALTIVEC_TRUE='#'
HAVE_AVX2_FALSE=''
HAVE_AVX2_TRUE='#'
HAVE_AVX512_FALSE=''
HAVE_AVX512_TRUE='#'
HAVE_AVX_128_FMA_FALSE=''
HAVE_AVX_128_FMA_TRUE='#'
HAVE_AVX_FALSE=''
HAVE_AVX_TRUE='#'
HAVE_GENERIC_SIMD128_FALSE=''
HAVE_GENERIC_SIMD128_TRUE='#'
HAVE_GENERIC_SIMD256_FALSE=''
HAVE_GENERIC_SIMD256_TRUE='#'
HAVE_KCVI_FALSE=''
HAVE_KCVI_TRUE='#'
HAVE_NEON_FALSE=''
HAVE_NEON_TRUE='#'
HAVE_SSE2_FALSE=''
HAVE_SSE2_TRUE='#'
HAVE_VSX_FALSE=''
HAVE_VSX_TRUE='#'
INDENT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
KCVI_CFLAGS=''
LD=''
LDFLAGS=''
LDOUBLE_FALSE=''
LDOUBLE_TRUE='#'
LIBOBJS=''
LIBQUADMATH=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /Users/koji/work/PartScratch/spleeterpp/build/_deps/rtff-build/fftw/fftw-3.3.7/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='./install-sh -c -d'
MPICC=''
MPILIBS=''
MPIRUN=''
MPI_FALSE=''
MPI_TRUE=''
NEON_CFLAGS=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OCAMLBUILD=''
OPENMP_CFLAGS=''
OPENMP_FALSE=''
OPENMP_TRUE=''
OTOOL64=''
OTOOL=''
PACKAGE='fftw'
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='fftw'
PACKAGE_STRING='fftw 3.3.7'
PACKAGE_TARNAME='fftw'
PACKAGE_URL=''
PACKAGE_VERSION='3.3.7'
PATH_SEPARATOR=':'
POW_LIB=''
PRECISION='s'
PREC_SUFFIX='f'
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
QUAD_FALSE=''
QUAD_TRUE='#'
RANLIB=''
SED=''
SET_MAKE=''
SHARED_VERSION_INFO='8:7:5'
SHELL='/bin/sh'
SINGLE_FALSE='#'
SINGLE_TRUE=''
SMP_FALSE=''
SMP_TRUE=''
SSE2_CFLAGS=''
STACK_ALIGN_CFLAGS=''
STRIP=''
THREADLIBS=''
THREADS_FALSE=''
THREADS_TRUE=''
VERSION='3.3.7'
VSX_CFLAGS=''
ac_ct_AR=''
ac_ct_CC='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc'
ac_ct_DUMPBIN=''
ac_ct_F77=''
acx_pthread_config=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin19.6.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin19.6.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-apple-darwin19.6.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin19.6.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/koji/work/PartScratch/spleeterpp/build/_deps/rtff-build/fftw/fftw-3.3.7/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/Users/koji/work/PartScratch/spleeterpp/build/_deps/rtff-build/fftw/build'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "fftw"
#define PACKAGE_TARNAME "fftw"
#define PACKAGE_VERSION "3.3.7"
#define PACKAGE_STRING "fftw 3.3.7"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_URL ""
#define PACKAGE "fftw"
#define VERSION "3.3.7"
#define FFTW_ENABLE_ALLOCA 1
#define FFTW_SINGLE 1
#define BENCHFFT_SINGLE 1

configure: exit 1

kyab avatar Sep 07 '20 09:09 kyab

I've found workaround for this. (macOS Catalina with Xcode11.7).

$ cd /path/to/spleeterpp
$ rm -rf build
$ export SDKROOT="$(xcrun --sdk macosx --show-sdk-path)"
$ mkdir build && cd build
$ cmake ..
$ cmake --build .

kyab avatar Sep 07 '20 10:09 kyab

Great thanks for helpful comments. by the way, I've stuck in TF issue with M1 BigSur v11.2. is there any solution to solve this?

% sudo cmake --build .
Password:

[ 19%] Built target rtff 
[ 27%] Built target spleeter_common
[ 37%] Built target artff
[ 45%] Built target spleeter_filter
[ 50%] Built target spleeter
[ 56%] Built target gmock
[ 64%] Built target gmock_main
[ 68%] Built target gtest
[ 72%] Built target gtest_main
[ 88%] Built target wave
[ 92%] Built target test_artff
[ 94%] Linking CXX executable test_spleeter_filter
ld: warning: ignoring file ../../tensorflow/lib/libtensorflow.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file ../../tensorflow/lib/libtensorflow_framework.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
  "_TF_DeleteBuffer", referenced from:
      spleeter::Initialize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, spleeter::SeparationType, std::__1::error_code&) in libspleeter_common.a(spleeter_common.cc.o)
  "_TF_DeleteGraph", referenced from:
      spleeter::Initialize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, spleeter::SeparationType, std::__1::error_code&) in libspleeter_common.a(spleeter_common.cc.o)
  "_TF_DeleteSession", referenced from:
      spleeter::SessionDeleter(TF_Session*) in libspleeter_common.a(tf_handle.cc.o)
  "_TF_DeleteSessionOptions", referenced from:
      spleeter::Initialize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, spleeter::SeparationType, std::__1::error_code&) in libspleeter_common.a(spleeter_common.cc.o)
  "_TF_DeleteStatus", referenced from:
      spleeter::Initialize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, spleeter::SeparationType, std::__1::error_code&) in libspleeter_common.a(spleeter_common.cc.o)
      spleeter::Filter::AsyncProcessTransformedBlock(std::__1::vector<std::__1::complex<float>*, std::__1::allocator<std::__1::complex<float>*> >, unsigned int) in libspleeter_filter.a(filter.cc.o)
      spleeter::SessionDeleter(TF_Session*) in libspleeter_common.a(tf_handle.cc.o)
  "_TF_DeleteTensor", referenced from:
      spleeter::Filter::AsyncProcessTransformedBlock(std::__1::vector<std::__1::complex<float>*, std::__1::allocator<std::__1::complex<float>*> >, unsigned int) in libspleeter_filter.a(filter.cc.o)
      spleeter::TensorAlloc(TF_DataType, std::__1::vector<long long, std::__1::allocator<long long> >) in libspleeter_filter.a(tensor.cc.o)
  "_TF_GetCode", referenced from:
      spleeter::Initialize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, spleeter::SeparationType, std::__1::error_code&) in libspleeter_common.a(spleeter_common.cc.o)
      spleeter::Filter::AsyncProcessTransformedBlock(std::__1::vector<std::__1::complex<float>*, std::__1::allocator<std::__1::complex<float>*> >, unsigned int) in libspleeter_filter.a(filter.cc.o)
      spleeter::SessionDeleter(TF_Session*) in libspleeter_common.a(tf_handle.cc.o)
  "_TF_GraphOperationByName", referenced from:
      spleeter::Filter::AsyncProcessTransformedBlock(std::__1::vector<std::__1::complex<float>*, std::__1::allocator<std::__1::complex<float>*> >, unsigned int) in libspleeter_filter.a(filter.cc.o)
  "_TF_LoadSessionFromSavedModel", referenced from:
      spleeter::Initialize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, spleeter::SeparationType, std::__1::error_code&) in libspleeter_common.a(spleeter_common.cc.o)
  "_TF_NewBuffer", referenced from:
      spleeter::Initialize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, spleeter::SeparationType, std::__1::error_code&) in libspleeter_common.a(spleeter_common.cc.o)
  "_TF_NewGraph", referenced from:
      spleeter::Initialize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, spleeter::SeparationType, std::__1::error_code&) in libspleeter_common.a(spleeter_common.cc.o)
  "_TF_NewSessionOptions", referenced from:
      spleeter::Initialize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, spleeter::SeparationType, std::__1::error_code&) in libspleeter_common.a(spleeter_common.cc.o)
  "_TF_NewStatus", referenced from:
      spleeter::Initialize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, spleeter::SeparationType, std::__1::error_code&) in libspleeter_common.a(spleeter_common.cc.o)
      spleeter::Filter::AsyncProcessTransformedBlock(std::__1::vector<std::__1::complex<float>*, std::__1::allocator<std::__1::complex<float>*> >, unsigned int) in libspleeter_filter.a(filter.cc.o)
      spleeter::SessionDeleter(TF_Session*) in libspleeter_common.a(tf_handle.cc.o)
  "_TF_NewTensor", referenced from:
      spleeter::TensorAlloc(TF_DataType, std::__1::vector<long long, std::__1::allocator<long long> >) in libspleeter_filter.a(tensor.cc.o)
  "_TF_SessionRun", referenced from:
      spleeter::Filter::AsyncProcessTransformedBlock(std::__1::vector<std::__1::complex<float>*, std::__1::allocator<std::__1::complex<float>*> >, unsigned int) in libspleeter_filter.a(filter.cc.o)
  "_TF_TensorData", referenced from:
      void spleeter::Copy<float>(TF_Tensor const*, std::__1::vector<long long, std::__1::allocator<long long> >, std::__1::shared_ptr<spleeter::TFHandle<TF_Tensor> >) in libspleeter_filter.a(filter.cc.o)
      void spleeter::Copy<std::__1::complex<float> >(TF_Tensor const*, std::__1::vector<long long, std::__1::allocator<long long> >, std::__1::shared_ptr<spleeter::TFHandle<TF_Tensor> >) in libspleeter_filter.a(filter.cc.o)
      spleeter::internal::Adapter<std::__1::complex<float> >::operator()(unsigned long, unsigned long, unsigned long) in libspleeter_filter.a(filter.cc.o)
      spleeter::internal::Adapter<float>::operator()(unsigned long, unsigned long, unsigned long) in libspleeter_filter.a(filter.cc.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [test/spleeter_filter/test_spleeter_filter] Error 1
make[1]: *** [test/spleeter_filter/CMakeFiles/test_spleeter_filter.dir/all] Error 2
make: *** [all] Error 2

ecb2c avatar Apr 13 '21 20:04 ecb2c

Maybe M1 mac(arm64) version of tensorflow required. Someone should help..

kyab avatar Jun 12 '21 12:06 kyab

Hi @ecb2c, I am facing the same issue. I have M1 with Monterey. Did you manage to solve that?

carmelofascella avatar Mar 23 '24 14:03 carmelofascella