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

error when compiling "Source/Readers/Kaldi2Reader/HTKMLFReader.cpp" #19

Closed
mravanelli opened this issue Jan 25, 2016 · 7 comments
Closed

Comments

@mravanelli
Copy link

Hi,
I recently download the source code of CNTK and I'm trying to compile it on Ubuntu (Ubuntu 14.04.3 LTS) with the Kaldi plug-in. I have followed the installation instructions in README.md and /Source/Readers/KaldiReaderReadme , but unfortunately I encountered an error when compiling "Source/Readers/Kaldi2Reader/HTKMLFReader.cpp" (see below)

Command:

mpic++ -c Source/Readers/Kaldi2Reader/HTKMLFReader.cpp -o /home/mirco/cntk_source/build/release/.build/Source/Readers/Kaldi2Reader/HTKMLFReader.o -D_POSIX_SOURCE -D_XOPEN_SOURCE=600 -D__USE_XOPEN2K -DUSE_ACML -DKALDI_DOUBLEPRECISION=0 -DHAVE_POSIX_MEMALIGN -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_ATLAS -DHAVE_OPENFST_GE_10400 -DNDEBUG -msse3 -std=c++0x -std=c++11 -fopenmp -fpermissive -fPIC -Werror -fcheck-new -Wno-error=literal-suffix -O4 -ISource/Common/Include -ISource/Math -ISource/CNTK -ISource/ActionsLib -ISource/ComputationNetworkLib -ISource/SGDLib -ISource/SequenceTrainingLib -ISource/CNTK/BrainScript -I/usr/./include/nvidia/gdk -I/home/mirco/cub-1.5.1 -I/usr/local/cuda-7.0//include -I/opt/acml5.3.1/ifort64_mp/include -I/home/mirco/kaldi-trunk//src -I/home/mirco/kaldi-trunk//tools/ATLAS/include -I/home/mirco/kaldi-trunk//tools/openfst/include -MD -MP -MF /home/mirco/cntk_source/build/release/.build/Source/Readers/Kaldi2Reader/HTKMLFReader.d

Error:

Source/Readers/Kaldi2Reader/HTKMLFReader.cpp: In member function ‘void Microsoft::MSR::CNTK::HTKMLFReader<ElemType>::PrepareForTrainingOrTesting(const ConfigRecordType&)’:
Source/Readers/Kaldi2Reader/HTKMLFReader.cpp:477:79: error: no matching function for call to ‘msra::dbn::latticesource::latticesource(std::pair<std::vector<std::basic_string<wchar_t> >, std::vector<std::basic_string<wchar_t> > >&, std::unordered_map<std::basic_string<char>, long unsigned int>&)’
             m_lattices = new msra::dbn::latticesource(latticetocs, modelsymmap);
                                                                               ^
Source/Readers/Kaldi2Reader/HTKMLFReader.cpp:477:79: note: candidate is:
In file included from Source/Readers/Kaldi2Reader/minibatchiterator.h:16:0,
                 from Source/Readers/Kaldi2Reader/rollingwindowsource.h:14,
                 from Source/Readers/Kaldi2Reader/HTKMLFReader.cpp:15:
Source/Common/Include/latticesource.h:29:5: note: msra::dbn::latticesource::latticesource(std::pair<std::vector<std::basic_string<wchar_t> >, std::vector<std::basic_string<wchar_t> > >, const std::unordered_map<std::basic_string<char>, long unsigned int>&, std::wstring)
     latticesource (std::pair<std::vector<std::wstring>,std::vector<std::wstring>> latticetocs, const std::unordered_map<std::string,size_t> & modelsymmap, std::wstring RootPathInToc)

Source/Common/Include/latticesource.h:29:5: note:   candidate expects 3 arguments, 2 provided
make[1]: *** [/home/mirco/cntk_source/build/release/.build/Source/Readers/Kaldi2Reader/HTKMLFReader.o] Error 1
make[1]: Leaving directory `/home/mirco/cntk_source'
make: *** [all] Error 2

How can I fix it?

Note that this is the only error I have when running make.

Thank you!

Mirco

@yzhang87
Copy link
Contributor

Already fixed. I will commit it soon.

@bobchennan
Copy link

Meet the same problem.
I'm looking forward to the commit.

@lahiruts
Copy link

Please let us know when the master is updated.

@mravanelli
Copy link
Author

I'm also still waiting for it! ;)

On Thu, Jan 28, 2016 at 9:47 AM, lahiruts notifications@github.com wrote:

Please let us know when the master is updated.


Reply to this email directly or view it on GitHub
#19 (comment).

@yzhang87
Copy link
Contributor

Already fixed. Now wait for the pull request been approved.

@mravanelli
Copy link
Author

thank you!

On Fri, Jan 29, 2016 at 4:06 PM, Yu Zhang notifications@github.com wrote:

Already fixed. Now wait for the pull request been approved.


Reply to this email directly or view it on GitHub
#19 (comment).

@wolfma61
Copy link
Contributor

there has been a checkin with a KaldiReader fix 2 weeks ago. Since there was not further feedback on this, I will close this. Please notify if you are still experiencing this issue!

thx
Wolfgang

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

No branches or pull requests

5 participants