Hi,

I'm also getting a compilation error using irstlm-5.80.03.tgz (which I 
think must be the latest build).

Cheers,

Jon

===
...found 4349 targets...
...updating 76 targets...
gcc.compile.c++ 
moses/LM/bin/gcc-4.8/release/debug-symbols-on/link-static/threading-multi/IRST.o

     "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline 
-Wall -g -pthread  -DMAX_NUM_FACTORS=4 -DNDEBUG -DTRACE_ENABLE=1 
-DWITH_THREADS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -I"." 
-I"/home/ubuntu/tools/irstlm/include" 
-I"/home/ubuntu/tools/irstlm/include/irstlm" -I"util/double-conversion" 
-c -o 
"moses/LM/bin/gcc-4.8/release/debug-symbols-on/link-static/threading-multi/IRST.o"
 
"moses/LM/IRST.cpp"

In file included from ./moses/Factor.h:28:0,
                  from moses/LM/IRST.h:27,
                  from moses/LM/IRST.cpp:31:
./moses/Util.h:52:0: warning: "TRACE_ERR" redefined [enabled by default]
  #define TRACE_ERR(str) do { std::cerr << str; } while (false)
  ^
In file included from /home/ubuntu/tools/irstlm/include/lmContainer.h:36:0,
                  from moses/LM/IRST.cpp:27:
/home/ubuntu/tools/irstlm/include/util.h:22:0: note: this is the 
location of the previous definition
  #define TRACE_ERR(str) { std::cerr << str; }
  ^
In file included from ./moses/Factor.h:28:0,
                  from moses/LM/IRST.h:27,
                  from moses/LM/IRST.cpp:31:
./moses/Util.h:60:0: warning: "VERBOSE" redefined [enabled by default]
  #define VERBOSE(level,str) { IFVERBOSE(level) { TRACE_ERR(str); } }
  ^
In file included from /home/ubuntu/tools/irstlm/include/lmContainer.h:36:0,
                  from moses/LM/IRST.cpp:27:
/home/ubuntu/tools/irstlm/include/util.h:23:0: note: this is the 
location of the previous definition
  #define VERBOSE(level,str) { if (_DEBUG_LEVEL){  if (_DEBUG_LEVEL >= 
level) { TRACE_ERR("DEBUG_LEVEL:" <<_DEBUG_LEVEL << " "); 
TRACE_ERR(str); }  } }
  ^
In file included from ./moses/Factor.h:28:0,
                  from moses/LM/IRST.h:27,
                  from moses/LM/IRST.cpp:31:
./moses/Util.h:61:0: warning: "IFVERBOSE" redefined [enabled by default]
  #define IFVERBOSE(level) if (StaticData::Instance().GetVerboseLevel() 
 >= level)
  ^
In file included from /home/ubuntu/tools/irstlm/include/lmContainer.h:36:0,
                  from moses/LM/IRST.cpp:27:
/home/ubuntu/tools/irstlm/include/util.h:24:0: note: this is the 
location of the previous definition
  #define IFVERBOSE(level) if (_DEBUG_LEVEL) if (_DEBUG_LEVEL >= level)
  ^
moses/LM/IRST.cpp:29:17: error: ‘irstlm’ is not a namespace-name
  using namespace irstlm;
                  ^
moses/LM/IRST.cpp:29:23: error: expected namespace-name before ‘;’ token
  using namespace irstlm;
                        ^
moses/LM/IRST.cpp: In function ‘bool Moses::LMCacheCleanup(size_t, size_t)’:
moses/LM/IRST.cpp:240:24: warning: comparison between signed and 
unsigned integer expressions [-Wsign-compare]
    if (sentences_done==-1) return true;
                         ^
...failed gcc.compile.c++ 
moses/LM/bin/gcc-4.8/release/debug-symbols-on/link-static/threading-multi/IRST.o...

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to