-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make error on Big Sur #4155
Comments
I think this might be a new one. I haven't seen apple clang 12 before.
Someone will have to look at the shorten code
and see why that function wasn't declared, we might need to patch it. @kkm
or @jtrmal I hope you might have time for this?
…On Sun, Jul 5, 2020 at 8:18 AM Anonymous Chipmunk ***@***.***> wrote:
I get the following error when running make
`extras/check_dependencies.sh
extras/check_dependencies.sh: all OK.
if [ -d "" ]; then
cp -p "/sph2pipe_v2.5.tar.gz" .;
else
wget -T 10 -t 3 https://www.openslr.org/resources/3/sph2pipe_v2.5.tar.gz
||
wget -T 10 -c
https://sourceforge.net/projects/kaldi/files/sph2pipe_v2.5.tar.gz;
fi
--2020-07-04 17:03:16--
https://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|:443
<http://www.openslr.org)%7C46.101.158.64%7C:443>... connected.
HTTP request sent, awaiting response... 200 OK
Length: 329832 (322K) [application/x-gzip]
Saving to: ‘sph2pipe_v2.5.tar.gz’
sph2pipe_v2.5.tar.g 100%[===================>] 322.10K 260KB/s in 1.2s
2020-07-04 17:03:19 (260 KB/s) - ‘sph2pipe_v2.5.tar.gz’ saved
[329832/329832]
tar --no-same-owner -xzf sph2pipe_v2.5.tar.gz
cd sph2pipe_v2.5/ &&
cc -o sph2pipe *.c -lm
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 );
^~~~~~~~~~~~~~~
file_headers.c:579:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
ConvertToIeeeExtended(num, bytes)
^
file_headers.c:629:1: warning: non-void function does not return a value
[-Wreturn-type]
}
^
3 warnings generated.
shorten_x.c:187:29: warning: too many arguments in call to 'word_get'
gbuffer = word_get(fpin);
~~~~~~~~ ^
shorten_x.c:325:22: error: implicit declaration of function 'pcm2alaw' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
*writebufp++ = pcm2alaw( ulaw2pcm[data0[i]] );
^
shorten_x.c:381:24: error: implicit declaration of function 'pcm2ulaw' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
*writebufp++ = pcm2ulaw( data0[i] );
^
shorten_x.c:393:24: error: implicit declaration of function 'pcm2alaw' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
*writebufp++ = pcm2alaw( data0[i] );
^
shorten_x.c:435:20: error: implicit declaration of function 'pcm2ulaw' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
*writebufp++ = pcm2ulaw(data0[i] << 3);
^
1 warning and 4 errors generated.
sph2pipe.c:191:18: error: implicit declaration of function 'getopt' is
invalid
in C99 [-Werror,-Wimplicit-function-declaration]
while (( i = getopt( ac, av, "daupf:c:t:s:h:" )) != EOF )
^
sph2pipe.c:530:11: warning: assigning to 'unsigned char *' from 'char *'
converts between pointers to integer types with different sign
[-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe.c:545:8: warning: assigning to 'unsigned char *' from 'char *'
converts
between pointers to integer types with different sign [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe.c:547:15: warning: assigning to 'unsigned char *' from 'char *'
converts between pointers to integer types with different sign
[-Wpointer-sign]
wptr = cptr = outbuf;
^ ~~~~~~
sph2pipe.c:547:8: warning: assigning to 'char *' from 'unsigned char *'
converts
between pointers to integer types with different sign [-Wpointer-sign]
wptr = cptr = outbuf;
^ ~~~~~~~~~~~~~
sph2pipe.c:561:11: warning: assigning to 'unsigned char *' from 'char *'
converts between pointers to integer types with different sign
[-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe.c:568:11: warning: assigning to 'unsigned char *' from 'char *'
converts between pointers to integer types with different sign
[-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe.c:616:7: warning: assigning to 'unsigned char *' from 'char *'
converts
between pointers to integer types with different sign [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
7 warnings and 1 error generated.
make: *** [sph2pipe_v2.5/sph2pipe] Error 1`
Running gcc -v gives me
Configured with: --prefix=/Library/Developer/CommandLineTools/usr
--with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.22.7) Target:
x86_64-apple-darwin20.0.0 Thread model: posix InstalledDir:
/Library/Developer/CommandLineTools/usr/bin
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4155>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZFLO4UHTQNRD3EOUJDMPDRZ7BGHANCNFSM4OQTU7LA>
.
|
I'll check it out.
y.
On Sun, Jul 5, 2020 at 6:28 AM Daniel Povey <notifications@github.com>
wrote:
… I think this might be a new one. I haven't seen apple clang 12 before.
Someone will have to look at the shorten code
and see why that function wasn't declared, we might need to patch it. @kkm
or @jtrmal I hope you might have time for this?
On Sun, Jul 5, 2020 at 8:18 AM Anonymous Chipmunk <
***@***.***>
wrote:
> I get the following error when running make
>
> `extras/check_dependencies.sh
> extras/check_dependencies.sh: all OK.
> if [ -d "" ]; then
> cp -p "/sph2pipe_v2.5.tar.gz" .;
> else
> wget -T 10 -t 3 https://www.openslr.org/resources/3/sph2pipe_v2.5.tar.gz
> ||
> wget -T 10 -c
> https://sourceforge.net/projects/kaldi/files/sph2pipe_v2.5.tar.gz;
> fi
> --2020-07-04 17:03:16--
> https://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|:443
> <http://www.openslr.org)%7C46.101.158.64%7C:443>... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 329832 (322K) [application/x-gzip]
> Saving to: ‘sph2pipe_v2.5.tar.gz’
>
> sph2pipe_v2.5.tar.g 100%[===================>] 322.10K 260KB/s in 1.2s
>
> 2020-07-04 17:03:19 (260 KB/s) - ‘sph2pipe_v2.5.tar.gz’ saved
> [329832/329832]
>
> tar --no-same-owner -xzf sph2pipe_v2.5.tar.gz
> cd sph2pipe_v2.5/ &&
> cc -o sph2pipe *.c -lm
> 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 );
> ^~~~~~~~~~~~~~~
> file_headers.c:579:1: warning: type specifier missing, defaults to 'int'
> [-Wimplicit-int]
> ConvertToIeeeExtended(num, bytes)
> ^
> file_headers.c:629:1: warning: non-void function does not return a value
> [-Wreturn-type]
> }
> ^
> 3 warnings generated.
> shorten_x.c:187:29: warning: too many arguments in call to 'word_get'
> gbuffer = word_get(fpin);
> ~~~~~~~~ ^
> shorten_x.c:325:22: error: implicit declaration of function 'pcm2alaw' is
> invalid in C99 [-Werror,-Wimplicit-function-declaration]
> *writebufp++ = pcm2alaw( ulaw2pcm[data0[i]] );
> ^
> shorten_x.c:381:24: error: implicit declaration of function 'pcm2ulaw' is
> invalid in C99 [-Werror,-Wimplicit-function-declaration]
> *writebufp++ = pcm2ulaw( data0[i] );
> ^
> shorten_x.c:393:24: error: implicit declaration of function 'pcm2alaw' is
> invalid in C99 [-Werror,-Wimplicit-function-declaration]
> *writebufp++ = pcm2alaw( data0[i] );
> ^
> shorten_x.c:435:20: error: implicit declaration of function 'pcm2ulaw' is
> invalid in C99 [-Werror,-Wimplicit-function-declaration]
> *writebufp++ = pcm2ulaw(data0[i] << 3);
> ^
> 1 warning and 4 errors generated.
> sph2pipe.c:191:18: error: implicit declaration of function 'getopt' is
> invalid
> in C99 [-Werror,-Wimplicit-function-declaration]
> while (( i = getopt( ac, av, "daupf:c:t:s:h:" )) != EOF )
> ^
> sph2pipe.c:530:11: warning: assigning to 'unsigned char *' from 'char *'
> converts between pointers to integer types with different sign
> [-Wpointer-sign]
> cptr = inpbuf;
> ^ ~~~~~~
> sph2pipe.c:545:8: warning: assigning to 'unsigned char *' from 'char *'
> converts
> between pointers to integer types with different sign [-Wpointer-sign]
> cptr = inpbuf;
> ^ ~~~~~~
> sph2pipe.c:547:15: warning: assigning to 'unsigned char *' from 'char *'
> converts between pointers to integer types with different sign
> [-Wpointer-sign]
> wptr = cptr = outbuf;
> ^ ~~~~~~
> sph2pipe.c:547:8: warning: assigning to 'char *' from 'unsigned char *'
> converts
> between pointers to integer types with different sign [-Wpointer-sign]
> wptr = cptr = outbuf;
> ^ ~~~~~~~~~~~~~
> sph2pipe.c:561:11: warning: assigning to 'unsigned char *' from 'char *'
> converts between pointers to integer types with different sign
> [-Wpointer-sign]
> cptr = inpbuf;
> ^ ~~~~~~
> sph2pipe.c:568:11: warning: assigning to 'unsigned char *' from 'char *'
> converts between pointers to integer types with different sign
> [-Wpointer-sign]
> cptr = inpbuf;
> ^ ~~~~~~
> sph2pipe.c:616:7: warning: assigning to 'unsigned char *' from 'char *'
> converts
> between pointers to integer types with different sign [-Wpointer-sign]
> cptr = inpbuf;
> ^ ~~~~~~
> 7 warnings and 1 error generated.
> make: *** [sph2pipe_v2.5/sph2pipe] Error 1`
>
> Running gcc -v gives me
> Configured with: --prefix=/Library/Developer/CommandLineTools/usr
>
--with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
> Apple clang version 12.0.0 (clang-1200.0.22.7) Target:
> x86_64-apple-darwin20.0.0 Thread model: posix InstalledDir:
> /Library/Developer/CommandLineTools/usr/bin
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#4155>, or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAZFLO4UHTQNRD3EOUJDMPDRZ7BGHANCNFSM4OQTU7LA
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4155 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUKYXZ6TANUMGIFG33XDVLRZ76NXANCNFSM4OQTU7LA>
.
|
This is interesting, because the latest release was 10, on March 24. Does Apple number their versions differently? There is a tag for it, but it probably indicates a future branch. There is a branch for 11.x only.
@kingpin24, do you have any idea what am I missing here? I never had a Mac. |
looks like could be xcode 12 beta https://gist.github.com/yamaya/2924292
…On Wed, Jul 15, 2020 at 7:33 PM kkm000 ***@***.***> wrote:
This is *interesting*, because the latest release was 10, on March 24
<https://releases.llvm.org/>. Does Apple number their versions
differently?
There is a tag for it, but it probably indicates a future branch. There is
a branch for 11.x only.
$ git ls-remote https://github.com/llvm/llvm-project.git | fgrep -- -12
3fa4dd27822aee8b2d36a8cd46ba662aed91503d refs/tags/llvmorg-12-init
7ab7b979d29e1e43701cf690f5cf1903740f50e3 refs/tags/llvmorg-12-init^{}
@kingpin24 <https://github.com/kingpin24>, do you have any idea what am I
missing here? I never had a Mac.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4155 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZFLO452CJHPN6F42ONA4DR3WH2JANCNFSM4OQTU7LA>
.
|
I think you can only install command line tools(not install Xcode), or compile sph2pipe_v2.5.tar.gz yourself. |
Yes its the beta https://twitter.com/XcodeReleases/status/1280554131531300865 |
I created a PR at nist's github. Last time, Jon Fiscus was pretty responsive. |
X-Ref: usnistgov/SCTK#24 Close: #4155 Co-authored-by: Jan 'Yenda' Trmal <jtrmal@apptek.com>
I am having the same exact error while trying to compile. I also have Apple clang 12.0.0 on MacOS Catalina. Is this issue closed? Any solution? |
should be resolved already. Do you have up-to-date kaldi?
y.
…On Tue, Sep 29, 2020 at 4:04 AM Andrea ***@***.***> wrote:
I am having the same exact error while trying to compile. I also have
Apple clang 12.0.0 on MacOS Catalina. Is this issue closed? Any solution?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#4155 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUKYX7ETJQUEKKL4TQJR4TSIE6CHANCNFSM4OQTU7LA>
.
|
In my recent experience with Catalina, this had nothing to do with Kaldi. It had to do with Xcode being confused about the path to its c++ libraries.
I ran
Xcode -r
to reset the paths and it resolved the issue.
… On Sep 29, 2020, at 4:25 AM, jtrmal ***@***.***> wrote:
should be resolved already. Do you have up-to-date kaldi?
y.
On Tue, Sep 29, 2020 at 4:04 AM Andrea ***@***.***> wrote:
> I am having the same exact error while trying to compile. I also have
> Apple clang 12.0.0 on MacOS Catalina. Is this issue closed? Any solution?
>
> —
> You are receiving this because you were assigned.
> Reply to this email directly, view it on GitHub
> <#4155 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACUKYX7ETJQUEKKL4TQJR4TSIE6CHANCNFSM4OQTU7LA>
> .
>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#4155 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAJL7AD3Q5HGBWLQXOBMTN3SIGKWRANCNFSM4OQTU7LA>.
|
Thank you all for the answers! I tried to reset xcode by following the steps here with no luck. Kaldi is up to date on master branch. This is the error in details:
Currently running MacOS Katalina 10.15.6. The output of gcc -v is:
|
Ok, i Will check tomorrow - maybe they updated compiler since the last time
I checked 😕
…On Tue, Sep 29, 2020 at 18:30 Andrea ***@***.***> wrote:
Thank you all for the answers!
I tried to reset xcode by following the steps here
<https://gist.github.com/maciekish/66b6deaa7bc979d0a16c50784e16d697> with
no luck.
Kaldi is up to date on master branch.
This is the error in details:
extras/check_dependencies.sh extras/check_dependencies.sh: all OK. cd
sph2pipe_v2.5/ && \ cc -o sph2pipe *.c -lm 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 ); ^~~~~~~~~~~~~~~
file_headers.c:579:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int] ConvertToIeeeExtended(num, bytes) ^ file_headers.c:629:1:
warning: non-void function does not return a value [-Wreturn-type] } ^ 3
warnings generated. shorten_x.c:187:29: warning: too many arguments in call
to 'word_get' gbuffer = word_get(fpin); ~~~~~~~~ ^ shorten_x.c:325:22:
error: implicit declaration of function 'pcm2alaw' is invalid in C99
[-Werror,-Wimplicit-function-declaration] *writebufp++ = pcm2alaw(
ulaw2pcm[data0[i]] ); ^ shorten_x.c:381:24: error: implicit declaration of
function 'pcm2ulaw' is invalid in C99
[-Werror,-Wimplicit-function-declaration] *writebufp++ = pcm2ulaw( data0[i]
); ^ shorten_x.c:393:24: error: implicit declaration of function 'pcm2alaw'
is invalid in C99 [-Werror,-Wimplicit-function-declaration] *writebufp++ =
pcm2alaw( data0[i] ); ^ shorten_x.c:435:20: error: implicit declaration of
function 'pcm2ulaw' is invalid in C99
[-Werror,-Wimplicit-function-declaration] *writebufp++ = pcm2ulaw(data0[i]
<< 3); ^ 1 warning and 4 errors generated. sph2pipe.c:191:18: error:
implicit declaration of function 'getopt' is invalid in C99
[-Werror,-Wimplicit-function-declaration] while (( i = getopt( ac, av,
"daupf:c:t:s:h:" )) != EOF ) ^ sph2pipe.c:530:11: warning: assigning to
'unsigned char *' from 'char *' converts between pointers to integer types
with different sign [-Wpointer-sign] cptr = inpbuf; ^ ~~~~~~
sph2pipe.c:545:8: warning: assigning to 'unsigned char *' from 'char *'
converts between pointers to integer types with different sign
[-Wpointer-sign] cptr = inpbuf; ^ ~~~~~~ sph2pipe.c:547:15: warning:
assigning to 'unsigned char *' from 'char *' converts between pointers to
integer types with different sign [-Wpointer-sign] wptr = cptr = outbuf; ^
~~~~~~ sph2pipe.c:547:8: warning: assigning to 'char *' from 'unsigned char
*' converts between pointers to integer types with different sign
[-Wpointer-sign] wptr = cptr = outbuf; ^ ~~~~~~~~~~~~~ sph2pipe.c:561:11:
warning: assigning to 'unsigned char *' from 'char *' converts between
pointers to integer types with different sign [-Wpointer-sign] cptr =
inpbuf; ^ ~~~~~~ sph2pipe.c:568:11: warning: assigning to 'unsigned char *'
from 'char *' converts between pointers to integer types with different
sign [-Wpointer-sign] cptr = inpbuf; ^ ~~~~~~ sph2pipe.c:616:7: warning:
assigning to 'unsigned char *' from 'char *' converts between pointers to
integer types with different sign [-Wpointer-sign] cptr = inpbuf; ^ ~~~~~~
7 warnings and 1 error generated. make: *** [sph2pipe_v2.5/sph2pipe] Error 1
Currently running MacOS Katalina 10.15.6.
The output of gcc -v is:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.2) Target:
x86_64-apple-darwin19.6.0 Thread model: posix InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#4155 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUKYX4SZBI3VVVIJ47LWYLSIIDTZANCNFSM4OQTU7LA>
.
|
I just want to correct that the command I ran to reset xcode was:
xcode-select -r
… On Sep 29, 2020, at 1:06 PM, jtrmal ***@***.***> wrote:
Ok, i Will check tomorrow - maybe they updated compiler since the last time
I checked 😕
On Tue, Sep 29, 2020 at 18:30 Andrea ***@***.***> wrote:
>
>
> Thank you all for the answers!
>
>
> I tried to reset xcode by following the steps here
> <https://gist.github.com/maciekish/66b6deaa7bc979d0a16c50784e16d697> with
> no luck.
>
>
> Kaldi is up to date on master branch.
>
>
> This is the error in details:
>
>
> extras/check_dependencies.sh extras/check_dependencies.sh: all OK. cd
> sph2pipe_v2.5/ && \ cc -o sph2pipe *.c -lm 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 ); ^~~~~~~~~~~~~~~
> file_headers.c:579:1: warning: type specifier missing, defaults to 'int'
> [-Wimplicit-int] ConvertToIeeeExtended(num, bytes) ^ file_headers.c:629:1:
> warning: non-void function does not return a value [-Wreturn-type] } ^ 3
> warnings generated. shorten_x.c:187:29: warning: too many arguments in call
> to 'word_get' gbuffer = word_get(fpin); ~~~~~~~~ ^ shorten_x.c:325:22:
> error: implicit declaration of function 'pcm2alaw' is invalid in C99
> [-Werror,-Wimplicit-function-declaration] *writebufp++ = pcm2alaw(
> ulaw2pcm[data0[i]] ); ^ shorten_x.c:381:24: error: implicit declaration of
> function 'pcm2ulaw' is invalid in C99
> [-Werror,-Wimplicit-function-declaration] *writebufp++ = pcm2ulaw( data0[i]
> ); ^ shorten_x.c:393:24: error: implicit declaration of function 'pcm2alaw'
> is invalid in C99 [-Werror,-Wimplicit-function-declaration] *writebufp++ =
> pcm2alaw( data0[i] ); ^ shorten_x.c:435:20: error: implicit declaration of
> function 'pcm2ulaw' is invalid in C99
> [-Werror,-Wimplicit-function-declaration] *writebufp++ = pcm2ulaw(data0[i]
> << 3); ^ 1 warning and 4 errors generated. sph2pipe.c:191:18: error:
> implicit declaration of function 'getopt' is invalid in C99
> [-Werror,-Wimplicit-function-declaration] while (( i = getopt( ac, av,
> "daupf:c:t:s:h:" )) != EOF ) ^ sph2pipe.c:530:11: warning: assigning to
> 'unsigned char *' from 'char *' converts between pointers to integer types
> with different sign [-Wpointer-sign] cptr = inpbuf; ^ ~~~~~~
> sph2pipe.c:545:8: warning: assigning to 'unsigned char *' from 'char *'
> converts between pointers to integer types with different sign
> [-Wpointer-sign] cptr = inpbuf; ^ ~~~~~~ sph2pipe.c:547:15: warning:
> assigning to 'unsigned char *' from 'char *' converts between pointers to
> integer types with different sign [-Wpointer-sign] wptr = cptr = outbuf; ^
> ~~~~~~ sph2pipe.c:547:8: warning: assigning to 'char *' from 'unsigned char
> *' converts between pointers to integer types with different sign
> [-Wpointer-sign] wptr = cptr = outbuf; ^ ~~~~~~~~~~~~~ sph2pipe.c:561:11:
> warning: assigning to 'unsigned char *' from 'char *' converts between
> pointers to integer types with different sign [-Wpointer-sign] cptr =
> inpbuf; ^ ~~~~~~ sph2pipe.c:568:11: warning: assigning to 'unsigned char *'
> from 'char *' converts between pointers to integer types with different
> sign [-Wpointer-sign] cptr = inpbuf; ^ ~~~~~~ sph2pipe.c:616:7: warning:
> assigning to 'unsigned char *' from 'char *' converts between pointers to
> integer types with different sign [-Wpointer-sign] cptr = inpbuf; ^ ~~~~~~
> 7 warnings and 1 error generated. make: *** [sph2pipe_v2.5/sph2pipe] Error 1
>
>
> Currently running MacOS Katalina 10.15.6.
>
>
> The output of gcc -v is:
>
>
> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
> --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
> Apple clang version 12.0.0 (clang-1200.0.32.2) Target:
> x86_64-apple-darwin19.6.0 Thread model: posix InstalledDir:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>
>
>
>
> —
> You are receiving this because you were assigned.
>
>
> Reply to this email directly, view it on GitHub
> <#4155 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACUKYX4SZBI3VVVIJ47LWYLSIIDTZANCNFSM4OQTU7LA>
> .
>
>
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#4155 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAJL7ADNUX4UNRVDKQYHNPDSIIHXTANCNFSM4OQTU7LA>.
|
could reproduce (even after xcode-select), working on a fix
y.
On Tue, Sep 29, 2020 at 7:54 PM John J Morgan <notifications@github.com>
wrote:
…
I just want to correct that the command I ran to reset xcode was:
xcode-select -r
> On Sep 29, 2020, at 1:06 PM, jtrmal ***@***.***> wrote:
>
>
> Ok, i Will check tomorrow - maybe they updated compiler since the last
time
> I checked 😕
>
> On Tue, Sep 29, 2020 at 18:30 Andrea ***@***.***> wrote:
>
> >
> >
> > Thank you all for the answers!
> >
> >
> > I tried to reset xcode by following the steps here
> > <https://gist.github.com/maciekish/66b6deaa7bc979d0a16c50784e16d697>
with
> > no luck.
> >
> >
> > Kaldi is up to date on master branch.
> >
> >
> > This is the error in details:
> >
> >
> > extras/check_dependencies.sh extras/check_dependencies.sh: all OK. cd
> > sph2pipe_v2.5/ && \ cc -o sph2pipe *.c -lm 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 );
^~~~~~~~~~~~~~~
> > file_headers.c:579:1: warning: type specifier missing, defaults to
'int'
> > [-Wimplicit-int] ConvertToIeeeExtended(num, bytes) ^
file_headers.c:629:1:
> > warning: non-void function does not return a value [-Wreturn-type] } ^
3
> > warnings generated. shorten_x.c:187:29: warning: too many arguments in
call
> > to 'word_get' gbuffer = word_get(fpin); ~~~~~~~~ ^ shorten_x.c:325:22:
> > error: implicit declaration of function 'pcm2alaw' is invalid in C99
> > [-Werror,-Wimplicit-function-declaration] *writebufp++ = pcm2alaw(
> > ulaw2pcm[data0[i]] ); ^ shorten_x.c:381:24: error: implicit
declaration of
> > function 'pcm2ulaw' is invalid in C99
> > [-Werror,-Wimplicit-function-declaration] *writebufp++ = pcm2ulaw(
data0[i]
> > ); ^ shorten_x.c:393:24: error: implicit declaration of function
'pcm2alaw'
> > is invalid in C99 [-Werror,-Wimplicit-function-declaration]
*writebufp++ =
> > pcm2alaw( data0[i] ); ^ shorten_x.c:435:20: error: implicit
declaration of
> > function 'pcm2ulaw' is invalid in C99
> > [-Werror,-Wimplicit-function-declaration] *writebufp++ =
pcm2ulaw(data0[i]
> > << 3); ^ 1 warning and 4 errors generated. sph2pipe.c:191:18: error:
> > implicit declaration of function 'getopt' is invalid in C99
> > [-Werror,-Wimplicit-function-declaration] while (( i = getopt( ac, av,
> > "daupf:c:t:s:h:" )) != EOF ) ^ sph2pipe.c:530:11: warning: assigning to
> > 'unsigned char *' from 'char *' converts between pointers to integer
types
> > with different sign [-Wpointer-sign] cptr = inpbuf; ^ ~~~~~~
> > sph2pipe.c:545:8: warning: assigning to 'unsigned char *' from 'char *'
> > converts between pointers to integer types with different sign
> > [-Wpointer-sign] cptr = inpbuf; ^ ~~~~~~ sph2pipe.c:547:15: warning:
> > assigning to 'unsigned char *' from 'char *' converts between pointers
to
> > integer types with different sign [-Wpointer-sign] wptr = cptr =
outbuf; ^
> > ~~~~~~ sph2pipe.c:547:8: warning: assigning to 'char *' from 'unsigned
char
> > *' converts between pointers to integer types with different sign
> > [-Wpointer-sign] wptr = cptr = outbuf; ^ ~~~~~~~~~~~~~
sph2pipe.c:561:11:
> > warning: assigning to 'unsigned char *' from 'char *' converts between
> > pointers to integer types with different sign [-Wpointer-sign] cptr =
> > inpbuf; ^ ~~~~~~ sph2pipe.c:568:11: warning: assigning to 'unsigned
char *'
> > from 'char *' converts between pointers to integer types with different
> > sign [-Wpointer-sign] cptr = inpbuf; ^ ~~~~~~ sph2pipe.c:616:7:
warning:
> > assigning to 'unsigned char *' from 'char *' converts between pointers
to
> > integer types with different sign [-Wpointer-sign] cptr = inpbuf; ^
~~~~~~
> > 7 warnings and 1 error generated. make: *** [sph2pipe_v2.5/sph2pipe]
Error 1
> >
> >
> > Currently running MacOS Katalina 10.15.6.
> >
> >
> > The output of gcc -v is:
> >
> >
> > Configured with:
--prefix=/Applications/Xcode.app/Contents/Developer/usr
> >
--with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
> > Apple clang version 12.0.0 (clang-1200.0.32.2) Target:
> > x86_64-apple-darwin19.6.0 Thread model: posix InstalledDir:
> >
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> >
> >
> >
> >
> > —
> > You are receiving this because you were assigned.
> >
> >
> > Reply to this email directly, view it on GitHub
> > <#4155 (comment)
>,
> > or unsubscribe
> > <
https://github.com/notifications/unsubscribe-auth/ACUKYX4SZBI3VVVIJ47LWYLSIIDTZANCNFSM4OQTU7LA
>
> > .
> >
> >
> >
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub <
#4155 (comment)>,
or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AAJL7ADNUX4UNRVDKQYHNPDSIIHXTANCNFSM4OQTU7LA
>.
>
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#4155 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUKYX2P6R2VWACELOLS523SIINNXANCNFSM4OQTU7LA>
.
|
Thanks for the quick fix! |
@jtrmal Yenda, here's an option: https://github.com/burrmill/sph2pipe I just put it for safekeeping there, because it's easier to pull. We can preapply your patch and pull code from there. You're an owner, do what you want with it :) |
yeah, I even shortly considered doing the same thing but then it felt like
taking up the responsibility :)
y.
…On Thu, Oct 1, 2020 at 10:26 AM kkm000 ***@***.***> wrote:
@jtrmal <https://github.com/jtrmal> Yenda, here's an option:
https://github.com/burrmill/sph2pipe
I just put it for safekeeping there, because it's easier to pull. We can
preapply your patch and pull code from there. You're an owner, do what you
want with it :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4155 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUKYXY6F6QQ56GTJQ6J3A3SIQ4KPANCNFSM4OQTU7LA>
.
|
Let's just tag the original version. We can always revert to pulling from a tag if anything goes wrong with the patch. Oh, in fact, there is already a tag: burrmill/sph2pipe@7371bed |
As a simple & quick walkaround you can do |
@shadowusr, did you actually see the problem resurface? |
I get the following error when running 'make'
Running
gcc -v
gives meThe text was updated successfully, but these errors were encountered: