Skip to content
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

Errors while attempting to 'make' on MacOS Catalina #4078

Closed
ptoche opened this issue May 20, 2020 · 37 comments
Closed

Errors while attempting to 'make' on MacOS Catalina #4078

ptoche opened this issue May 20, 2020 · 37 comments
Assignees
Labels

Comments

@ptoche
Copy link

ptoche commented May 20, 2020

Unable to make, let alone /.configure. Any suggestions? Thanks.

MacOS Catalia 10.15.4. Latest version of Xcode.*

    (base) HOME tools % make
    extras/check_dependencies.sh
    extras/check_dependencies.sh: all OK.
    tar xojf sctk-2.4.10-20151007-1312Z.tar.bz2 || \
    	tar --exclude '*NONE*html' -xvojf sctk-2.4.10-20151007-1312Z.tar.bz2
    rm -rf sctk && ln -s sctk-2.4.10 sctk
    cd sctk; /Applications/Xcode.app/Contents/Developer/usr/bin/make config
    (mkdir -p bin)
    (cd src; make config)
    (cd asclite; make config)
    (cd core; sh config.sh -prefix=`cd ../../..; pwd`)
    checking for g++... g++
    checking for C++ compiler default output file name... a.out
    checking whether the C++ compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking for main in -lm... yes
    checking how to run the C preprocessor... gcc -E
    checking for egrep... grep -E
    checking for ANSI C header files... rm: conftest.dSYM: is a directory
    rm: conftest.dSYM: is a directory
    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 unistd.h... (cached) yes
    checking for string.h... (cached) yes
    checking iostream usability... no
    checking iostream presence... no
    checking for iostream... no
    checking ostream usability... no
    checking ostream presence... no
    checking for ostream... no
    checking fstream usability... no
    checking fstream presence... no
    checking for fstream... no
    checking iomanip usability... no
    checking iomanip presence... no
    checking for iomanip... no
    checking map usability... no
    checking map presence... no
    checking for map... no
    checking stdio.h usability... yes
    checking stdio.h presence... yes
    checking for stdio.h... yes
    checking for stdlib.h... (cached) yes
    checking math.h usability... yes
    checking math.h presence... yes
    checking for math.h... yes
    checking time.h usability... yes
    checking time.h presence... yes
    checking for time.h... yes
    checking list usability... no
    checking list presence... no
    checking for list... no
    checking vector usability... no
    checking vector presence... no
    checking for vector... no
    checking set usability... no
    checking set presence... no
    checking for set... no
    checking assert.h usability... yes
    checking assert.h presence... yes
    checking for assert.h... yes
    checking sstream usability... no
    checking sstream presence... no
    checking for sstream... no
    checking float.h usability... yes
    checking float.h presence... yes
    checking for float.h... yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking for an ANSI C-conforming const... yes
    checking for size_t... yes
    checking for install... /usr/bin/install
    config.sh: creating ./config.status
    config.status: creating makefile
    (cd test; sh config.sh -prefix=`cd ../../..; pwd`)
    checking for g++... g++
    checking for C++ compiler default output file name... a.out
    checking whether the C++ compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking for main in -lm... yes
    checking how to run the C preprocessor... gcc -E
    checking for egrep... 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 for unistd.h... (cached) yes
    checking for an ANSI C-conforming const... yes
    checking for size_t... yes
    checking for install... /usr/bin/install
    config.sh: creating ./config.status
    config.status: creating makefile
    (cd sclite; sh config.sh -prefix=`cd ../..; pwd`)
    loading cache ./config.cache
    checking for gcc... (cached) gcc
    checking whether we are using GNU C... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking whether make sets ${MAKE}... (cached) yes
    checking for -lm... (cached) yes
    checking how to run the C preprocessor... (cached) gcc -E
    checking whether cross-compiling... (cached) no
    checking for ANSI C header files... (cached) yes
    checking for unistd.h... (cached) yes
    checking for working const... (cached) yes
    checking for size_t... (cached) yes
    checking for install... (cached) /usr/bin/install
    Checking installation site
    creating ./config.status
    creating makefile
    (cd rfilter1; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd csrfilt; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd chfilt; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd hamzaNorm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd tanweenFilt; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd acomp; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd def_art; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd hubscr; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd utf_filt; sh config.sh -prefix=`cd ../..; pwd`)
    checking for nsgmls... no
    checking for onsgmls... no
    config.sh: creating ./config.status
    config.status: creating makefile
    (cd rttmSort; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd rttmSmooth; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd rttm2ctm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd spkr2sad; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd mergectm2rttm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd align2html; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd md-eval; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd stm2rttm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd stmValidator; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd rttmValidator; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd ctmValidator; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd slatreport; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    touch sctk/.configured
    cd sctk; \
    	/Applications/Xcode.app/Contents/Developer/usr/bin/make CC="cc" CXX="c++" all && /Applications/Xcode.app/Contents/Developer/usr/bin/make install && /Applications/Xcode.app/Contents/Developer/usr/bin/make doc
    (mkdir -p bin)
    (cd src; make all)
    (cd asclite; make all)
    (cd core; make all)
    cc -c  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MATH_H=1 -DHAVE_TIME_H=1 -DHAVE_ASSERT_H=1 -DHAVE_FLOAT_H=1 -DHAVE_LIMITS_H=1  -I. -g -Os alignedsegment.cpp
    In file included from alignedsegment.cpp:22:
    In file included from ./alignedsegment.h:21:
    In file included from ./stdinc.h:29:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:317:9: error:
          no member named 'signbit' in the global namespace
    using ::signbit;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:318:9: error:
          no member named 'fpclassify' in the global namespace
    using ::fpclassify;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:319:9: error:
          no member named 'isfinite' in the global namespace; did you mean 'finite'?
    using ::isfinite;
          ~~^
    /usr/local/include/math.h:749:12: note: 'finite' declared here
    extern int finite(double)
               ^
    In file included from alignedsegment.cpp:22:
    In file included from ./alignedsegment.h:21:
    In file included from ./stdinc.h:29:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:320:9: error:
          no member named 'isinf' in the global namespace
    using ::isinf;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:321:9: error:
          no member named 'isnan' in the global namespace
    using ::isnan;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:322:9: error:
          no member named 'isnormal' in the global namespace
    using ::isnormal;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:323:7: error:
          no member named 'isgreater' in the global namespace; did you mean
          '::std::greater'?
    using ::isgreater;
          ^~
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:731:29: note:
          '::std::greater' declared here
    struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
                                ^
    In file included from alignedsegment.cpp:22:
    In file included from ./alignedsegment.h:21:
    In file included from ./stdinc.h:29:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:324:7: error:
          no member named 'isgreaterequal' in the global namespace; did you mean
          '::std::greater_equal'?
    using ::isgreaterequal;
          ^~
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:760:29: note:
          '::std::greater_equal' declared here
    struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
                                ^
    In file included from alignedsegment.cpp:22:
    In file included from ./alignedsegment.h:21:
    In file included from ./stdinc.h:29:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9: error:
          no member named 'isless' in the global namespace
    using ::isless;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9: error:
          no member named 'islessequal' in the global namespace
    using ::islessequal;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:327:9: error:
          no member named 'islessgreater' in the global namespace
    using ::islessgreater;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:328:9: error:
          no member named 'isunordered' in the global namespace
    using ::isunordered;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:329:9: error:
          no member named 'isunordered' in the global namespace
    using ::isunordered;
          ~~^
    13 errors generated.
    make[4]: *** [alignedsegment.o] Error 1
    make[3]: *** [all] Error 2
    make[2]: *** [all] Error 2
    make[1]: *** [all] Error 2
    make: *** [sclite_compiled] Error 2
    (base) HOME tools %

    % gcc --version
    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 11.0.3 (clang-1103.0.32.59)
    Target: x86_64-apple-darwin19.4.0
    Thread model: posix
    InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
@ptoche ptoche added the bug label May 20, 2020
@danpovey
Copy link
Contributor

danpovey commented May 20, 2020 via email

@ptoche
Copy link
Author

ptoche commented May 20, 2020

Thanks for your comment Dan. So I just did. I removed Xcode.app altogether and re-installed the Xcode Command Line Tools, namely Xcode_11.4.1.xip, and exact same output came out. Now I'm going to try with the previous version of Xcode...

@ptoche
Copy link
Author

ptoche commented May 20, 2020

No better luck with Command_Line_Tools_for_Xcode_11.5_GM_Seed.dmg. Looks like a problem elsewhere...

@nshmyrev
Copy link
Contributor

cc -c -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MATH_H=1 -DHAVE_TIME_H=1 -DHAVE_ASSERT_H=1 -DHAVE_FLOAT_H=1 -DHAVE_LIMITS_H=1 -I. -g -Os alignedsegment.cpp

Try cc --version instead of gcc --version. Most likely your cc is different from your gcc.

@ptoche
Copy link
Author

ptoche commented May 21, 2020

Thanks Nikolay. I have since cleaned up and reinstalled Xcode Command Line Tools, Python, and a few other things (like removing MacPorts, Homebrew). But to answer your question, for my cleaned-up system I have (may very well have been different when I first posted!):

    cc --version
    Apple clang version 11.0.3 (clang-1103.0.32.62)
    Target: x86_64-apple-darwin19.4.0
    Thread model: posix
    InstalledDir: /Library/Developer/CommandLineTools/usr/bin

    gcc --version
    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 11.0.3 (clang-1103.0.32.62)
    Target: x86_64-apple-darwin19.4.0
    Thread model: posix
    InstalledDir: /Library/Developer/CommandLineTools/usr/bin

The current problem I have is:

    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-05-21 10:31:29--  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... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 329832 (322K) [application/x-gzip]
    sph2pipe_v2.5.tar.gz: Permission denied

    Cannot write to ‘sph2pipe_v2.5.tar.gz’ (Success).
    --2020-05-21 10:31:29--  https://sourceforge.net/projects/kaldi/files/sph2pipe_v2.5.tar.gz
    Resolving sourceforge.net (sourceforge.net)... 216.105.38.13
    Connecting to sourceforge.net (sourceforge.net)|216.105.38.13|:443... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: https://sourceforge.net/projects/kaldi/files/sph2pipe_v2.5.tar.gz/ [following]
    --2020-05-21 10:31:30--  https://sourceforge.net/projects/kaldi/files/sph2pipe_v2.5.tar.gz/
    Connecting to sourceforge.net (sourceforge.net)|216.105.38.13|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://sourceforge.net/projects/kaldi/files/sph2pipe_v2.5.tar.gz/download [following]
    --2020-05-21 10:31:30--  https://sourceforge.net/projects/kaldi/files/sph2pipe_v2.5.tar.gz/download
    Connecting to sourceforge.net (sourceforge.net)|216.105.38.13|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://downloads.sourceforge.net/project/kaldi/sph2pipe_v2.5.tar.gz?r=&ts=1590082290&use_mirror=managedway [following]
    --2020-05-21 10:31:30--  https://downloads.sourceforge.net/project/kaldi/sph2pipe_v2.5.tar.gz?r=&ts=1590082290&use_mirror=managedway
    Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.105.38.13
    Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.105.38.13|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://managedway.dl.sourceforge.net/project/kaldi/sph2pipe_v2.5.tar.gz [following]
    --2020-05-21 10:31:30--  https://managedway.dl.sourceforge.net/project/kaldi/sph2pipe_v2.5.tar.gz
    Resolving managedway.dl.sourceforge.net (managedway.dl.sourceforge.net)... 208.79.213.6
    Connecting to managedway.dl.sourceforge.net (managedway.dl.sourceforge.net)|208.79.213.6|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 329832 (322K) [application/x-gzip]
    sph2pipe_v2.5.tar.gz: Permission denied

    Cannot write to ‘sph2pipe_v2.5.tar.gz’ (Success).
    make: *** [sph2pipe_v2.5.tar.gz] Error 3

Looked like a permission problem, so I ran sudo make instead. I hope that wasn't a disaster. The resulting error message is huge, here is the edited bottom part:

    creating makefile
    (cd rfilter1; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd csrfilt; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd chfilt; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd hamzaNorm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd tanweenFilt; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd acomp; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd def_art; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd hubscr; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd utf_filt; sh config.sh -prefix=`cd ../..; pwd`)
    checking for nsgmls... no
    checking for onsgmls... no
    config.sh: creating ./config.status
    config.status: creating makefile
    (cd rttmSort; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd rttmSmooth; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd rttm2ctm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd spkr2sad; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd mergectm2rttm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd align2html; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd md-eval; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd stm2rttm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd stmValidator; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd rttmValidator; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd ctmValidator; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    (cd slatreport; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
    touch sctk/.configured
    cd sctk; \
    	/Library/Developer/CommandLineTools/usr/bin/make CC="cc" CXX="c++" all && /Library/Developer/CommandLineTools/usr/bin/make install && /Library/Developer/CommandLineTools/usr/bin/make doc
    (mkdir -p bin)
    (cd src; make all)
    (cd asclite; make all)
    (cd core; make all)
    cc -c  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MATH_H=1 -DHAVE_TIME_H=1 -DHAVE_ASSERT_H=1 -DHAVE_FLOAT_H=1 -DHAVE_LIMITS_H=1  -I. -g -Os alignedsegment.cpp
    In file included from alignedsegment.cpp:22:
    In file included from ./alignedsegment.h:21:
    In file included from ./stdinc.h:29:
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:317:9: error:
          no member named 'signbit' in the global namespace
    using ::signbit;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:318:9: error:
          no member named 'fpclassify' in the global namespace
    using ::fpclassify;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:319:9: error:
          no member named 'isfinite' in the global namespace; did you mean 'finite'?
    using ::isfinite;
          ~~^
    /usr/local/include/math.h:749:12: note: 'finite' declared here
    extern int finite(double)
               ^
    In file included from alignedsegment.cpp:22:
    In file included from ./alignedsegment.h:21:
    In file included from ./stdinc.h:29:
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:320:9: error:
          no member named 'isinf' in the global namespace
    using ::isinf;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:321:9: error:
          no member named 'isnan' in the global namespace
    using ::isnan;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:322:9: error:
          no member named 'isnormal' in the global namespace
    using ::isnormal;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:323:7: error:
          no member named 'isgreater' in the global namespace; did you mean
          '::std::greater'?
    using ::isgreater;
          ^~
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/functional:731:29: note:
          '::std::greater' declared here
    struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
                                ^
    In file included from alignedsegment.cpp:22:
    In file included from ./alignedsegment.h:21:
    In file included from ./stdinc.h:29:
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:324:7: error:
          no member named 'isgreaterequal' in the global namespace; did you mean
          '::std::greater_equal'?
    using ::isgreaterequal;
          ^~
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/functional:760:29: note:
          '::std::greater_equal' declared here
    struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
                                ^
    In file included from alignedsegment.cpp:22:
    In file included from ./alignedsegment.h:21:
    In file included from ./stdinc.h:29:
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:325:9: error:
          no member named 'isless' in the global namespace
    using ::isless;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:326:9: error:
          no member named 'islessequal' in the global namespace
    using ::islessequal;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:327:9: error:
          no member named 'islessgreater' in the global namespace
    using ::islessgreater;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:328:9: error:
          no member named 'isunordered' in the global namespace
    using ::isunordered;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:329:9: error:
          no member named 'isunordered' in the global namespace
    using ::isunordered;
          ~~^
    13 errors generated.
    make[4]: *** [alignedsegment.o] Error 1
    make[3]: *** [all] Error 2
    make[2]: *** [all] Error 2
    make[1]: *** [all] Error 2
    make: *** [sclite_compiled] Error 2

@ptoche
Copy link
Author

ptoche commented May 21, 2020

After the cleanup I don't seem to have so many versions of gcc available. Only one gets listed in /usr/bin/gcc. Also, only one g++ in /usr/bin/g++.

Oh and I removed Xcode.app and only have the Xcode Command Line Tools now.

Not sure if these are supposed to be the same version: com.apple.pkg.CLTools_Executables has version 11.5, while /Library/Developer/CommandLineTools/usr/bin has version 11.0.3.

    pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
    package-id: com.apple.pkg.CLTools_Executables
    version: 11.5.0.0.1.1588476445
    volume: /
    location: /
    install-time: 1589980936
    groups: com.apple.FindSystemFiles.pkg-group

    gcc --version
    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 11.0.3 (clang-1103.0.32.62)
    Target: x86_64-apple-darwin19.4.0
    Thread model: posix
    InstalledDir: /Library/Developer/CommandLineTools/usr/bin

A vaguely similar error message was reported here:

https://stackoverflow.com/questions/58628377/catalina-c-using-cmath-headers-yield-error-no-member-named-signbit-in-th

@danpovey
Copy link
Contributor

danpovey commented May 22, 2020 via email

@ptoche
Copy link
Author

ptoche commented May 22, 2020

Thanks Dan. I only sudoed out of desperation after everything else had failed. I am now going to format the hard drive and do a clean install of Catalina. Let's hope things get better after that. :-)

@ptoche ptoche closed this as completed May 27, 2020
@Sruthik22
Copy link

I have the same exact issue, did you find a solution?

@ptoche
Copy link
Author

ptoche commented Jun 18, 2020

@Sruthik22 , I haven't tried! I managed to install vosk-api and used that. However, one thing I have done is to create a Python environment for all "audio" related things and I only install inside that environment, so that if anything breaks, I remove the environment and start again. I no longer have my environment in the PYTHONPATH permanently, instead every time I work in a particular environment, I set the PYTHONPATH for that particular session only. I have added things like this to my .zshrc file:

# Environment sp (speech-recognition environment)
# Alias to add Python in current session of env sp and set a prompt:
conda_sp () {
    export PATH="$HOME/miniconda3/envs/sp/bin:$PATH";
    export PS1="(sp)"$PS1;
}

and I run conda_sp() before getting to work.

That, I think, helps making sure that if I'm in environment sp, the programs don't look for libraries elsewhere on my system.

@megazone87
Copy link
Contributor

This error seems to happen when your Xcode toolchain is corrupted. I find your got result with pkgutil --pkg-info=com.apple.pkg.CLTools_Executables, while this cmd has no response for me (you can see my macOS is latest from below). But I get CLT version by brew config:

$ brew config
...
Clang: 11.0 build 1103
Git: 2.24.1 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
Java: 1.8.0_66
macOS: 10.15.5-x86_64
CLT: 1103.0.32.62
Xcode: 11.5

Is it a different CLT version with you? As I have made sure, my version is up-to-date by:

$ softwareupdate -i -a
Software Update Tool

Finding available software
No updates are available.

I suggest you reinstall Xcode or try run softwareupdate -i -a to update all from Apple. And check if you get below result:

$ gcc --version
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 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

@Sruthik22
Copy link

When I run brew config the output is:

$ brew config
HOMEBREW_VERSION: 2.4.0-47-g6b36830
ORIGIN: https://github.com/Homebrew/brew
HEAD: 6b368304e30d82e22fa92a5121b163e86a6a6cce
Last commit: 6 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 8dc2764d7fe8142cca5d5f82167e5723fc2cff51
Core tap last commit: 6 days ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.4TpHWybD6g/org.macosforge.xquartz:0
HOMEBREW_MAKE_JOBS: 8
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
Clang: 11.0 build 1103
Git: 2.24.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
Java: 11.0.1
macOS: 10.15.5-x86_64
CLT: 11.5.0.0.1.1588476445
Xcode: N/A
XQuartz: 2.7.11 => /opt/X11

$ softwareupdate -i -a
Software Update Tool

Finding available software
No updates are available.

$ gcc --version
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 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

@megazone87
Copy link
Contributor

megazone87 commented Jun 22, 2020

@Sruthik22 Delete the present CLT, by sudo rm -rf /Library/Developer/CommandLineTools. And Install Xcode from App Store. Install CLT again through xcode-select --install.

@Sruthik22
Copy link

Ok, I did both of those things. I got the same result from running make though.

@megazone87
Copy link
Contributor

Could you provide the output of


brew config
echo $CC
type -a gcc
xcode-select --reset && xcrun --show-sdk-path

And the error log pls.

@megazone87 megazone87 reopened this Jun 22, 2020
@megazone87
Copy link
Contributor

And I may reply later as it's late here.

@Sruthik22
Copy link

Sruthik22 commented Jun 22, 2020

$ brew config
HOMEBREW_VERSION: 2.4.0-47-g6b36830
ORIGIN: https://github.com/Homebrew/brew
HEAD: 6b368304e30d82e22fa92a5121b163e86a6a6cce
Last commit: 6 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 8dc2764d7fe8142cca5d5f82167e5723fc2cff51
Core tap last commit: 6 days ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.4TpHWybD6g/org.macosforge.xquartz:0
HOMEBREW_MAKE_JOBS: 8
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
Clang: 11.0 build 1103
Git: 2.24.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
Java: 11.0.1
macOS: 10.15.5-x86_64
CLT: 11.5.0.0.1.1588476445
Xcode: 11.5
XQuartz: 2.7.11 => /opt/X11

$ echo $CC

$ type -a gcc
gcc is /usr/bin/gcc

$ sudo xcode-select --reset && xcrun --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk

echo $CC did not output anything.

@Sruthik22
Copy link

Error Log:

make
extras/check_dependencies.sh
extras/check_dependencies.sh: all OK.
tar xojf sctk-2.4.10-20151007-1312Z.tar.bz2 || \
	tar --exclude '*NONE*html' -xvojf sctk-2.4.10-20151007-1312Z.tar.bz2
rm -rf sctk && ln -s sctk-2.4.10 sctk
cd sctk; /Applications/Xcode.app/Contents/Developer/usr/bin/make config
(mkdir -p bin)
(cd src; make config)
(cd asclite; make config)
(cd core; sh config.sh -prefix=`cd ../../..; pwd`)
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for main in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
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 unistd.h... (cached) yes
checking for string.h... (cached) yes
checking iostream usability... no
checking iostream presence... no
checking for iostream... no
checking ostream usability... no
checking ostream presence... no
checking for ostream... no
checking fstream usability... no
checking fstream presence... no
checking for fstream... no
checking iomanip usability... no
checking iomanip presence... no
checking for iomanip... no
checking map usability... no
checking map presence... no
checking for map... no
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking list usability... no
checking list presence... no
checking for list... no
checking vector usability... no
checking vector presence... no
checking for vector... no
checking set usability... no
checking set presence... no
checking for set... no
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking sstream usability... no
checking sstream presence... no
checking for sstream... no
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for install... /usr/bin/install
config.sh: creating ./config.status
config.status: creating makefile
(cd test; sh config.sh -prefix=`cd ../../..; pwd`)
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for main in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... 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 for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for install... /usr/bin/install
config.sh: creating ./config.status
config.status: creating makefile
(cd sclite; sh config.sh -prefix=`cd ../..; pwd`)
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for -lm... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking whether cross-compiling... (cached) no
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking for working const... (cached) yes
checking for size_t... (cached) yes
checking for install... (cached) /usr/bin/install
Checking installation site
creating ./config.status
creating makefile
(cd rfilter1; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
(cd csrfilt; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd chfilt; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd hamzaNorm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd tanweenFilt; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd acomp; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd def_art; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd hubscr; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd utf_filt; sh config.sh -prefix=`cd ../..; pwd`)
checking for nsgmls... no
checking for onsgmls... no
config.sh: creating ./config.status
config.status: creating makefile
(cd rttmSort; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd rttmSmooth; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd rttm2ctm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd spkr2sad; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd mergectm2rttm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd align2html; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd md-eval; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd stm2rttm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
(cd stmValidator; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
(cd rttmValidator; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
(cd ctmValidator; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
(cd slatreport; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
touch sctk/.configured
cd sctk; \
	/Applications/Xcode.app/Contents/Developer/usr/bin/make CC="cc" CXX="c++" all && /Applications/Xcode.app/Contents/Developer/usr/bin/make install && /Applications/Xcode.app/Contents/Developer/usr/bin/make doc
(mkdir -p bin)
(cd src; make all)
(cd asclite; make all)
(cd core; make all)
cc -c  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MATH_H=1 -DHAVE_TIME_H=1 -DHAVE_ASSERT_H=1 -DHAVE_FLOAT_H=1 -DHAVE_LIMITS_H=1  -I. -g -Os alignedsegment.cpp
In file included from alignedsegment.cpp:22:
In file included from ./alignedsegment.h:21:
In file included from ./stdinc.h:29:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:317:9: error: 
      no member named 'signbit' in the global namespace
using ::signbit;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:318:9: error: 
      no member named 'fpclassify' in the global namespace
using ::fpclassify;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:319:9: error: 
      no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
      ~~^
/usr/local/include/math.h:749:12: note: 'finite' declared here
extern int finite(double)
           ^
In file included from alignedsegment.cpp:22:
In file included from ./alignedsegment.h:21:
In file included from ./stdinc.h:29:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:320:9: error: 
      no member named 'isinf' in the global namespace
using ::isinf;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:321:9: error: 
      no member named 'isnan' in the global namespace
using ::isnan;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:322:9: error: 
      no member named 'isnormal' in the global namespace
using ::isnormal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:323:7: error: 
      no member named 'isgreater' in the global namespace; did you mean
      '::std::greater'?
using ::isgreater;
      ^~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:731:29: note: 
      '::std::greater' declared here
struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
                            ^
In file included from alignedsegment.cpp:22:
In file included from ./alignedsegment.h:21:
In file included from ./stdinc.h:29:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:324:7: error: 
      no member named 'isgreaterequal' in the global namespace; did you mean
      '::std::greater_equal'?
using ::isgreaterequal;
      ^~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:760:29: note: 
      '::std::greater_equal' declared here
struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
                            ^
In file included from alignedsegment.cpp:22:
In file included from ./alignedsegment.h:21:
In file included from ./stdinc.h:29:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9: error: 
      no member named 'isless' in the global namespace
using ::isless;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9: error: 
      no member named 'islessequal' in the global namespace
using ::islessequal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:327:9: error: 
      no member named 'islessgreater' in the global namespace
using ::islessgreater;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:328:9: error: 
      no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:329:9: error: 
      no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
13 errors generated.
make[4]: *** [alignedsegment.o] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [sclite_compiled] Error 2

@kkm000 kkm000 added the in progress Issue has been taken and is being worked on label Jun 25, 2020
@megazone87
Copy link
Contributor

Hi @Sruthik22, the above log shows the gcc was cached. Have you tried make distclean, then make again. And please show me the new log.

@Sruthik22
Copy link

Sruthik22 commented Jun 25, 2020

I ran make distclean and this was my output:

$ make distclean
rm -rf openfst-1.6.7/
rm -rf sctk-2.4.10/
rm -rf sctk
rm -rf sph2pipe_v2.5/
rm -rf sph2pipe_v2.5.tar.gz
rm -rf sctk-2.4.10-20151007-1312Z.tar.bz2
rm -rf openfst-1.6.7.tar.gz
rm -f openfst
rm -rf libsndfile-1.0.25{,.tar.gz} BeamformIt-3.51{,.tgz}
rm -f cub-1.8.0.zip
rm -rf cub-1.8.0
rm -f cub

Then I ran 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-06-25 13:19:46--  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... connected.
ERROR: cannot verify www.openslr.org's certificate, issued by 'CN=Let's Encrypt Authority X3,O=Let's Encrypt,C=US':
  Unable to locally verify the issuer's authority.
To connect to www.openslr.org insecurely, use '--no-check-certificate'.
--2020-06-25 13:19:46--  https://sourceforge.net/projects/kaldi/files/sph2pipe_v2.5.tar.gz
Resolving sourceforge.net (sourceforge.net)... 216.105.38.13
Connecting to sourceforge.net (sourceforge.net)|216.105.38.13|:443... connected.
ERROR: cannot verify sourceforge.net's certificate, issued by 'CN=Let's Encrypt Authority X3,O=Let's Encrypt,C=US':
  Unable to locally verify the issuer's authority.
To connect to sourceforge.net insecurely, use '--no-check-certificate'.
make: *** [sph2pipe_v2.5.tar.gz] Error 5

I had this error previously, but I just bypassed it with the --no-check-certificate command. How would I do this properly?

@megazone87
Copy link
Contributor

I had this error previously, but I just bypassed it with the --no-check-certificate command. How would I do this properly?

It's fine to workaround as you did. It's unrelated with this issue. You cloud try to upgrade wget or openssl with brew.

@Sruthik22
Copy link

Yes, upgrading wget did the trick. I got the same error as before though:

extras/check_dependencies.sh
extras/check_dependencies.sh: all OK.
tar xojf sctk-2.4.10-20151007-1312Z.tar.bz2 || \
	tar --exclude '*NONE*html' -xvojf sctk-2.4.10-20151007-1312Z.tar.bz2
rm -rf sctk && ln -s sctk-2.4.10 sctk
cd sctk; /Applications/Xcode.app/Contents/Developer/usr/bin/make config
(mkdir -p bin)
(cd src; make config)
(cd asclite; make config)
(cd core; sh config.sh -prefix=`cd ../../..; pwd`)
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for main in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
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 unistd.h... (cached) yes
checking for string.h... (cached) yes
checking iostream usability... no
checking iostream presence... no
checking for iostream... no
checking ostream usability... no
checking ostream presence... no
checking for ostream... no
checking fstream usability... no
checking fstream presence... no
checking for fstream... no
checking iomanip usability... no
checking iomanip presence... no
checking for iomanip... no
checking map usability... no
checking map presence... no
checking for map... no
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking list usability... no
checking list presence... no
checking for list... no
checking vector usability... no
checking vector presence... no
checking for vector... no
checking set usability... no
checking set presence... no
checking for set... no
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking sstream usability... no
checking sstream presence... no
checking for sstream... no
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for install... /usr/bin/install
config.sh: creating ./config.status
config.status: creating makefile
(cd test; sh config.sh -prefix=`cd ../../..; pwd`)
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for main in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... 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 for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for install... /usr/bin/install
config.sh: creating ./config.status
config.status: creating makefile
(cd sclite; sh config.sh -prefix=`cd ../..; pwd`)
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for -lm... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking whether cross-compiling... (cached) no
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking for working const... (cached) yes
checking for size_t... (cached) yes
checking for install... (cached) /usr/bin/install
Checking installation site
creating ./config.status
creating makefile
(cd rfilter1; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
(cd csrfilt; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd chfilt; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd hamzaNorm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd tanweenFilt; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd acomp; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd def_art; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd hubscr; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd utf_filt; sh config.sh -prefix=`cd ../..; pwd`)
checking for nsgmls... no
checking for onsgmls... no
config.sh: creating ./config.status
config.status: creating makefile
(cd rttmSort; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd rttmSmooth; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd rttm2ctm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd spkr2sad; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd mergectm2rttm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd align2html; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd md-eval; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)	
(cd stm2rttm; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
(cd stmValidator; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
(cd rttmValidator; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
(cd ctmValidator; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
(cd slatreport; sed -e "s:PREFIX=.*:PREFIX=`cd ../..; pwd`:" < makefile.in > makefile)
touch sctk/.configured
cd sctk; \
	/Applications/Xcode.app/Contents/Developer/usr/bin/make CC="cc" CXX="c++" all && /Applications/Xcode.app/Contents/Developer/usr/bin/make install && /Applications/Xcode.app/Contents/Developer/usr/bin/make doc
(mkdir -p bin)
(cd src; make all)
(cd asclite; make all)
(cd core; make all)
cc -c  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MATH_H=1 -DHAVE_TIME_H=1 -DHAVE_ASSERT_H=1 -DHAVE_FLOAT_H=1 -DHAVE_LIMITS_H=1  -I. -g -Os alignedsegment.cpp
In file included from alignedsegment.cpp:22:
In file included from ./alignedsegment.h:21:
In file included from ./stdinc.h:29:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:317:9: error: 
      no member named 'signbit' in the global namespace
using ::signbit;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:318:9: error: 
      no member named 'fpclassify' in the global namespace
using ::fpclassify;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:319:9: error: 
      no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
      ~~^
/usr/local/include/math.h:749:12: note: 'finite' declared here
extern int finite(double)
           ^
In file included from alignedsegment.cpp:22:
In file included from ./alignedsegment.h:21:
In file included from ./stdinc.h:29:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:320:9: error: 
      no member named 'isinf' in the global namespace
using ::isinf;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:321:9: error: 
      no member named 'isnan' in the global namespace
using ::isnan;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:322:9: error: 
      no member named 'isnormal' in the global namespace
using ::isnormal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:323:7: error: 
      no member named 'isgreater' in the global namespace; did you mean
      '::std::greater'?
using ::isgreater;
      ^~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:731:29: note: 
      '::std::greater' declared here
struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
                            ^
In file included from alignedsegment.cpp:22:
In file included from ./alignedsegment.h:21:
In file included from ./stdinc.h:29:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:324:7: error: 
      no member named 'isgreaterequal' in the global namespace; did you mean
      '::std::greater_equal'?
using ::isgreaterequal;
      ^~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:760:29: note: 
      '::std::greater_equal' declared here
struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
                            ^
In file included from alignedsegment.cpp:22:
In file included from ./alignedsegment.h:21:
In file included from ./stdinc.h:29:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9: error: 
      no member named 'isless' in the global namespace
using ::isless;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9: error: 
      no member named 'islessequal' in the global namespace
using ::islessequal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:327:9: error: 
      no member named 'islessgreater' in the global namespace
using ::islessgreater;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:328:9: error: 
      no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:329:9: error: 
      no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
13 errors generated.
make[4]: *** [alignedsegment.o] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [sclite_compiled] Error 2```

@danpovey
Copy link
Contributor

danpovey commented Jun 26, 2020 via email

@kkm000
Copy link
Contributor

kkm000 commented Jul 15, 2020

Out of sheer desperation, try moving #include <cmath> to be the first include in asclite/core/stdinc.h. Looks like this is a very common issue:
https://developer.apple.com/forums/thread/110594
https://root-forum.cern.ch/t/root-catalina-bug-report/36693

As far as I could understand (and I've only seen Macs in coffee shops, back when there were coffee shops), the problem happens if <math.h> gets included before <cmath>. Nothing like that in the sclite source code (I am looking at the latest here, though: https://github.com/usnistgov/SCTK/tree/master/src/asclite/core), but it's possible that the toolchain headers messed it up.

And also try the latest version from that repo, too. Maybe they fixed it? They have no tags, but the current code is v2.4.11.

@kkm000 kkm000 added the waiting-for-feedback Reporter's feedback has been requested label Jul 15, 2020
@johnjosephmorgan
Copy link
Contributor

Was any progress made on compiling Kaldi on Catalina? I am not getting passed sph2pipe.

@danpovey
Copy link
Contributor

danpovey commented Sep 19, 2020 via email

@johnjosephmorgan
Copy link
Contributor

Apple clang version 12.0.0 (clang-1200.0.32.2)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

@danpovey
Copy link
Contributor

danpovey commented Sep 19, 2020 via email

@nshmyrev
Copy link
Contributor

Hi. How about to move sph2pipe to extras ;) It is not relevant for most of the popular recipes (wsj/fisher/swbd) and those who have the access to the corresponding data will be able to install sph2pipe anyway.

librispeech uses flac, others can do with sox/ffmpeg.

@johnjosephmorgan
Copy link
Contributor

I think my xcode tools were confused. I ran xcode-select -r to reset the tools path. Then I uncommented the clang lines in the Makefile. I ran clang in the sph2pipe directory. Then I ran make again and the build completed.

@johnjosephmorgan
Copy link
Contributor

My build succeeded. Sorry, but it looks like this was all just a false alarm. xcode-select -r fixed my tools. I did have to uncomment the CXX and CC lines in the Makefile.

@danpovey
Copy link
Contributor

danpovey commented Sep 20, 2020 via email

@kkm000
Copy link
Contributor

kkm000 commented Nov 22, 2020

@nshmyrev, @danpovey, moving sph2pipe to extras it's kinda... interesting. steps/cleanup/split_long_utterance.sh requires sph2pipe unconditionally, and that is used in turn in steps/cleanup/make_segmentation_data_dir.sh. Both 'steps' scripts used only in wsj/s5, but who knows how many uncommitted recipes may use it.

There were a few slightly modified version floating around, and during that downtime event on your server that wget ... || wget thing downloaded a slightly different one, and the patch applied in the tools/Makefile failed. Patch(1) tried to apply the patch in reverse, thinking it was already applied, but when I tried to use the "forward only" flag to patch, it failed too. I recently tweaked the tools/Makefile in aea6442 to use one from https://github.com/burrmill/sph2pipe/, for which I once wrote a Makefile (burrmill/sph2pipe@7371bed). I'll apply the former patch to it right away.

And there is no later version of sph2pipe. The only version that LDC distributes is 2.5. I found some mentions of 2.1, but no code of older (or newer) versions.

kkm000 referenced this issue Nov 22, 2020
* Fork off tools/.gitignore from the root file.
* Make gitignores sensible by using wildcards. Listing every
  possible versioned package name had been unmaintainable.
* Make all extra scripts executable, and trim EOL/EOF whitespace.
@kkm000
Copy link
Contributor

kkm000 commented Sep 28, 2021

Fixed in #4337

@kkm000 kkm000 closed this as completed Sep 28, 2021
@kkm000 kkm000 removed in progress Issue has been taken and is being worked on waiting-for-feedback Reporter's feedback has been requested labels Sep 28, 2021
@SofijaErkin
Copy link

@ptoche

have you try "sudo make" ?

@jtrmal
Copy link
Contributor

jtrmal commented Dec 9, 2021 via email

@jtrmal
Copy link
Contributor

jtrmal commented Dec 9, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants