merlin icon indicating copy to clipboard operation
merlin copied to clipboard

Error during install Merlin

Open ifonetwork opened this issue 7 years ago • 6 comments

I make ~/dev/merlin/tools/compile_tools.sh

cp: cannot stat 'SPTK-3.9/build/bin/*': No such file or directory
Error installing SPTK tools

SPTK-3.9 folder doesn't have "build" folder

ifonetwork avatar Mar 31 '17 07:03 ifonetwork

are you sure you don't have an error before this one ?

seblemaguer avatar Mar 31 '17 08:03 seblemaguer

I had the same issue. Turns out that it was because I did not have 'csh' installed

syltruong avatar Apr 06 '17 13:04 syltruong

sudo apt-get install csh

Jackiexiao avatar May 25 '17 09:05 Jackiexiao

I am getting the same error. I have already installed 'csh' using sudo apt-get install csh

lakshaysahni@Lakshay-PC:/mnt/c/Users/Lakshay Sahni/Desktop/merlin$ bash tools/compile_tools.sh
downloading SPTK-3.9...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   364    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0   347    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100 1052k  100 1052k    0     0   182k      0  0:00:05  0:00:05 --:--:--  261k
compiling SPTK...
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: Sahni/Desktop/merlin/tools/SPTK-3.9/build
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for Sahni/Desktop/merlin/tools/SPTK-3.9/build-gcc... no
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 whether ln -s works... yes
checking for Sahni/Desktop/merlin/tools/SPTK-3.9/build-ranlib... no
checking for ranlib... ranlib
checking for Sahni/Desktop/merlin/tools/SPTK-3.9/build-ar... no
checking for ar... ar
checking for csh... /bin/csh
checking for log in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for X... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking build system type... Invalid configuration `Sahni/Desktop/merlin/tools/SPTK-3.9/build': machine `Sahni/Desktop/merlin/tools/SPTK' not recognized
configure: error: /bin/bash config/config.sub Sahni/Desktop/merlin/tools/SPTK-3.9/build failed
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
compiling WORLD...
mkdir -p ./build/objs
g++ -O1 -g -Wall -fPIC -Isrc -o "build/objs/cheaptrick.o" -c "src/cheaptrick.cpp"
mkdir -p ./build/objs
g++ -O1 -g -Wall -fPIC -Isrc -o "build/objs/common.o" -c "src/common.cpp"
mkdir -p ./build/objs
g++ -O1 -g -Wall -fPIC -Isrc -o "build/objs/d4c.o" -c "src/d4c.cpp"
mkdir -p ./build/objs
g++ -O1 -g -Wall -fPIC -Isrc -o "build/objs/dio.o" -c "src/dio.cpp"
mkdir -p ./build/objs
g++ -O1 -g -Wall -fPIC -Isrc -o "build/objs/fft.o" -c "src/fft.cpp"
mkdir -p ./build/objs
g++ -O1 -g -Wall -fPIC -Isrc -o "build/objs/matlabfunctions.o" -c "src/matlabfunctions.cpp"
mkdir -p ./build/objs
g++ -O1 -g -Wall -fPIC -Isrc -o "build/objs/stonemask.o" -c "src/stonemask.cpp"
mkdir -p ./build/objs
g++ -O1 -g -Wall -fPIC -Isrc -o "build/objs/synthesis.o" -c "src/synthesis.cpp"
ar -rv ./build/libworld.a ./build/objs/cheaptrick.o ./build/objs/common.o ./build/objs/d4c.o ./build/objs/dio.o ./build/objs/fft.o ./build/objs/matlabfunctions.o ./build/objs/stonemask.o ./build/objs/synthesis.o
ar: creating ./build/libworld.a
a - ./build/objs/cheaptrick.o
a - ./build/objs/common.o
a - ./build/objs/d4c.o
a - ./build/objs/dio.o
a - ./build/objs/fft.o
a - ./build/objs/matlabfunctions.o
a - ./build/objs/stonemask.o
a - ./build/objs/synthesis.o
Done.
mkdir -p ./build/objs/test
g++ -O1 -g -Wall -fPIC -Isrc -o "build/objs/test/audioio.o" -c "test/audioio.cpp"
test/audioio.cpp: In function ‘int GetAudioLength(const char*)’:
test/audioio.cpp:188:34: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   fread(for_int_number, 1, 2, fp);
                                  ^
test/audioio.cpp:193:38: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
       fread(&data_check[1], 1, 3, fp);
                                      ^
test/audioio.cpp:205:34: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   fread(for_int_number, 1, 4, fp);  // "data"
                                  ^
test/audioio.cpp: In function ‘int {anonymous}::CheckHeader(FILE*)’:
test/audioio.cpp:37:30: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   fread(data_check, 1, 4, fp);  // "RIFF"
                              ^
test/audioio.cpp:44:30: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   fread(data_check, 1, 4, fp);  // "WAVE"
                              ^
test/audioio.cpp:49:30: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   fread(data_check, 1, 4, fp);  // "fmt "
                              ^
test/audioio.cpp:54:30: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   fread(data_check, 1, 4, fp);  // 1 0 0 0
                              ^
test/audioio.cpp:60:30: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   fread(data_check, 1, 2, fp);  // 1 0
                              ^
test/audioio.cpp:65:30: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   fread(data_check, 1, 2, fp);  // 1 0
                              ^
test/audioio.cpp: In function ‘void wavread(const char*, int*, int*, double*)’:
test/audioio.cpp:240:52: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
     fread(for_int_number, 1, quantization_byte, fp);  // "data"
                                                    ^
test/audioio.cpp: In function ‘int {anonymous}::GetParameters(FILE*, int*, int*, int*)’:
test/audioio.cpp:81:34: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   fread(for_int_number, 1, 4, fp);
                                  ^
test/audioio.cpp:86:34: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   fread(for_int_number, 1, 2, fp);
                                  ^
test/audioio.cpp:92:38: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
       fread(&data_check[1], 1, 3, fp);
                                      ^
test/audioio.cpp:104:34: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   fread(for_int_number, 1, 4, fp);  // "data"
                                  ^
g++ -O1 -g -Wall -fPIC -o ./build/analysis ./build/objs/test/audioio.o ./build/objs/test/analysis.o ./build/libworld.a -lm
g++ -O1 -g -Wall -fPIC -o ./build/synth ./build/objs/test/audioio.o ./build/objs/test/synth.o ./build/libworld.a -lm
Removing all temporary binaries...
Done.
cp: cannot stat 'SPTK-3.9/build/bin/*': No such file or directory
Error installing SPTK tools

So, I am getting the same issue even after installing 'csh'

Any help? Thanks.

LakshaySahni avatar Aug 10 '17 19:08 LakshaySahni

you can try the following command before you run ./compile_tools wget http://downloads.sourceforge.net/sp-tk/SPTK-3.9.tar.gz

http://downloads.sourceforge.net/sp-tk/SPTK-3.9.tar.gz is where you can download SPTK

Jiff-Zhang avatar Mar 30 '18 06:03 Jiff-Zhang

when trying to compile htk , I got error as "Connecting to hts.sp.nitech.ac.jp (hts.sp.nitech.ac.jp)|133.68.60.180|:80... failed: Connection refused." . . . and at the end, "Error installing HTK tools".

Is this a problem from my side?

priyanthini avatar Jul 30 '20 17:07 priyanthini