Closed lucyanddarlin closed 1 year ago
errors on mac:
❯ ./run.sh Stage 0: Converting sphere files to wav files Download sph2pipe_v2.5 into egs/tools --2023-03-31 21:28:26-- http://www.openslr.org/resources/3/sph2pipe_v2.5.tar.gz 正在解析主机 www.openslr.org (www.openslr.org)... 46.101.158.64 正在连接 www.openslr.org (www.openslr.org)|46.101.158.64|:80... 已连接。 已发出 HTTP 请求,正在等待回应... 302 Found 位置:https://openslr.magicdatatech.com/resources/3/sph2pipe_v2.5.tar.gz [跟随至新的 URL] --2023-03-31 21:28:27-- https://openslr.magicdatatech.com/resources/3/sph2pipe_v2.5.tar.gz 正在解析主机 openslr.magicdatatech.com (openslr.magicdatatech.com)... 39.96.249.211 正在连接 openslr.magicdatatech.com (openslr.magicdatatech.com)|39.96.249.211|:443... 已连接。 已发出 HTTP 请求,正在等待回应... 200 OK 长度:329832 (322K) [application/x-gzip] 正在保存至: “../../tools/sph2pipe_v2.5.tar.gz.1”
sph2pipe_v2.5.tar.gz.1 100%[================================================================================================================================>] 322.10K 39.6KB/s 用时 8.1s
2023-03-31 21:28:36 (39.6 KB/s) - 已保存 “../../tools/sph2pipe_v2.5.tar.gz.1” [329832/329832])
x sph2pipe_v2.5
x sph2pipe_v2.5/0readme.1st
x sph2pipe_v2.5/bitshift.h
x sph2pipe_v2.5/file_headers.c
x sph2pipe_v2.5/shorten_x.c
x sph2pipe_v2.5/sph2pipe.c
x sph2pipe_v2.5/sph_convert.h
x sph2pipe_v2.5/test
x sph2pipe_v2.5/test/123_1pcbe_shn.sph
x sph2pipe_v2.5/test/123_1pcle_shn.sph
x sph2pipe_v2.5/test/123_1ulaw_shn.sph
x sph2pipe_v2.5/test/123_2alaw.sph
x sph2pipe_v2.5/test/123_2pcbe_shn.sph
x sph2pipe_v2.5/test/123_2pcle_shn.sph
x sph2pipe_v2.5/test/123_2ulaw_shn.sph
x sph2pipe_v2.5/test/big1.hdr
x sph2pipe_v2.5/test/big2.hdr
x sph2pipe_v2.5/test/outfile-md5.list.macosx
x sph2pipe_v2.5/test/std1.hdr
x sph2pipe_v2.5/test/std2.hdr
x sph2pipe_v2.5/test/test_all.pl
x sph2pipe_v2.5/ulaw.h
x sph2pipe_v2.5/sph2pipe.exe
sph2pipe_v2.5/file_headers.c:149:24: warning: format specifies type 'int' but the argument has type 'off_t' (aka 'long long') [-Wformat]
inpname, sampcount, statbuf.st_size );
^~~~~~~
sph2pipe_v2.5/file_headers.c:579:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
ConvertToIeeeExtended(num, bytes)
^
sph2pipe_v2.5/file_headers.c:579:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
sph2pipe_v2.5/file_headers.c:629:1: warning: non-void function does not return a value [-Wreturn-type]
}
^
4 warnings generated.
sph2pipe_v2.5/shorten_x.c:187:29: warning: too many arguments in call to 'word_get'
gbuffer = word_get(fpin);
sph2pipe_v2.5/shorten_x.c:187:24: warning: passing arguments to 'word_get' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
gbuffer = word_get(fpin);
^
sph2pipe_v2.5/shorten_x.c:325:22: error: call to undeclared function 'pcm2alaw'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*writebufp++ = pcm2alaw( ulaw2pcm[data0[i]] );
^
sph2pipe_v2.5/shorten_x.c:381:24: error: call to undeclared function 'pcm2ulaw'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*writebufp++ = pcm2ulaw( data0[i] );
^
sph2pipe_v2.5/shorten_x.c:393:24: error: call to undeclared function 'pcm2alaw'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*writebufp++ = pcm2alaw( data0[i] );
^
sph2pipe_v2.5/shorten_x.c:435:20: error: call to undeclared function 'pcm2ulaw'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*writebufp++ = pcm2ulaw(data0[i] << 3);
^
2 warnings and 4 errors generated.
sph2pipe_v2.5/sph2pipe.c:191:18: error: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
while (( i = getopt( ac, av, "daupf:c:t:s:h:" )) != EOF )
^
sph2pipe_v2.5/sph2pipe.c:530:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe_v2.5/sph2pipe.c:545:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe_v2.5/sph2pipe.c:547:15: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
wptr = cptr = outbuf;
^ ~~~~~~
sph2pipe_v2.5/sph2pipe.c:547:8: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
wptr = cptr = outbuf;
^ ~~~~~~~~~~~~~
sph2pipe_v2.5/sph2pipe.c:561:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe_v2.5/sph2pipe.c:568:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe_v2.5/sph2pipe.c:616:7: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
7 warnings and 1 error generated.
Convert sphere format to wav format
Could not find (or execute) the sph2pipe program at ../../tools/sph2pipe_v2.5/sph2pipe
conda list: ❯ conda list
#
aiohttp 3.8.4 pypi_0 pypi
aiosignal 1.3.1 pypi_0 pypi
appdirs 1.4.4 pypi_0 pypi
asteroid 0.6.1.dev0 dev_0
Which fix did you try ?
i updated gcc and g++.
but it dont wrok..
Looks like an installation problem of sph2pipe. Did you have a look for similar error in the kaldi repo?
Le sam. 1 avr. 2023 à 10:46, lucyanddarlin @.***> a écrit :
but it dont wrok..
— Reply to this email directly, view it on GitHub https://github.com/asteroid-team/asteroid/issues/661#issuecomment-1492880868, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEND2HDTEMUN5FFMSDR53GDW67TQBANCNFSM6AAAAAAWPOKGAU . You are receiving this because you commented.Message ID: @.***>
fail in the kaldi repo : (... Is the reason that I'm using m1 mac? Can't they run in the m1 mac?
Hi! I successfully run the exp 'yesno' in kaldi. But I fail to run the ./run.sh
in asteroid
: (... I got the follow errors:
sph2pipe_v2.5/file_headers.c:149:24: warning: format specifies type 'int' but the argument has type 'off_t' (aka 'long long') [-Wformat]
inpname, sampcount, statbuf.st_size );
^~~~~~~~~~~~~~~
sph2pipe_v2.5/file_headers.c:579:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
ConvertToIeeeExtended(num, bytes)
^
sph2pipe_v2.5/file_headers.c:579:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
sph2pipe_v2.5/file_headers.c:629:1: warning: non-void function does not return a value [-Wreturn-type]
}
^
4 warnings generated.
sph2pipe_v2.5/shorten_x.c:187:29: warning: too many arguments in call to 'word_get'
gbuffer = word_get(fpin);
~~~~~~~~ ^
sph2pipe_v2.5/shorten_x.c:187:24: warning: passing arguments to 'word_get' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
gbuffer = word_get(fpin);
^
sph2pipe_v2.5/shorten_x.c:325:22: error: call to undeclared function 'pcm2alaw'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*writebufp++ = pcm2alaw( ulaw2pcm[data0[i]] );
^
sph2pipe_v2.5/shorten_x.c:381:24: error: call to undeclared function 'pcm2ulaw'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*writebufp++ = pcm2ulaw( data0[i] );
^
sph2pipe_v2.5/shorten_x.c:393:24: error: call to undeclared function 'pcm2alaw'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*writebufp++ = pcm2alaw( data0[i] );
^
sph2pipe_v2.5/shorten_x.c:435:20: error: call to undeclared function 'pcm2ulaw'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*writebufp++ = pcm2ulaw(data0[i] << 3);
^
2 warnings and 4 errors generated.
sph2pipe_v2.5/sph2pipe.c:191:18: error: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
while (( i = getopt( ac, av, "daupf:c:t:s:h:" )) != EOF )
^
sph2pipe_v2.5/sph2pipe.c:530:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe_v2.5/sph2pipe.c:545:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe_v2.5/sph2pipe.c:547:15: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
wptr = cptr = outbuf;
^ ~~~~~~
sph2pipe_v2.5/sph2pipe.c:547:8: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
wptr = cptr = outbuf;
^ ~~~~~~~~~~~~~
sph2pipe_v2.5/sph2pipe.c:561:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe_v2.5/sph2pipe.c:568:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe_v2.5/sph2pipe.c:616:7: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
7 warnings and 1 error generated.
Convert sphere format to wav format
Could not find (or execute) the sph2pipe program at ../../tools/sph2pipe_v2.5/sph2pipe
here is my gcc version:
❯ gcc -v
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
could you compile 'sph2pipe' then send the file to the email: lucykfc1@gmail.com, thank you so much!!!
when I run /asteroid-master/egs/avspeech/looking-to-listen/run.sh
, I get the follow errors:
get_attribute:5: command not found: grep
get_attribute:5: command not found: awk
get_attribute:5: command not found: sed
but I have installed them :
❯ whereis grep
grep: /usr/bin/grep /usr/share/man/man1/grep.1
Hi, I also meet this error in MINGW on win10. Did you fix it?
Hi, I also meet this error in MINGW on win10. Did you fix it?
Emm, I fix the problem by change sph2pipe=../../tools/sph2pipe_v2.5/sph2pipe
to sph2pipe=../../tools/sph2pipe_v2.5/sph2pipe.exe
and commented out gcc part. So I can run the file on zsh by msys2.
Hi, I also meet this error in MINGW on win10. Did you fix it?
Emm, I fix the problem by change
sph2pipe=../../tools/sph2pipe_v2.5/sph2pipe
tosph2pipe=../../tools/sph2pipe_v2.5/sph2pipe.exe
and commented out gcc part. So I can run the file on zsh by msys2.
This method is useful!
Whether I execute on Mac or Windows ./run.sh will get the following errors. Could someone tell me how to run it correctly? Thank you very much!!!
$ ./run.sh Stage 0: Converting sphere files to wav files Download sph2pipe_v2.5 into egs/tools --2023-04-01 14:46:46-- http://www.openslr.org/resources/3/sph2pipe_v2.5.tar.gz Resolving www.openslr.org (www.openslr.org)... 46.101.158.64 Connecting to www.openslr.org (www.openslr.org)|46.101.158.64|:80... connected. HTTP request sent, awaiting response... 302 Found Location: https://openslr.magicdatatech.com/resources/3/sph2pipe_v2.5.tar.gz [following] --2023-04-01 14:46:47-- https://openslr.magicdatatech.com/resources/3/sph2pipe_v2.5.tar.gz Resolving openslr.magicdatatech.com (openslr.magicdatatech.com)... 39.96.249.211 Connecting to openslr.magicdatatech.com (openslr.magicdatatech.com)|39.96.249.211|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 329832 (322K) [application/x-gzip] Saving to: '../../tools/sph2pipe_v2.5.tar.gz'
100K .......... .......... .......... .......... .......... 46% 554K 2s 150K .......... .......... .......... .......... .......... 62% 653K 1s 200K .......... .......... .......... .......... .......... 77% 1.09M 1s 250K .......... .......... .......... .......... .......... 93% 199K 0s 300K .......... .......... .. 100% 497K=2.2s
2023-04-01 14:46:50 (147 KB/s) - '../../tools/sph2pipe_v2.5.tar.gz' saved [329832/329832]
sph2pipe_v2.5 sph2pipe_v2.5/0readme.1st sph2pipe_v2.5/bitshift.h sph2pipe_v2.5/file_headers.c sph2pipe_v2.5/shorten_x.c sph2pipe_v2.5/sph2pipe.c sph2pipe_v2.5/sph_convert.h sph2pipe_v2.5/test sph2pipe_v2.5/test/123_1pcbe_shn.sph sph2pipe_v2.5/test/123_1pcle_shn.sph sph2pipe_v2.5/test/123_1ulaw_shn.sph sph2pipe_v2.5/test/123_2alaw.sph sph2pipe_v2.5/test/123_2pcbe_shn.sph sph2pipe_v2.5/test/123_2pcle_shn.sph sph2pipe_v2.5/test/123_2ulaw_shn.sph sph2pipe_v2.5/test/big1.hdr sph2pipe_v2.5/test/big2.hdr sph2pipe_v2.5/test/outfile-md5.list.macosx sph2pipe_v2.5/test/std1.hdr sph2pipe_v2.5/test/std2.hdr sph2pipe_v2.5/test/test_all.pl sph2pipe_v2.5/ulaw.h sph2pipe_v2.5/sph2pipe.exe sph2pipe_v2.5/file_headers.c:579:1: warning: return type defaults to 'int' [-Wimplicit-int] 579 | ConvertToIeeeExtended(num, bytes) | ^
~~~~sph2pipe_v2.5/shorten_x.c: In function 'fwrite_type': sph2pipe_v2.5/shorten_x.c:325:36: warning: implicit declaration of function 'pcm2alaw' [-Wimplicit-function-declaration] 325 | writebufp++ = pcm2alaw( ulaw2pcm[data0[i]] ); | ^~~~ sph2pipe_v2.5/shorten_x.c:381:38: warning: implicit declaration of function 'pcm2ulaw' [-Wimplicit-function-declaration] 381 | writebufp++ = pcm2ulaw( data0[i] ); | ^~~~ sph2pipe_v2.5/sph2pipe.c: In function 'getUserOpts': sph2pipe_v2.5/sph2pipe.c:191:18: warning: implicit declaration of function 'getopt' [-Wimplicit-function-declaration] 191 | while (( i = getopt( ac, av, "daupf:c:t:s:h:" )) != EOF ) | ^~sph2pipe_v2.5/sph2pipe.c:229:25: warning: implicit declaration of function 'index' [-Wimplicit-function-declaration] 229 | if (( cln = index( optarg, ':' )) == NULL ) { | ^~~~~ sph2pipe_v2.5/sph2pipe.c:229:25: warning: incompatible implicit declaration of built-in function 'index' [-Wbuiltin-declaration-mismatch] sph2pipe_v2.5/sph2pipe.c:254:25: warning: incompatible implicit declaration of built-in function 'index' [-Wbuiltin-declaration-mismatch] 254 | if (( cln = index( optarg, ':' )) == NULL ) { | ^~~~~ C:/soft/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\lucy\AppData\Local\Temp\ccwL9dY7.o:sph2pipe.c:(.text+0x48c): undefined reference toindex' C:/soft/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\lucy\AppData\Local\Temp\ccwL9dY7.o:sph2pipe.c:(.text+0x63f): undefined reference to
index' collect2.exe: error: ld returned 1 exit status Convert sphere format to wav format Could not find (or execute) the sph2pipe program at ../../tools/sph2pipe_v2.5/sph2pipe