Menu

error: too many arguments to function ‘path2basename’

Help
2017-11-10
2017-11-25
  • Dino The Dinosaur

    Hello!
    I have some troubles with re-installing sphinxbase and installing sphinx3 to get that sphinx3_align binary: when I compile sphinx3 I get the following message at the end of the log

    corpus.c: In function ‘ctl_read_entry’:
    corpus.c:421:9: error: too many arguments to function ‘path2basename’
             path2basename(uttfile, base);
             ^
    In file included from corpus.c:99:0:
    /usr/local/include/sphinxbase/filename.h:83:13: note: declared here
     const char *path2basename(const char *path);
                 ^
    corpus.c: In function ‘ctl_process’:
    corpus.c:551:11: warning: variable ‘k’ set but not used [-Wunused-but-set-variable]
         kb_t *k;
               ^
    corpus.c: In function ‘ctl_process_utt’:
    corpus.c:699:5: error: too many arguments to function ‘path2basename’
         path2basename(uttfile, base);
         ^
    In file included from corpus.c:99:0:
    /usr/local/include/sphinxbase/filename.h:83:13: note: declared here
     const char *path2basename(const char *path);
                 ^
    In file included from corpus.c:101:0:
    ../../../include/corpus.h:141:49: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
     #define utt_res_set_uttfile(ur,name) ur->uttfile=name
                                                     ^
    corpus.c:729:13: note: in expansion of macro ‘utt_res_set_uttfile’
                 utt_res_set_uttfile(ur, uttfile);
                 ^
    Makefile:391: ошибка выполнения рецепта для цели «corpus.lo»
    make[3]: *** [corpus.lo] Ошибка 1
    make[3]: выход из каталога «/home/dino/sphinx3/sphinx3/src/libs3decoder/libcommon»
    Makefile:476: ошибка выполнения рецепта для цели «all-recursive»
    make[2]: *** [all-recursive] Ошибка 1
    make[2]: выход из каталога «/home/dino/sphinx3/sphinx3/src/libs3decoder»
    Makefile:358: ошибка выполнения рецепта для цели «all-recursive»
    make[1]: *** [all-recursive] Ошибка 1
    make[1]: выход из каталога «/home/dino/sphinx3/sphinx3/src»
    Makefile:481: ошибка выполнения рецепта для цели «all-recursive»
    make: *** [all-recursive] Ошибка 1
    

    I tried deleting all of the sphinx-related files, compiling other versions of sphinxbase and sphinx3, but it doesn't seem to work, unfortunately. I'm absolutely out of ideas how I could fix this. Could you please give me any hints how this could be solved?

    Thanks in advance,

    Olya

     
    • Nickolay V. Shmyrev

       
      • Dino The Dinosaur

        I used the versions of sphinxbase and sphinx3 from the directory and it worked, thank you! :)

         
      • Dino The Dinosaur

        Hello again, Nickolay!

        Now, that I checked the results of the compilation it seems that not all components have compiled properly :(

        PASS: test-decode-simple.sh
        PASS: test-decode-raw.sh
        PASS: test-decode.sh
        PASS: test-decode-clm.sh
        PASS: test-decode-mllr.sh
        PASS: test-decode-s3cont.sh
        FAIL: test-decode-mode1.sh
        FAIL: test-decode-mode2.sh
        PASS: test-decode-s2semi.sh
        PASS: test-decode-lts.sh
        PASS: test-decode-mode3.sh
        PASS: test-decode-2ndstage.sh
        PASS: test-decode-mode1368.sh
        PASS: test-decode-mode1369.sh
        PASS: test-lm_convert-and-decode.sh
        FAIL: test-dp.sh
        FAIL: test-align.sh
        FAIL: test-align-mllr.sh
        FAIL: test-lattice-htk.sh
        FAIL: test-livepretend.sh
        FAIL: test-livepretend-clm.sh
        PASS: test-livepretend-mllr.sh
        PASS: test-livepretend-fsg.sh
        FAIL: test-lm_convert.sh
        FAIL: test-astar.sh
        FAIL: test-astar-clm.sh
        PASS: test-dag.sh
        PASS: test-dag-clm.sh
        FAIL: test-gausubvq.sh
        FAIL: test-ep.sh
        FAIL: test-conf.sh
        PASS: print-summary.sh
        ============================================================================
        Testsuite summary for sphinx3 0.7
        ============================================================================
        # TOTAL: 32
        # PASS:  18
        # SKIP:  0
        # XFAIL: 0
        # FAIL:  14
        # XPASS: 0
        # ERROR: 0
        ============================================================================
        See src/tests/regression/test-suite.log
        ============================================================================
        

        I've seen some similar cases, but I have the latest version so it shouldn't have been a problem... Could you please investigate the issue? The logs are in the attachements.
        It seems from the logs that the testing scripts were not generated. Were they supposed to be generated during the compilation?
        When I try to install the package, it doesn't seem to run properly, probably due to incorrect compilation.

         
        • Nickolay V. Shmyrev

          Those errors are expected, you can ignore them.

           
          • Dino The Dinosaur

            Oh, okay, now I see that I haven't checked the installed binaries properly :)
            Thank you for your help!

             

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.