eddieantonio / mitlm

Automatically exported from code.google.com/p/mitlm
http://code.google.com/p/mitlm
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Fail to install mitln.0.4 on Cygwin #35

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Dear all,

I've tried to install mitlm.0.4 to test the Phonetisaurus, but it couldn't make 
it because there were some problems with the fortran codes and makefile. 
(missing some library).

I've spent so long time for this, but still impossible to find the errors.
Please help me to get out from this problem....!

What version of the product are you using? On what operating system?
  - Cygwin with gcc 4.3.4 (20090804)
  - Window 7
  - mitln.0.4

For additional information, please refer to the attached file (for the error 
message).

.................................
gfortran -g -fPIC -fmessage-length=0  -O3 -DNDEBUG -funroll-loops  -c -o 
src/optimize/lbfgsb.o src/optimize/lbfgsb.f
f951: warning: -fPIC ignored for target (all code is position independent)
gfortran -g -fPIC -fmessage-length=0  -O3 -DNDEBUG -funroll-loops  -c -o 
src/optimize/lbfgs.o src/optimize/lbfgs.f
f951: warning: -fPIC ignored for target (all code is position independent)
ar rcs libmitlm.a src/util/RefCounter.o src/util/Logger.o 
src/util/CommandOptions.o src/Vocab.o src/NgramVector.o src/NgramModel.o 
src/NgramLM.o src/InterpolatedNgramLM.o src/Smoothing.o 
src/MaxLikelihoodSmoothing.o src/KneserNeySmoothing.o src/PerplexityOptimizer.o 
src/WordErrorRateOptimizer.o src/Lattice.o src/optimize/lbfgsb.o 
src/optimize/lbfgs.o
g++ -g -Wall -fPIC -fmessage-length=0 -Isrc -O3 -DNDEBUG -funroll-loops   -c -o 
src/estimate-ngram.o src/estimate-ngram.cpp
src/estimate-ngram.cpp:1: warning: -fPIC ignored for target (all code is 
position independent)
In file included from 
/usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/ext/hash_map:64,
                 from src/util/CommandOptions.h:37,
                 from src/estimate-ngram.cpp:36:
/usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/backward/backward_warning.h:33:2: 
warning: #warning This file includes at least one deprecated or antiquated 
header which may be removed without further notice at a future date. Please use 
a non-deprecated interface with equivalent functionality instead. For a listing 
of replacement headers and interfaces, consult the file backward_warning.h. To 
disable this warning use -Wno-deprecated.
g++ src/estimate-ngram.o -o estimate-ngram -L. -lgfortran -lmitlm  -O3 
-funroll-loops 
./libmitlm.a(lbfgs.o): In function `mcsrch':
/home/seng/Phonetisaurus/mitlm.0.4/src/optimize/lbfgs.f:670: undefined 
reference to `__gfortran_st_write'
/home/seng/Phonetisaurus/mitlm.0.4/src/optimize/lbfgs.f:670: undefined 
reference to `__gfortran_st_write_done'
./libmitlm.a(lbfgs.o): In function `lb1':
/home/seng/Phonetisaurus/mitlm.0.4/src/optimize/lbfgs.f:469: undefined 
reference to `__gfortran_st_write'
/home/seng/Phonetisaurus/mitlm.0.4/src/optimize/lbfgs.f:469: undefined 
reference to `__gfortran_transfer_integer'
/home/seng/Phonetisaurus/mitlm.0.4/src/optimize/lbfgs.f:469: undefined 
reference to `__gfortran_transfer_integer'
/home/seng/Phonetisaurus/mitlm.0.4/src/optimize/lbfgs.f:469: undefined 
reference to `__gfortran_transfer_real'
/home/seng/Phonetisaurus/mitlm.0.4/src/optimize/lbfgs.f:469: undefined 
reference to `__gfortran_transfer_real'
/home/seng/Phonetisaurus/mitlm.0.4/src/optimize/lbfgs.f:469: undefined 
reference to `__gfortran_transfer_real'
/home/seng/Phonetisaurus/mitlm.0.4/src/optimize/lbfgs.f:469: undefined 
reference to `__gfortran_st_write_done'

./libmitlm.a(lbfgs.o):/home/seng/Phonetisaurus/mitlm.0.4/src/optimize/lbfgs.f:48
0: more undefined references to `__gfortran_transfer_real' follow
./libmitlm.a(lbfgs.o): In function `lb1':
/home/seng/Phonetisaurus/mitlm.0.4/src/optimize/lbfgs.f:480: undefined 
reference to `__gfortran_st_write_done'
./libmitlm.a(lbfgs.o): In function `lbfgs':
/home/seng/Phonetisaurus/mitlm.0.4/src/optimize/lbfgs.f:246: undefined 
reference to `__gfortran_st_write'
/home/seng/Phonetisaurus/mitlm.0.4/src/optimize/lbfgs.f:246: undefined 
reference to `__gfortran_st_write_done'
.................
./libmitlm.a(lbfgsb.o): In function `setulb':
/home/seng/Phonetisaurus/mitlm.0.4/src/optimize/lbfgsb.f:196: undefined 
reference to `__gfortran_compare_string'
collect2: ld returned 1 exit status
make: *** [estimate-ngram] Error 1

Thank you in advance for your help !

Seng,

Original issue reported on code.google.com by kheangs...@gmail.com on 15 Feb 2013 at 12:25

Attachments:

GoogleCodeExporter commented 8 years ago
Hi, mitlm is not very well tested on Windows and you will probably find some 
platform specific bug there.
The problem you are reporting seems to be related with the order of -lgfortran 
and -lmitlm. I have no installation of Windows available, so I cannot test, but 
switching those two flags should do the job (library flags order does matter on 
Windows).

Original comment by giuliop...@gmail.com on 24 Feb 2013 at 1:47

GoogleCodeExporter commented 8 years ago
Hi, can you please try mitlm 0.4.1 installation and report results?

Original comment by giuliop...@gmail.com on 27 Mar 2013 at 1:21