8000 pip3 install hfst fails with compilation errors · Issue #375 · hfst/hfst · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pip3 install hfst fails with compilation errors #375

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

Closed
santhoshtr opened this issue Dec 4, 2017 · 3 comments
Closed

pip3 install hfst fails with compilation errors #375

santhoshtr opened this issue Dec 4, 2017 · 3 comments

Comments

@santhoshtr
Copy link

Failing at https://github.com/hfst/hfst/blob/master/back-ends/openfst/src/include/fst/replace.h#L1053

$ sudo pip3 install hfst                                                                   
Collecting hfst
  Downloading hfst-3.12.2.4b0.tar.gz (1.5MB)
    100% |████████████████████████████████| 1.5MB 318kB/s 
Installing collected packages: hfst
  Running setup.py install for hfst ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-6nuzv1kd/hfst/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-q61i0mbx-record/install-record.txt --single-version-externally-managed --compile:
    /usr/lib/python3/dist-packages/setuptools/dist.py:341: UserWarning: Normalizing '3.12.2.4_beta' to '3.12.2.4b0'
      normalized_version,
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    copying libhfst.py -> build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/hfst
    copying hfst/__init__.py -> build/lib.linux-x86_64-3.6/hfst
    creating build/lib.linux-x86_64-3.6/hfst/exceptions
    copying hfst/exceptions/__init__.py -> build/lib.linux-x86_64-3.6/hfst/exceptions
    creating build/lib.linux-x86_64-3.6/hfst/sfst_rules
    copying hfst/sfst_rules/__init__.py -> build/lib.linux-x86_64-3.6/hfst/sfst_rules
    creating build/lib.linux-x86_64-3.6/hfst/xerox_rules
    copying hfst/xerox_rules/__init__.py -> build/lib.linux-x86_64-3.6/hfst/xerox_rules
    running build_ext
    building '_libhfst' extension
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/libhfst
    creating build/temp.linux-x86_64-3.6/libhfst/src
    creating build/temp.linux-x86_64-3.6/libhfst/src/parsers
    creating build/temp.linux-x86_64-3.6/libhfst/src/implementations
    creating build/temp.linux-x86_64-3.6/libhfst/src/implementations/compose_intersect
    creating build/temp.linux-x86_64-3.6/libhfst/src/implementations/optimized-lookup
    creating build/temp.linux-x86_64-3.6/libhfst/src/parsers/io_src
    creating build/temp.linux-x86_64-3.6/libhfst/src/parsers/string_src
    creating build/temp.linux-x86_64-3.6/libhfst/src/parsers/variable_src
    creating build/temp.linux-x86_64-3.6/libhfst/src/parsers/rule_src
    creating build/temp.linux-x86_64-3.6/libhfst/src/parsers/alphabet_src
    creating build/temp.linux-x86_64-3.6/back-ends
    creating build/temp.linux-x86_64-3.6/back-ends/openfst
    creating build/temp.linux-x86_64-3.6/back-ends/openfst/src
    creating build/temp.linux-x86_64-3.6/back-ends/openfst/src/lib
    creating build/temp.linux-x86_64-3.6/back-ends/foma
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst_wrap.cpp -o build/temp.linux-x86_64-3.6/libhfst_wrap.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    In file included from libhfst_wrap.cpp:3612:0:
    hfst_lookup_extensions.cpp:51:140: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
     HfstOneLevelPaths lookup_vector(const hfst::HfstTransducer * tr, bool fd, const StringVector& s, int limit = -1, double time_cutoff = 0.0) throw(FunctionNotImplementedException)
                                                                                                                                                ^~~~~
    hfst_lookup_extensions.cpp:71:139: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
     HfstOneLevelPaths lookup_string(const hfst::HfstTransducer * tr, bool fd, const std::string& s, int limit = -1, double time_cutoff = 0.0) throw(FunctionNotImplementedException)
                                                                                                                                               ^~~~~
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/parsers/XfstCompiler.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/parsers/XfstCompiler.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstApply.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstApply.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstInputStream.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstInputStream.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    In file included from libhfst/src/parsers/../HfstTokenizer.h:13:0,
                     from libhfst/src/parsers/LexcCompiler.h:34,
                     from libhfst/src/HfstTransducer.h:21,
                     from libhfst/src/HfstInputStream.cpp:16:
    libhfst/src/HfstInputStream.cpp: In destructor ‘hfst::HfstInputStream::~HfstInputStream()’:
    libhfst/src/parsers/../HfstExceptionDefs.h:45:33: warning: throw will always call terminate() [-Wterminate]
         throw E(#E,__FILE__,__LINE__);                    } \
                                     ^
    libhfst/src/HfstInputStream.cpp:1134:9: note: in expansion of macro ‘HFST_THROW’
             HFST_THROW(NotTransducerStreamException);
             ^~~~~~~~~~
    libhfst/src/parsers/../HfstExceptionDefs.h:45:33: note: in C++11 destructors default to noexcept
         throw E(#E,__FILE__,__LINE__);                    } \
                                     ^
    libhfst/src/HfstInputStream.cpp:1134:9: note: in expansion of macro ‘HFST_THROW’
             HFST_THROW(NotTransducerStreamException);
             ^~~~~~~~~~
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstTransducer.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstTransducer.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    libhfst/src/HfstTransducer.cpp: In destructor ‘virtual hfst::HfstTransducer::~HfstTransducer()’:
    libhfst/src/HfstTransducer.cpp:1281:120: warning: throw will always call terminate() [-Wterminate]
           throw ImplementationTypeNotAvailableException("ImplementationTypeNotAvailableException", __FILE__, __LINE__, type);
                                                                                                                            ^
    libhfst/src/HfstTransducer.cpp:1281:120: note: in C++11 destructors default to noexcept
    In file included from libhfst/src/parsers/../HfstTokenizer.h:13:0,
                     from libhfst/src/parsers/LexcCompiler.h:34,
                     from libhfst/src/HfstTransducer.h:21,
                     from libhfst/src/HfstTransducer.cpp:23:
    libhfst/src/parsers/../HfstExceptionDefs.h:45:33: warning: throw will always call terminate() [-Wterminate]
         throw E(#E,__FILE__,__LINE__);                    } \
                                     ^
    libhfst/src/HfstTransducer.cpp:1316:9: note: in expansion of macro ‘HFST_THROW’
             HFST_THROW(TransducerHasWrongTypeException);
             ^~~~~~~~~~
    libhfst/src/parsers/../HfstExceptionDefs.h:45:33: note: in C++11 destructors default to noexcept
         throw E(#E,__FILE__,__LINE__);                    } \
                                     ^
    libhfst/src/HfstTransducer.cpp:1316:9: note: in expansion of macro ‘HFST_THROW’
             HFST_THROW(TransducerHasWrongTypeException);
             ^~~~~~~~~~
    libhfst/src/parsers/../HfstExceptionDefs.h:45:33: warning: throw will always call terminate() [-Wterminate]
         throw E(#E,__FILE__,__LINE__);                    } \
                                     ^
    libhfst/src/HfstTransducer.cpp:1318:9: note: in expansion of macro ‘HFST_THROW’
             HFST_THROW(FunctionNotImplementedException);
             ^~~~~~~~~~
    libhfst/src/parsers/../HfstExceptionDefs.h:45:33: note: in C++11 destructors default to noexcept
         throw E(#E,__FILE__,__LINE__);                    } \
                                     ^
    libhfst/src/HfstTransducer.cpp:1318:9: note: in expansion of macro ‘HFST_THROW’
             HFST_THROW(FunctionNotImplementedException);
             ^~~~~~~~~~
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstOutputStream.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstOutputStream.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstRules.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstRules.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstXeroxRules.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstXeroxRules.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstDataTypes.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstDataTypes.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstSymbolDefs.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstSymbolDefs.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstTokenizer.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstTokenizer.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstFlagDiacritics.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstFlagDiacritics.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstExceptionDefs.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstExceptionDefs.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HarmonizeUnknownAndIdentitySymbols.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HarmonizeUnknownAndIdentitySymbols.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    libhfst/src/HarmonizeUnknownAndIdentitySymbols.cpp:31:13: warning: ‘bool hfst::is_subset(const StringSet&, const StringSet&)’ defined but not used [-Wunused-function]
     static bool is_subset(const StringSet &subset,const StringSet &superset)
                 ^~~~~~~~~
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstLookupFlagDiacritics.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstLookupFlagDiacritics.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstEpsilonHandler.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstEpsilonHandler.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstStrings2FstTokenizer.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstStrings2FstTokenizer.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstPrintDot.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstPrintDot.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/HfstPrintPCKimmo.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/HfstPrintPCKimmo.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/hfst-string-conversions.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/hfst-string-conversions.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/string-utils.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/string-utils.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/implementations/HfstBasicTransducer.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/implementations/HfstBasicTransducer.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/implementations/HfstBasicTransition.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/implementations/HfstBasicTrans
8000
ition.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/implementations/ConvertTransducerFormat.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/implementations/ConvertTransducerFormat.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/implementations/HfstTropicalTransducerTransitionData.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/implementations/HfstTropicalTransducerTransitionData.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_FOMA -DHAVE_OPENFST -DHAVE_OPENFST_LOG -DHAVE_READLINE -DHAVE_GETLINE -I. -Ilibhfst/src/ -Iback-ends/foma -Iback-ends -Iparsers -Ilibhfst/src/parsers -Iback-ends/openfst/src/include -I/usr/include/python3.6m -c libhfst/src/implementations/ConvertTropicalWeightTransducer.cpp -o build/temp.linux-x86_64-3.6/libhfst/src/implementations/ConvertTropicalWeightTransducer.o -Wno-sign-compare -Wno-strict-prototypes -std=c++0x
    cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
    In file included from back-ends/openfst/src/include/fst/fst.h:31:0,
                     from ./back-ends/openfst/src/include/fst/fstlib.h:49,
                     from libhfst/src/implementations/ConvertTropicalWeightTransducer.cpp:21:
    back-ends/openfst/src/include/fst/compat.h: In function ‘Dest fst::bit_cast(const Source&)’:
    back-ends/openfst/src/include/fst/compat.h:73:16: warning: typedef ‘VerifySizesAreEqual’ locally defined but not used [-Wunused-local-typedefs]
       typedef char VerifySizesAreEqual [sizeof(Dest) == sizeof(Source) ? 1 :
                    ^~~~~~~~~~~~~~~~~~~
    In file included from back-ends/openfst/src/include/fst/state-map.h:34:0,
                     from back-ends/openfst/src/include/fst/arcsort.h:30,
                     from ./back-ends/openfst/src/include/fst/fstlib.h:60,
                     from libhfst/src/implementations/ConvertTropicalWeightTransducer.cpp:21:
    back-ends/openfst/src/include/fst/arc-map.h: In function ‘void fst::ArcMap(fst::MutableFst<A>*, C*)’:
    back-ends/openfst/src/include/fst/arc-map.h:169:11: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
               if (final_arc.ilabel != 0 || final_arc.olabel != 0 ||
               ^~
    back-ends/openfst/src/include/fst/arc-map.h:173:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
                 fst->SetFinal(s, Weight::Zero());
                 ^~~
    back-ends/openfst/src/include/fst/arc-map.h: In function ‘void fst::ArcMap(const fst::Fst<A>&, fst::MutableFst<B>*, C*)’:
    back-ends/openfst/src/include/fst/arc-map.h:197:30: warning: typedef ‘Weight’ locally defined but not used [-Wunused-local-typedefs]
       typedef typename A::Weight Weight;
                                  ^~~~~~
    In file included from back-ends/openfst/src/include/fst/arcsort.h:30:0,
                     from ./back-ends/openfst/src/include/fst/fstlib.h:60,
                     from libhfst/src/implementations/ConvertTropicalWeightTransducer.cpp:21:
    back-ends/openfst/src/include/fst/state-map.h: In function ‘void fst::StateMap(fst::MutableFst<A>*, C*)’:
    back-ends/openfst/src/include/fst/state-map.h:92:30: warning: typedef ‘Weight’ locally defined but not used [-Wunused-local-typedefs]
       typedef typename A::Weight Weight;
                                  ^~~~~~
    back-ends/openfst/src/include/fst/state-map.h: In function ‘void fst::StateMap(const fst::Fst<A>&, fst::MutableFst<B>*, C*)’:
    back-ends/openfst/src/include/fst/state-map.h:132:30: warning: typedef ‘Weight’ locally defined but not used [-Wunused-local-typedefs]
       typedef typename A::Weight Weight;
                                  ^~~~~~
    In file included from back-ends/openfst/src/include/fst/rational.h:31:0,
                     from back-ends/openfst/src/include/fst/closure.h:29,
                     from ./back-ends/openfst/src/include/fst/fstlib.h:62,
                     from libhfst/src/implementations/ConvertTropicalWeightTransducer.cpp:21:
    back-ends/openfst/src/include/fst/replace.h: In constructor ‘fst::ArcIterator<fst::ReplaceFst<A, T> >::ArcIterator(const fst::ReplaceFst<A, T>&, fst::ArcIterator<fst::ReplaceFst<A, T> >::StateId)’:
    back-ends/openfst/src/include/fst/replace.h:1053:46: error: expected ‘;’ before ‘::’ token
           (fst_.GetImpl())->template CacheImpl<A>::InitArcIterator(state_,
                                                  ^~
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-6nuzv1kd/hfst/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-q61i0mbx-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-6nuzv1kd/hfst/

Version info:

$ x86_64-linux-gnu-gcc --version
x86_64-linux-gnu-gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0

@santhoshtr
Copy link
Author

Looks like related to the isse #358

@eaxelson
Copy link
Member

There is now a manylinux distribution available at PyPI, so pip shouldn't start to compile from scratch any more.

We use an old version of OpenFST as our back-end so the code won't compile with a newer gcc (issue #358). This will of course eventually become an even bigger problem that must be solved at some point.

@eaxelson
Copy link
Member

Closing this issue now that we offer a manylinux distribution. Issue #358 still remains.

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

No branches or pull requests

2 participants
0