flammie / omorfi

Open morphology for Finnish
Other
84 stars 25 forks source link

Centos7 omorfi compilation fails. #56

Closed TuulaP closed 6 years ago

TuulaP commented 6 years ago

Would have liked to get latest omorfi with the hfst_v3.14.0 , but compilation of omorfi stops at the beginning to an error.

Environment

export PKG_CONFIG_PATH=/work/bin/hfst_v3.14.0/lib/pkgconfig (to help omorfi to find correct hfst)

then configure

./configure --prefix=$OMOPATH --with-hfst=/work/bin/hfst_v3.14.0/bin --enable-ftb3 --enable-hyphenator --enable-segmenter


make[2]: Entering directory `/data/tmp/git_asenn2018/omorfi/src'
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..     -g -O2 -I/work/bin/hfst_v3.14.0/include/hfst/   -g -O2 -MT cpp/libomorfi_la-omorfi.lo -MD -MP -MF cpp/.deps/libomorfi_la-omorfi.Tpo -c -o cpp/libomorfi_la-omorfi.lo `test -f 'cpp/omorfi.cc' || echo './'`cpp/omorfi.cc
libtool: compile:  g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -g -O2 -I/work/bin/hfst_v3.14.0/include/hfst/ -g -O2 -MT cpp/libomorfi_la-omorfi.lo -MD -MP -MF cpp/.deps/libomorfi_la-omorfi.Tpo -c cpp/omorfi.cc  -fPIC -DPIC -o cpp/.libs/libomorfi_la-omorfi.o
cpp/omorfi.cc: In member function 'void omorfi::Omorfi::loadAllFromDefaultDirs()':
cpp/omorfi.cc:50:53: error: 'string' was not declared in this scope
             std::string homeomorfi = string(homepath) + "/.omorfi/";
                                                     ^
cpp/omorfi.cc:50:53: note: suggested alternatives:
In file included from /usr/include/c++/4.8.2/string:39:0,
                 from /usr/local/include/hfst/HfstDataTypes.h:19,
                 from /usr/local/include/hfst/HfstTransducer.h:21,
                 from /usr/local/include/hfst/hfst.h:21,
                 from cpp/omorfi.cc:26:
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note:   'std::string'
   typedef basic_string<char>    string;
                                 ^
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note:   'std::string'
make[2]: *** [cpp/libomorfi_la-omorfi.lo] Error 1
make[2]: Leaving directory `/data/tmp/git_asenn2018/omorfi/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/tmp/git_asenn2018/omorfi'
make: *** [all] Error 2

(autogen version is 2.69 , automake 1.13.4, libtool 2.4.2). configure phase looked quite normal:


Configured omorfi 20171115_alpha:
=======
* Analysers: /work/bin/hfst_v3.14.0/bin
    * OMOR yes (flags: --omor-props   --omor-sem)
    * FTB3.1 yes
    * apertium no
    * giella: no
    * labeled segmenter: no
* Limits:
    * tiny lexicons:
    * big tests:
* Applications
    * Voikko speller: yes
    * segmenter: yes
    * lemmatiser: no
    * hyphenators: yes

I'll probably try with some earlier version, to see if it is something in our environment that has changed or has not been changed.

But just in case also to here, so thanks for all the help.

flammie commented 6 years ago

Should hopefully be fixed there but feel free to re-open and comment if it doesn't