error when compiling "Source/Readers/Kaldi2Reader/HTKMLFReader.cpp"
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
Already fixed. I will commit it soon.
Meet the same problem. I'm looking forward to the commit.
Please let us know when the master is updated.
I'm also still waiting for it! ;)
On Thu, Jan 28, 2016 at 9:47 AM, lahiruts [email protected] wrote:
Please let us know when the master is updated.
— Reply to this email directly or view it on GitHub https://github.com/Microsoft/CNTK/issues/19#issuecomment-176061432.
Already fixed. Now wait for the pull request been approved.
thank you!
On Fri, Jan 29, 2016 at 4:06 PM, Yu Zhang [email protected] wrote:
Already fixed. Now wait for the pull request been approved.
— Reply to this email directly or view it on GitHub https://github.com/Microsoft/CNTK/issues/19#issuecomment-176801056.
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