Menu

compilation error on cygwin

Help
Addie
2015-07-13
2015-07-13
  • Addie

    Addie - 2015-07-13

    hello, i got compilation error on cygwin as below

    /cygdrive/c/kaldi/tools/openfst/include/fst/fst.h:730: undefined reference to fst::FstHeader::Write(std::ostream&, std::string const&) const' ../hmm/kaldi-hmm.a(hmm-utils.o): In functionZN3fst13CacheBaseImplINS_10CacheStateINS_6ArcTplINS_12LogWeightTplIfEEEEEENS_26DefaultCacheStateAllocatorIS6_EEE2GCEibf':
    /cygdrive/c/kaldi/tools/openfst/include/fst/cache.h:563: undefined reference to FLAGS_v' /cygdrive/c/kaldi/tools/openfst/include/fst/cache.h:593: undefined reference toFLAGS_fst_error_fatal'
    /cygdrive/c/kaldi/tools/openfst/include/fst/cache.h:595: undefined reference to FLAGS_v' ../hmm/kaldi-hmm.a(hmm-utils.o): In functionZN3fst7FstImplINS_10ReverseArcINS_6ArcTplINS_12LogWeightTplIfEEEEEEE14WriteFstHeaderERKNS_3FstIS6_EERSoRKNS_15FstWriteOptionsEiRKSsyPNS_9FstHeaderE':
    /cygdrive/c/kaldi/tools/openfst/include/fst/fst.h:730: undefined reference to fst::FstHeader::Write(std::ostream&, std::string const&) const' ../hmm/kaldi-hmm.a(hmm-utils.o): In functionZN3fst13CacheBaseImplINS_10CacheStateINS_9GallicArcINS_6ArcTplINS_12LogWeightTplIfEEEELNS_10StringTypeE0EEEEENS_26DefaultCacheStateAllocatorIS9_EEE2GCEibf':
    /cygdrive/c/kaldi/tools/openfst/include/fst/cache.h:563: undefined reference to FLAGS_v' /cygdrive/c/kaldi/tools/openfst/include/fst/cache.h:593: undefined reference toFLAGS_fst_error_fatal'
    /cygdrive/c/kaldi/tools/openfst/include/fst/cache.h:595: undefined reference to `FLAGS_v'
    collect2: error: ld returned 1 exit status
    <builtin>: recipe for target 'align-equal' failed
    make[1]: [align-equal] Error 1
    make[1]: Leaving directory '/cygdrive/c/kaldi/src/bin'
    Makefile:137: recipe for target 'bin' failed
    make:
    [bin] Error 2

    previously i have succeeded to install on cygwin but i dont know why it appear this time..

     
    • Daniel Povey

      Daniel Povey - 2015-07-13

      Show us the complete linking line (i.e. the command that the Makefile
      executed). But first make sure you ran "configure" recently. Looks
      like it's not linking against some OpenFST symbols. I hope the
      configure script isn't broken somehow.
      Dan

      On Mon, Jul 13, 2015 at 12:20 PM, Addie badboys4life007@users.sf.net wrote:

      hello, i got compilation error on cygwin as below

      /cygdrive/c/kaldi/tools/openfst/include/fst/fst.h:730: undefined reference
      to fst::FstHeader::Write(std::ostream&, std::string const&) const'
      ../hmm/kaldi-hmm.a(hmm-utils.o): In
      functionZN3fst13CacheBaseImplINS_10CacheStateINS_6ArcTplINS_12LogWeightTplIfEEEEEENS_26DefaultCacheStateAllocatorIS6_EEE2GCEibf':
      /cygdrive/c/kaldi/tools/openfst/include/fst/cache.h:563: undefined reference
      to FLAGS_v' /cygdrive/c/kaldi/tools/openfst/include/fst/cache.h:593:
      undefined reference toFLAGS_fst_error_fatal'
      /cygdrive/c/kaldi/tools/openfst/include/fst/cache.h:595: undefined reference
      to FLAGS_v' ../hmm/kaldi-hmm.a(hmm-utils.o): In
      functionZN3fst7FstImplINS_10ReverseArcINS_6ArcTplINS_12LogWeightTplIfEEEEEEE14WriteFstHeaderERKNS_3FstIS6_EERSoRKNS_15FstWriteOptionsEiRKSsyPNS_9FstHeaderE':
      /cygdrive/c/kaldi/tools/openfst/include/fst/fst.h:730: undefined reference
      to fst::FstHeader::Write(std::ostream&, std::string const&) const'
      ../hmm/kaldi-hmm.a(hmm-utils.o): In
      functionZN3fst13CacheBaseImplINS_10CacheStateINS_9GallicArcINS_6ArcTplINS_12LogWeightTplIfEEEELNS_10StringTypeE0EEEEENS_26DefaultCacheStateAllocatorIS9_EEE2GCEibf':
      /cygdrive/c/kaldi/tools/openfst/include/fst/cache.h:563: undefined reference
      to FLAGS_v' /cygdrive/c/kaldi/tools/openfst/include/fst/cache.h:593:
      undefined reference toFLAGS_fst_error_fatal'
      /cygdrive/c/kaldi/tools/openfst/include/fst/cache.h:595: undefined reference
      to `FLAGS_v'
      collect2: error: ld returned 1 exit status
      <builtin>: recipe for target 'align-equal' failed
      make[1]: [align-equal] Error 1
      make[1]: Leaving directory '/cygdrive/c/kaldi/src/bin'
      Makefile:137: recipe for target 'bin' failed
      make: [bin] Error 2

      previously i have succeeded to install on cygwin but i dont know why it
      appear this time..


      compilation error on cygwin


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/kaldi/discussion/1355348/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/