{"action":"created","issue":{"url":"https://api.github.com/repos/datamade/usaddress/issues/76","labels_url":"https://api.github.com/repos/datamade/usaddress/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/datamade/usaddress/issues/76/comments","events_url":"https://api.github.com/repos/datamade/usaddress/issues/76/events","html_url":"https://github.com/datamade/usaddress/issues/76","id":58160560,"number":76,"title":"Install error on Python 2.7.6 on Ubuntu 14.04 LTS","user":{"login":"John-Nagle","id":942608,"avatar_url":"https://avatars.githubusercontent.com/u/942608?v=3","gravatar_id":"","url":"https://api.github.com/users/John-Nagle","html_url":"https://github.com/John-Nagle","followers_url":"https://api.github.com/users/John-Nagle/followers","following_url":"https://api.github.com/users/John-Nagle/following{/other_user}","gists_url":"https://api.github.com/users/John-Nagle/gists{/gist_id}","starred_url":"https://api.github.com/users/John-Nagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/John-Nagle/subscriptions","organizations_url":"https://api.github.com/users/John-Nagle/orgs","repos_url":"https://api.github.com/users/John-Nagle/repos","events_url":"https://api.github.com/users/John-Nagle/events{/privacy}","received_events_url":"https://api.github.com/users/John-Nagle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-19T02:31:59Z","updated_at":"2015-02-19T02:49:17Z","closed_at":null,"body":"Install crashes badly on Ubuntu.  Some of the errors:\r\n\r\n    ERROR: /bin/sh: 1: xslt-config: not found\r\n    ** make sure the development packages of libxml2 and libxslt are installed **\r\n ...\r\n  Running setup.py install for parserator\r\n      File \"/usr/local/lib/python2.7/dist-packages/parserator/utils.py\", line 69\r\n        def fit(self, X, y, **params, model_path):\r\n                                    ^\r\n    SyntaxError: invalid syntax\r\n\r\nThere are hundreds of GCC warnings as an attempt is made to build \"crfsuite\", which isn't good enough code for the high warning levels enabled.\r\n\r\nAfter removing the existing installation of \"lxml\", PIP crashes trying to restore it:\r\n\r\nCleaning up...\r\nCommand /usr/bin/python -c \"import setuptools, tokenize;__file__='/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-MHzJKR-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/lxml\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/pip\", line 9, in <module>\r\n    load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()\r\n  File \"/usr/lib/python2.7/dist-packages/pip/__init__.py\", line 185, in main\r\n    return command.main(cmd_args)\r\n  File \"/usr/lib/python2.7/dist-packages/pip/basecommand.py\", line 161, in main\r\n    text = '\\n'.join(complete_log)\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 42: ordinal not in range(128)\r\n\r\nThe install may need the development library for libxslt, but it doesn't stop; it keeps plowing ahead and screwing up. It clearly wants one of the many lxml-related packages, but which one?\r\n\r\n \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/datamade/usaddress/issues/comments/74991069","html_url":"https://github.com/datamade/usaddress/issues/76#issuecomment-74991069","issue_url":"https://api.github.com/repos/datamade/usaddress/issues/76","id":74991069,"user":{"login":"John-Nagle","id":942608,"avatar_url":"https://avatars.githubusercontent.com/u/942608?v=3","gravatar_id":"","url":"https://api.github.com/users/John-Nagle","html_url":"https://github.com/John-Nagle","followers_url":"https://api.github.com/users/John-Nagle/followers","following_url":"https://api.github.com/users/John-Nagle/following{/other_user}","gists_url":"https://api.github.com/users/John-Nagle/gists{/gist_id}","starred_url":"https://api.github.com/users/John-Nagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/John-Nagle/subscriptions","organizations_url":"https://api.github.com/users/John-Nagle/orgs","repos_url":"https://api.github.com/users/John-Nagle/repos","events_url":"https://api.github.com/users/John-Nagle/events{/privacy}","received_events_url":"https://api.github.com/users/John-Nagle/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T02:49:17Z","updated_at":"2015-02-19T02:49:17Z","body":"Entire install log:\r\n\r\njohn@john-All-Series:~$ pip install usaddress\r\nDownloading/unpacking usaddress\r\n  Downloading usaddress-0.3.1.tar.gz (52kB): 52kB downloaded\r\n  Running setup.py (path:/tmp/pip_build_john/usaddress/setup.py) egg_info for package usaddress\r\n    \r\nDownloading/unpacking future>=0.14.3 (from usaddress)\r\n  Downloading future-0.14.3.tar.gz (1.5MB): 1.5MB downloaded\r\n  Running setup.py (path:/tmp/pip_build_john/future/setup.py) egg_info for package future\r\n    \r\n    warning: no files found matching '*.au' under directory 'tests'\r\n    warning: no files found matching '*.gif' under directory 'tests'\r\n    warning: no files found matching '*.txt' under directory 'tests'\r\nDownloading/unpacking parserator>=0.3 (from usaddress)\r\n  Downloading parserator-0.3.tar.gz\r\n  Running setup.py (path:/tmp/pip_build_john/parserator/setup.py) egg_info for package parserator\r\n    \r\nDownloading/unpacking python-crfsuite>=0.7 (from usaddress)\r\n  Downloading python-crfsuite-0.8.2.tar.gz (383kB): 383kB downloaded\r\n  Running setup.py (path:/tmp/pip_build_john/python-crfsuite/setup.py) egg_info for package python-crfsuite\r\n    \r\nDownloading/unpacking lxml==3.4.1 (from parserator>=0.3->usaddress)\r\n  Downloading lxml-3.4.1.tar.gz (3.5MB): 3.5MB downloaded\r\n  Running setup.py (path:/tmp/pip_build_john/lxml/setup.py) egg_info for package lxml\r\n    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'\r\n      warnings.warn(msg)\r\n    Building lxml version 3.4.1.\r\n    Building without Cython.\r\n    ERROR: /bin/sh: 1: xslt-config: not found\r\n    \r\n    ** make sure the development packages of libxml2 and libxslt are installed **\r\n    \r\n    Using build configuration of libxslt\r\n    \r\n    warning: no previously-included files found matching '*.py'\r\nDownloading/unpacking Unidecode==0.4.17 (from parserator>=0.3->usaddress)\r\n  Downloading Unidecode-0.04.17.tar.gz (201kB): 201kB downloaded\r\n  Running setup.py (path:/tmp/pip_build_john/Unidecode/setup.py) egg_info for package Unidecode\r\n    \r\nInstalling collected packages: usaddress, future, parserator, python-crfsuite, lxml, Unidecode\r\n  Running setup.py install for usaddress\r\n    error: could not create '/usr/local/lib/python2.7/dist-packages/usaddress': Permission denied\r\n    Complete output from command /usr/bin/python -c \"import setuptools, tokenize;__file__='/tmp/pip_build_john/usaddress/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-zZpJ1_-record/install-record.txt --single-version-externally-managed --compile:\r\n    running install\r\n\r\nrunning build\r\n\r\nrunning build_py\r\n\r\ncreating build\r\n\r\ncreating build/lib.linux-x86_64-2.7\r\n\r\ncreating build/lib.linux-x86_64-2.7/usaddress\r\n\r\ncopying usaddress/__init__.py -> build/lib.linux-x86_64-2.7/usaddress\r\n\r\ncopying usaddress/usaddr.crfsuite -> build/lib.linux-x86_64-2.7/usaddress\r\n\r\nrunning install_lib\r\n\r\ncreating /usr/local/lib/python2.7/dist-packages/usaddress\r\n\r\nerror: could not create '/usr/local/lib/python2.7/dist-packages/usaddress': Permission denied\r\n\r\n----------------------------------------\r\nCleaning up...\r\nCommand /usr/bin/python -c \"import setuptools, tokenize;__file__='/tmp/pip_build_john/usaddress/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-zZpJ1_-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_john/usaddress\r\nStoring debug log for failure in /home/john/.pip/pip.log\r\n\r\n\r\n=====================RETRYING UNDER sudo TO ALLOW ACCESS TO PYTHON INSTALLATION===================\r\n\r\n\r\njohn@john-All-Series:~$ sudo pip install usaddress\r\n[sudo] password for john: \r\nno talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory\r\nDownloading/unpacking usaddress\r\n  Downloading usaddress-0.3.1.tar.gz (52kB): 52kB downloaded\r\n  Running setup.py (path:/tmp/pip_build_root/usaddress/setup.py) egg_info for package usaddress\r\n    \r\nDownloading/unpacking future>=0.14.3 (from usaddress)\r\n  Downloading future-0.14.3.tar.gz (1.5MB): 1.5MB downloaded\r\n  Running setup.py (path:/tmp/pip_build_root/future/setup.py) egg_info for package future\r\n    \r\n    warning: no files found matching '*.au' under directory 'tests'\r\n    warning: no files found matching '*.gif' under directory 'tests'\r\n    warning: no files found matching '*.txt' under directory 'tests'\r\nDownloading/unpacking parserator>=0.3 (from usaddress)\r\n  Downloading parserator-0.3.tar.gz\r\n  Running setup.py (path:/tmp/pip_build_root/parserator/setup.py) egg_info for package parserator\r\n    \r\nDownloading/unpacking python-crfsuite>=0.7 (from usaddress)\r\n  Downloading python-crfsuite-0.8.2.tar.gz (383kB): 383kB downloaded\r\n  Running setup.py (path:/tmp/pip_build_root/python-crfsuite/setup.py) egg_info for package python-crfsuite\r\n    \r\nDownloading/unpacking lxml==3.4.1 (from parserator>=0.3->usaddress)\r\n  Downloading lxml-3.4.1.tar.gz (3.5MB): 3.5MB downloaded\r\n  Running setup.py (path:/tmp/pip_build_root/lxml/setup.py) egg_info for package lxml\r\n    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'\r\n      warnings.warn(msg)\r\n    Building lxml version 3.4.1.\r\n    Building without Cython.\r\n    ERROR: /bin/sh: 1: xslt-config: not found\r\n    \r\n    ** make sure the development packages of libxml2 and libxslt are installed **\r\n    \r\n    Using build configuration of libxslt\r\n    \r\n    warning: no previously-included files found matching '*.py'\r\nDownloading/unpacking Unidecode==0.4.17 (from parserator>=0.3->usaddress)\r\n  Downloading Unidecode-0.04.17.tar.gz (201kB): 201kB downloaded\r\n  Running setup.py (path:/tmp/pip_build_root/Unidecode/setup.py) egg_info for package Unidecode\r\n    \r\nInstalling collected packages: usaddress, future, parserator, python-crfsuite, lxml, Unidecode\r\n  Running setup.py install for usaddress\r\n    \r\n  Running setup.py install for future\r\n    \r\n    warning: no files found matching '*.au' under directory 'tests'\r\n    warning: no files found matching '*.gif' under directory 'tests'\r\n    warning: no files found matching '*.txt' under directory 'tests'\r\n    Installing pasteurize script to /usr/local/bin\r\n    Installing futurize script to /usr/local/bin\r\n  Running setup.py install for parserator\r\n      File \"/usr/local/lib/python2.7/dist-packages/parserator/utils.py\", line 69\r\n        def fit(self, X, y, **params, model_path):\r\n                                    ^\r\n    SyntaxError: invalid syntax\r\n    \r\n    \r\n    Installing parserator script to /usr/local/bin\r\n  Running setup.py install for python-crfsuite\r\n    building 'pycrfsuite._pycrfsuite' extension\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c pycrfsuite/_pycrfsuite.cpp -o build/temp.linux-x86_64-2.7/pycrfsuite/_pycrfsuite.o\r\n    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]\r\n    pycrfsuite/_pycrfsuite.cpp: In function ‘int __pyx_pf_10pycrfsuite_11_pycrfsuite_11BaseTrainer_2__cinit__(__pyx_obj_10pycrfsuite_11_pycrfsuite_BaseTrainer*)’:\r\n    pycrfsuite/_pycrfsuite.cpp:2963:7: warning: variable ‘__pyx_t_3’ set but not used [-Wunused-but-set-variable]\r\n       int __pyx_t_3;\r\n           ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c pycrfsuite/trainer_wrapper.cpp -o build/temp.linux-x86_64-2.7/pycrfsuite/trainer_wrapper.o\r\n    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/holdout.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/holdout.o\r\n    In file included from crfsuite/lib/crf/src/holdout.c:41:0:\r\n    crfsuite/lib/crf/src/crfsuite_internal.h:168:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     encoder_t *crf1d_create_encoder();\r\n     ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/train_averaged_perceptron.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/train_averaged_perceptron.o\r\n    In file included from crfsuite/lib/crf/src/train_averaged_perceptron.c:44:0:\r\n    crfsuite/lib/crf/src/crfsuite_internal.h:168:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     encoder_t *crf1d_create_encoder();\r\n     ^\r\n    In file included from crfsuite/lib/crf/src/train_averaged_perceptron.c:46:0:\r\n    crfsuite/lib/crf/src/params.h:36:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     crfsuite_params_t* params_create_instance();\r\n     ^\r\n    crfsuite/lib/crf/src/train_averaged_perceptron.c: In function ‘exchange_options’:\r\n    crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]\r\n             int __ret = 0; \\\r\n                 ^\r\n    crfsuite/lib/crf/src/train_averaged_perceptron.c:87:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’\r\n         BEGIN_PARAM_MAP(params, mode)\r\n         ^\r\n    crfsuite/lib/crf/src/train_averaged_perceptron.c: In function ‘crfsuite_train_averaged_perceptron’:\r\n    crfsuite/lib/crf/src/train_averaged_perceptron.c:155:20: warning: unused variable ‘norm’ [-Wunused-variable]\r\n             floatval_t norm = 0., loss = 0.;\r\n                        ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/train_l2sgd.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/train_l2sgd.o\r\n    In file included from crfsuite/lib/crf/src/train_l2sgd.c:104:0:\r\n    crfsuite/lib/crf/src/crfsuite_internal.h:168:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     encoder_t *crf1d_create_encoder();\r\n     ^\r\n    In file included from crfsuite/lib/crf/src/train_l2sgd.c:107:0:\r\n    crfsuite/lib/crf/src/params.h:36:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     crfsuite_params_t* params_create_instance();\r\n     ^\r\n    crfsuite/lib/crf/src/train_l2sgd.c: In function ‘l2sgd’:\r\n    crfsuite/lib/crf/src/train_l2sgd.c:152:23: warning: unused variable ‘clk_begin’ [-Wunused-variable]\r\n         clock_t clk_prev, clk_begin = clock();\r\n                           ^\r\n    In file included from crfsuite/lib/crf/src/train_l2sgd.c:107:0:\r\n    crfsuite/lib/crf/src/train_l2sgd.c: In function ‘exchange_options’:\r\n    crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]\r\n             int __ret = 0; \\\r\n                 ^\r\n    crfsuite/lib/crf/src/train_l2sgd.c:390:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’\r\n         BEGIN_PARAM_MAP(params, mode)\r\n         ^\r\n    crfsuite/lib/crf/src/train_l2sgd.c: In function ‘crfsuite_train_l2sgd’:\r\n    crfsuite/lib/crf/src/train_l2sgd.c:454:15: warning: unused variable ‘T’ [-Wunused-variable]\r\n         const int T = gm->cap_items;\r\n                   ^\r\n    crfsuite/lib/crf/src/train_l2sgd.c: In function ‘l2sgd’:\r\n    crfsuite/lib/crf/src/train_l2sgd.c:237:20: warning: ‘eta’ may be used uninitialized in this function [-Wmaybe-uninitialized]\r\n                 logging(lg, \"Learning rate (eta): %f\\n\", eta);\r\n                        ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/logging.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/logging.o\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/crfsuite_train.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/crfsuite_train.o\r\n    In file included from crfsuite/lib/crf/src/crfsuite_train.c:43:0:\r\n    crfsuite/lib/crf/src/crfsuite_internal.h:168:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     encoder_t *crf1d_create_encoder();\r\n     ^\r\n    In file included from crfsuite/lib/crf/src/crfsuite_train.c:44:0:\r\n    crfsuite/lib/crf/src/params.h:36:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     crfsuite_params_t* params_create_instance();\r\n     ^\r\n    crfsuite/lib/crf/src/crfsuite_train.c: In function ‘crfsuite_train_train’:\r\n    crfsuite/lib/crf/src/crfsuite_train.c:131:11: warning: unused variable ‘algorithm’ [-Wunused-variable]\r\n         char *algorithm = NULL;\r\n               ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/dataset.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/dataset.o\r\n    In file included from crfsuite/lib/crf/src/dataset.c:41:0:\r\n    crfsuite/lib/crf/src/crfsuite_internal.h:168:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     encoder_t *crf1d_create_encoder();\r\n     ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/params.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/params.o\r\n    In file included from crfsuite/lib/crf/src/params.c:39:0:\r\n    crfsuite/lib/crf/src/quark.h:39:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     quark_t* quark_new();\r\n     ^\r\n    crfsuite/lib/crf/src/params.c:250:20: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     crfsuite_params_t* params_create_instance()\r\n                        ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/train_lbfgs.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/train_lbfgs.o\r\n    In file included from crfsuite/lib/crf/src/train_lbfgs.c:46:0:\r\n    crfsuite/lib/crf/src/crfsuite_internal.h:168:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     encoder_t *crf1d_create_encoder();\r\n     ^\r\n    In file included from crfsuite/lib/crf/src/train_lbfgs.c:49:0:\r\n    crfsuite/lib/crf/src/params.h:36:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     crfsuite_params_t* params_create_instance();\r\n     ^\r\n    crfsuite/lib/crf/src/train_lbfgs.c: In function ‘exchange_options’:\r\n    crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]\r\n             int __ret = 0; \\\r\n                 ^\r\n    crfsuite/lib/crf/src/train_lbfgs.c:163:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’\r\n         BEGIN_PARAM_MAP(params, mode)\r\n         ^\r\n    crfsuite/lib/crf/src/train_lbfgs.c: In function ‘crfsuite_train_lbfgs’:\r\n    crfsuite/lib/crf/src/train_lbfgs.c:231:15: warning: unused variable ‘A’ [-Wunused-variable]\r\n         const int A =  trainset->data->attrs->num(trainset->data->attrs);\r\n                   ^\r\n    crfsuite/lib/crf/src/train_lbfgs.c:230:15: warning: unused variable ‘L’ [-Wunused-variable]\r\n         const int L = trainset->data->labels->num(trainset->data->labels);\r\n                   ^\r\n    crfsuite/lib/crf/src/train_lbfgs.c:229:15: warning: unused variable ‘N’ [-Wunused-variable]\r\n         const int N = trainset->num_instances;\r\n                   ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/train_arow.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/train_arow.o\r\n    In file included from crfsuite/lib/crf/src/train_arow.c:44:0:\r\n    crfsuite/lib/crf/src/crfsuite_internal.h:168:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     encoder_t *crf1d_create_encoder();\r\n     ^\r\n    In file included from crfsuite/lib/crf/src/train_arow.c:46:0:\r\n    crfsuite/lib/crf/src/params.h:36:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     crfsuite_params_t* params_create_instance();\r\n     ^\r\n    crfsuite/lib/crf/src/train_arow.c: In function ‘exchange_options’:\r\n    crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]\r\n             int __ret = 0; \\\r\n                 ^\r\n    crfsuite/lib/crf/src/train_arow.c:207:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’\r\n         BEGIN_PARAM_MAP(params, mode)\r\n         ^\r\n    crfsuite/lib/crf/src/train_arow.c: In function ‘crfsuite_train_arow’:\r\n    crfsuite/lib/crf/src/train_arow.c:288:20: warning: unused variable ‘norm’ [-Wunused-variable]\r\n             floatval_t norm = 0., sum_loss = 0.;\r\n                        ^\r\n    crfsuite/lib/crf/src/train_arow.c:245:16: warning: variable ‘beta’ set but not used [-Wunused-but-set-variable]\r\n         floatval_t beta;\r\n                    ^\r\n    crfsuite/lib/crf/src/train_arow.c: At top level:\r\n    crfsuite/lib/crf/src/train_arow.c:145:19: warning: ‘delta_norm2’ defined but not used [-Wunused-function]\r\n     static floatval_t delta_norm2(delta_t *dc)\r\n                       ^\r\n    crfsuite/lib/crf/src/train_arow.c:157:13: warning: ‘delta_add’ defined but not used [-Wunused-function]\r\n     static void delta_add(delta_t *dc, floatval_t *w, floatval_t *ws, const floatval_t tau, const floatval_t u)\r\n                 ^\r\n    crfsuite/lib/crf/src/train_arow.c:180:19: warning: ‘cost_insensitive’ defined but not used [-Wunused-function]\r\n     static floatval_t cost_insensitive(floatval_t err, floatval_t d)\r\n                       ^\r\n    crfsuite/lib/crf/src/train_arow.c:185:19: warning: ‘cost_sensitive’ defined but not used [-Wunused-function]\r\n     static floatval_t cost_sensitive(floatval_t err, floatval_t d)\r\n                       ^\r\n    crfsuite/lib/crf/src/train_arow.c:190:19: warning: ‘tau0’ defined but not used [-Wunused-function]\r\n     static floatval_t tau0(floatval_t cost, floatval_t norm, floatval_t c)\r\n                       ^\r\n    crfsuite/lib/crf/src/train_arow.c:195:19: warning: ‘tau1’ defined but not used [-Wunused-function]\r\n     static floatval_t tau1(floatval_t cost, floatval_t norm, floatval_t c)\r\n                       ^\r\n    crfsuite/lib/crf/src/train_arow.c:200:19: warning: ‘tau2’ defined but not used [-Wunused-function]\r\n     static floatval_t tau2(floatval_t cost, floatval_t norm, floatval_t c)\r\n                       ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/crf1d_model.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/crf1d_model.o\r\n    In file included from crfsuite/lib/crf/src/crf1d.h:37:0,\r\n                     from crfsuite/lib/crf/src/crf1d_model.c:42:\r\n    crfsuite/lib/crf/src/crfsuite_internal.h:168:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     encoder_t *crf1d_create_encoder();\r\n     ^\r\n    crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1mmw’:\r\n    crfsuite/lib/crf/src/crf1d_model.c:231:5: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign]\r\n         strncpy(header->magic, FILEMAGIC, 4);\r\n         ^\r\n    In file included from /usr/include/features.h:374:0,\r\n                     from /usr/include/stdio.h:27,\r\n                     from crfsuite/lib/crf/src/crf1d_model.c:35:\r\n    /usr/include/x86_64-linux-gnu/bits/string3.h:117:1: note: expected ‘char * __restrict__’ but argument is of type ‘uint8_t *’\r\n     __NTH (strncpy (char *__restrict __dest, const char *__restrict __src,\r\n     ^\r\n    crfsuite/lib/crf/src/crf1d_model.c:232:5: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign]\r\n         strncpy(header->type, MODELTYPE, 4);\r\n         ^\r\n    In file included from /usr/include/features.h:374:0,\r\n                     from /usr/include/stdio.h:27,\r\n                     from crfsuite/lib/crf/src/crf1d_model.c:35:\r\n    /usr/include/x86_64-linux-gnu/bits/string3.h:117:1: note: expected ‘char * __restrict__’ but argument is of type ‘uint8_t *’\r\n     __NTH (strncpy (char *__restrict __dest, const char *__restrict __src,\r\n     ^\r\n    crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_open_labelrefs’:\r\n    crfsuite/lib/crf/src/crf1d_model.c:438:5: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign]\r\n         strncpy(href->chunk, CHUNK_LABELREF, 4);\r\n         ^\r\n    In file included from /usr/include/features.h:374:0,\r\n                     from /usr/include/stdio.h:27,\r\n                     from crfsuite/lib/crf/src/crf1d_model.c:35:\r\n    /usr/include/x86_64-linux-gnu/bits/string3.h:117:1: note: expected ‘char * __restrict__’ but argument is of type ‘uint8_t *’\r\n     __NTH (strncpy (char *__restrict __dest, const char *__restrict __src,\r\n     ^\r\n    crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_put_labelref’:\r\n    crfsuite/lib/crf/src/crf1d_model.c:487:21: warning: unused variable ‘offset’ [-Wunused-variable]\r\n         uint32_t n = 0, offset = 0;\r\n                         ^\r\n    crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_open_attrrefs’:\r\n    crfsuite/lib/crf/src/crf1d_model.c:545:5: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign]\r\n         strncpy(href->chunk, CHUNK_ATTRREF, 4);\r\n         ^\r\n    In file included from /usr/include/features.h:374:0,\r\n                     from /usr/include/stdio.h:27,\r\n                     from crfsuite/lib/crf/src/crf1d_model.c:35:\r\n    /usr/include/x86_64-linux-gnu/bits/string3.h:117:1: note: expected ‘char * __restrict__’ but argument is of type ‘uint8_t *’\r\n     __NTH (strncpy (char *__restrict __dest, const char *__restrict __src,\r\n     ^\r\n    crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_put_attrref’:\r\n    crfsuite/lib/crf/src/crf1d_model.c:594:21: warning: unused variable ‘offset’ [-Wunused-variable]\r\n         uint32_t n = 0, offset = 0;\r\n                         ^\r\n    crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_open_features’:\r\n    crfsuite/lib/crf/src/crf1d_model.c:640:5: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign]\r\n         strncpy(hfeat->chunk, CHUNK_FEATURE, 4);\r\n         ^\r\n    In file included from /usr/include/features.h:374:0,\r\n                     from /usr/include/stdio.h:27,\r\n                     from crfsuite/lib/crf/src/crf1d_model.c:35:\r\n    /usr/include/x86_64-linux-gnu/bits/string3.h:117:1: note: expected ‘char * __restrict__’ but argument is of type ‘uint8_t *’\r\n     __NTH (strncpy (char *__restrict __dest, const char *__restrict __src,\r\n     ^\r\n    crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dm_get_labelref’:\r\n    crfsuite/lib/crf/src/crf1d_model.c:851:5: warning: pointer targets in passing argument 2 of ‘read_uint32’ differ in signedness [-Wpointer-sign]\r\n         p += read_uint32(p, &ref->num_features);\r\n         ^\r\n    crfsuite/lib/crf/src/crf1d_model.c:141:12: note: expected ‘uint32_t *’ but argument is of type ‘int *’\r\n     static int read_uint32(uint8_t* buffer, uint32_t* value)\r\n                ^\r\n    crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dm_get_attrref’:\r\n    crfsuite/lib/crf/src/crf1d_model.c:867:5: warning: pointer targets in passing argument 2 of ‘read_uint32’ differ in signedness [-Wpointer-sign]\r\n         p += read_uint32(p, &ref->num_features);\r\n         ^\r\n    crfsuite/lib/crf/src/crf1d_model.c:141:12: note: expected ‘uint32_t *’ but argument is of type ‘int *’\r\n     static int read_uint32(uint8_t* buffer, uint32_t* value)\r\n                ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/crf1d_tag.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/crf1d_tag.o\r\n    In file included from crfsuite/lib/crf/src/crf1d.h:37:0,\r\n                     from crfsuite/lib/crf/src/crf1d_tag.c:46:\r\n    crfsuite/lib/crf/src/crfsuite_internal.h:168:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     encoder_t *crf1d_create_encoder();\r\n     ^\r\n    crfsuite/lib/crf/src/crf1d_tag.c: In function ‘crf1dt_state_score’:\r\n    crfsuite/lib/crf/src/crf1d_tag.c:72:15: warning: unused variable ‘L’ [-Wunused-variable]\r\n         const int L = crf1dt->num_labels;\r\n                   ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/crfsuite.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/crfsuite.o\r\n    crfsuite/lib/crf/src/crfsuite.c:316:14: warning: ‘safe_strncpy’ defined but not used [-Wunused-function]\r\n     static char *safe_strncpy(char *dst, const char *src, size_t n)\r\n                  ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/dictionary.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/dictionary.o\r\n    In file included from crfsuite/lib/crf/src/dictionary.c:39:0:\r\n    crfsuite/lib/crf/src/quark.h:39:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     quark_t* quark_new();\r\n     ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/rumavl.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/rumavl.o\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/train_passive_aggressive.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/train_passive_aggressive.o\r\n    In file included from crfsuite/lib/crf/src/train_passive_aggressive.c:44:0:\r\n    crfsuite/lib/crf/src/crfsuite_internal.h:168:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     encoder_t *crf1d_create_encoder();\r\n     ^\r\n    In file included from crfsuite/lib/crf/src/train_passive_aggressive.c:46:0:\r\n    crfsuite/lib/crf/src/params.h:36:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     crfsuite_params_t* params_create_instance();\r\n     ^\r\n    crfsuite/lib/crf/src/train_passive_aggressive.c: In function ‘exchange_options’:\r\n    crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]\r\n             int __ret = 0; \\\r\n                 ^\r\n    crfsuite/lib/crf/src/train_passive_aggressive.c:209:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’\r\n         BEGIN_PARAM_MAP(params, mode)\r\n         ^\r\n    crfsuite/lib/crf/src/train_passive_aggressive.c: In function ‘crfsuite_train_passive_aggressive’:\r\n    crfsuite/lib/crf/src/train_passive_aggressive.c:318:20: warning: unused variable ‘norm’ [-Wunused-variable]\r\n             floatval_t norm = 0., sum_loss = 0.;\r\n                        ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/crf1d_context.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/crf1d_context.o\r\n    In file included from crfsuite/lib/crf/src/crf1d.h:37:0,\r\n                     from crfsuite/lib/crf/src/crf1d_context.c:46:\r\n    crfsuite/lib/crf/src/crfsuite_internal.h:168:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     encoder_t *crf1d_create_encoder();\r\n     ^\r\n    crfsuite/lib/crf/src/crf1d_context.c: In function ‘crf1dc_new’:\r\n    crfsuite/lib/crf/src/crf1d_context.c:71:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n             if (ret = crf1dc_set_num_items(ctx, T)) {\r\n             ^\r\n    crfsuite/lib/crf/src/crf1d_context.c: In function ‘crf1dc_score’:\r\n    crfsuite/lib/crf/src/crf1d_context.c:440:15: warning: unused variable ‘L’ [-Wunused-variable]\r\n         const int L = ctx->num_labels;\r\n                   ^\r\n    crfsuite/lib/crf/src/crf1d_context.c:438:38: warning: unused variable ‘cur’ [-Wunused-variable]\r\n         const floatval_t *state = NULL, *cur = NULL, *trans = NULL;\r\n                                          ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/crf1d_encode.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/crf1d_encode.o\r\n    In file included from crfsuite/lib/crf/src/crf1d_encode.c:45:0:\r\n    crfsuite/lib/crf/src/crfsuite_internal.h:168:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     encoder_t *crf1d_create_encoder();\r\n     ^\r\n    In file included from crfsuite/lib/crf/src/crf1d_encode.c:47:0:\r\n    crfsuite/lib/crf/src/params.h:36:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     crfsuite_params_t* params_create_instance();\r\n     ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_state_score’:\r\n    crfsuite/lib/crf/src/crf1d_encode.c:128:15: warning: unused variable ‘L’ [-Wunused-variable]\r\n         const int L = crf1de->num_labels;\r\n                   ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_state_score_scaled’:\r\n    crfsuite/lib/crf/src/crf1d_encode.c:164:15: warning: unused variable ‘L’ [-Wunused-variable]\r\n         const int L = crf1de->num_labels;\r\n                   ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_features_on_path’:\r\n    crfsuite/lib/crf/src/crf1d_encode.c:260:15: warning: unused variable ‘L’ [-Wunused-variable]\r\n         const int L = crf1de->num_labels;\r\n                   ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:258:22: warning: unused variable ‘ctx’ [-Wunused-variable]\r\n         crf1d_context_t* ctx = crf1de->ctx;\r\n                          ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_observation_expectation’:\r\n    crfsuite/lib/crf/src/crf1d_encode.c:313:15: warning: unused variable ‘L’ [-Wunused-variable]\r\n         const int L = crf1de->num_labels;\r\n                   ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:311:22: warning: unused variable ‘ctx’ [-Wunused-variable]\r\n         crf1d_context_t* ctx = crf1de->ctx;\r\n                          ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_model_expectation’:\r\n    crfsuite/lib/crf/src/crf1d_encode.c:364:41: warning: unused variable ‘trans’ [-Wunused-variable]\r\n         const feature_refs_t *attr = NULL, *trans = NULL;\r\n                                             ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_save_model’:\r\n    crfsuite/lib/crf/src/crf1d_encode.c:543:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n         if (ret = crf1dmw_open_features(writer)) {\r\n         ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:577:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n                 if (ret = crf1dmw_put_feature(writer, fmap[k], &feat)) {\r\n                 ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:584:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n         if (ret = crf1dmw_close_features(writer)) {\r\n         ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:594:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n         if (ret = crf1dmw_open_labels(writer, L)) {\r\n         ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:601:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n                 if (ret = crf1dmw_put_label(writer, l, str)) {\r\n                 ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:607:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n         if (ret = crf1dmw_close_labels(writer)) {\r\n         ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:613:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n         if (ret = crf1dmw_open_attrs(writer, B)) {\r\n         ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:621:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n                     if (ret = crf1dmw_put_attr(writer, amap[a], str)) {\r\n                     ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:628:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n         if (ret = crf1dmw_close_attrs(writer)) {\r\n         ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:634:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n         if (ret = crf1dmw_open_labelrefs(writer, L+2)) {\r\n         ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:639:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n             if (ret = crf1dmw_put_labelref(writer, l, edge, fmap)) {\r\n             ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:643:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n         if (ret = crf1dmw_close_labelrefs(writer)) {\r\n         ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:649:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n         if (ret = crf1dmw_open_attrrefs(writer, B)) {\r\n         ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:655:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n                 if (ret = crf1dmw_put_attrref(writer, amap[a], attr, fmap)) {\r\n                 ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:660:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n         if (ret = crf1dmw_close_attrrefs(writer)) {\r\n         ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:500:22: warning: unused variable ‘threshold’ [-Wunused-variable]\r\n         const floatval_t threshold = 0.01;\r\n                          ^\r\n    In file included from crfsuite/lib/crf/src/crf1d_encode.c:47:0:\r\n    crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_exchange_options’:\r\n    crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]\r\n             int __ret = 0; \\\r\n                 ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c:688:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’\r\n         BEGIN_PARAM_MAP(params, mode)\r\n         ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c: In function ‘encoder_viterbi’:\r\n    crfsuite/lib/crf/src/crf1d_encode.c:889:9: warning: unused variable ‘i’ [-Wunused-variable]\r\n         int i;\r\n             ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c: At top level:\r\n    crfsuite/lib/crf/src/crf1d_encode.c:920:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     encoder_t *crf1d_create_encoder()\r\n                ^\r\n    crfsuite/lib/crf/src/crf1d_encode.c: In function ‘encoder_save_model’:\r\n    crfsuite/lib/crf/src/crf1d_encode.c:856:5: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized]\r\n         return crf1de_save_model(crf1de, filename, w, self->ds->data->attrs,  self->ds->data->labels, lg);\r\n         ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/quark.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/quark.o\r\n    In file included from crfsuite/lib/crf/src/quark.c:37:0:\r\n    crfsuite/lib/crf/src/quark.h:39:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     quark_t* quark_new();\r\n     ^\r\n    crfsuite/lib/crf/src/quark.c:72:10: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     quark_t* quark_new()\r\n              ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/crf/src/crf1d_feature.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/crf1d_feature.o\r\n    In file included from crfsuite/lib/crf/src/crf1d.h:37:0,\r\n                     from crfsuite/lib/crf/src/crf1d_feature.c:47:\r\n    crfsuite/lib/crf/src/crfsuite_internal.h:168:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     encoder_t *crf1d_create_encoder();\r\n     ^\r\n    crfsuite/lib/crf/src/crf1d_feature.c:77:22: warning: function declaration isn’t a prototype [-Wstrict-prototypes]\r\n     static featureset_t* featureset_new()\r\n                          ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/swig/crfsuite.cpp -o build/temp.linux-x86_64-2.7/crfsuite/swig/crfsuite.o\r\n    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/cqdb/src/cqdb.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/cqdb/src/cqdb.o\r\n    crfsuite/lib/cqdb/src/cqdb.c: In function ‘cqdb_to_id’:\r\n    crfsuite/lib/cqdb/src/cqdb.c:551:26: warning: variable ‘ksize’ set but not used [-Wunused-but-set-variable]\r\n                     uint32_t ksize;\r\n                              ^\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c crfsuite/lib/cqdb/src/lookup3.c -o build/temp.linux-x86_64-2.7/crfsuite/lib/cqdb/src/lookup3.o\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python2.7 -c liblbfgs/lib/lbfgs.c -o build/temp.linux-x86_64-2.7/liblbfgs/lib/lbfgs.o\r\n    c++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/pycrfsuite/_pycrfsuite.o build/temp.linux-x86_64-2.7/pycrfsuite/trainer_wrapper.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/holdout.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/train_averaged_perceptron.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/train_l2sgd.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/logging.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/crfsuite_train.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/dataset.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/params.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/train_lbfgs.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/train_arow.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/crf1d_model.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/crf1d_tag.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/crfsuite.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/dictionary.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/rumavl.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/train_passive_aggressive.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/crf1d_context.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/crf1d_encode.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/quark.o build/temp.linux-x86_64-2.7/crfsuite/lib/crf/src/crf1d_feature.o build/temp.linux-x86_64-2.7/crfsuite/swig/crfsuite.o build/temp.linux-x86_64-2.7/crfsuite/lib/cqdb/src/cqdb.o build/temp.linux-x86_64-2.7/crfsuite/lib/cqdb/src/lookup3.o build/temp.linux-x86_64-2.7/liblbfgs/lib/lbfgs.o -o build/lib.linux-x86_64-2.7/pycrfsuite/_pycrfsuite.so\r\n    \r\n  Found existing installation: lxml 3.3.3\r\n    Uninstalling lxml:\r\n      Successfully uninstalled lxml\r\n  Running setup.py install for lxml\r\n    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'\r\n      warnings.warn(msg)\r\n    Building lxml version 3.4.1.\r\n    Building without Cython.\r\n    ERROR: /bin/sh: 1: xslt-config: not found\r\n    \r\n    ** make sure the development packages of libxml2 and libxslt are installed **\r\n    \r\n    Using build configuration of libxslt\r\n    building 'lxml.etree' extension\r\n    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip_build_root/lxml/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w\r\n    In file included from src/lxml/lxml.etree.c:239:0:\r\n    /tmp/pip_build_root/lxml/src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory\r\n     #include \"libxml/xmlversion.h\"\r\n                                   ^\r\n    compilation terminated.\r\n    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1\r\n    Complete output from command /usr/bin/python -c \"import setuptools, tokenize;__file__='/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-MHzJKR-record/install-record.txt --single-version-externally-managed --compile:\r\n    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'\r\n\r\n  warnings.warn(msg)\r\n\r\nBuilding lxml version 3.4.1.\r\n\r\nBuilding without Cython.\r\n\r\nERROR: /bin/sh: 1: xslt-config: not found\r\n\r\n\r\n\r\n** make sure the development packages of libxml2 and libxslt are installed **\r\n\r\n\r\n\r\nUsing build configuration of libxslt\r\n\r\nrunning install\r\n\r\nrunning build\r\n\r\nrunning build_py\r\n\r\ncreating build\r\n\r\ncreating build/lib.linux-x86_64-2.7\r\n\r\ncreating build/lib.linux-x86_64-2.7/lxml\r\n\r\ncopying src/lxml/usedoctest.py -> build/lib.linux-x86_64-2.7/lxml\r\n\r\ncopying src/lxml/ElementInclude.py -> build/lib.linux-x86_64-2.7/lxml\r\n\r\ncopying src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-2.7/lxml\r\n\r\ncopying src/lxml/_elementpath.py -> build/lib.linux-x86_64-2.7/lxml\r\n\r\ncopying src/lxml/cssselect.py -> build/lib.linux-x86_64-2.7/lxml\r\n\r\ncopying src/lxml/builder.py -> build/lib.linux-x86_64-2.7/lxml\r\n\r\ncopying src/lxml/__init__.py -> build/lib.linux-x86_64-2.7/lxml\r\n\r\ncopying src/lxml/doctestcompare.py -> build/lib.linux-x86_64-2.7/lxml\r\n\r\ncopying src/lxml/sax.py -> build/lib.linux-x86_64-2.7/lxml\r\n\r\ncreating build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/__init__.py -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncreating build/lib.linux-x86_64-2.7/lxml/html\r\n\r\ncopying src/lxml/html/_diffcommand.py -> build/lib.linux-x86_64-2.7/lxml/html\r\n\r\ncopying src/lxml/html/usedoctest.py -> build/lib.linux-x86_64-2.7/lxml/html\r\n\r\ncopying src/lxml/html/_html5builder.py -> build/lib.linux-x86_64-2.7/lxml/html\r\n\r\ncopying src/lxml/html/ElementSoup.py -> build/lib.linux-x86_64-2.7/lxml/html\r\n\r\ncopying src/lxml/html/defs.py -> build/lib.linux-x86_64-2.7/lxml/html\r\n\r\ncopying src/lxml/html/_setmixin.py -> build/lib.linux-x86_64-2.7/lxml/html\r\n\r\ncopying src/lxml/html/diff.py -> build/lib.linux-x86_64-2.7/lxml/html\r\n\r\ncopying src/lxml/html/builder.py -> build/lib.linux-x86_64-2.7/lxml/html\r\n\r\ncopying src/lxml/html/__init__.py -> build/lib.linux-x86_64-2.7/lxml/html\r\n\r\ncopying src/lxml/html/formfill.py -> build/lib.linux-x86_64-2.7/lxml/html\r\n\r\ncopying src/lxml/html/clean.py -> build/lib.linux-x86_64-2.7/lxml/html\r\n\r\ncopying src/lxml/html/soupparser.py -> build/lib.linux-x86_64-2.7/lxml/html\r\n\r\ncopying src/lxml/html/html5parser.py -> build/lib.linux-x86_64-2.7/lxml/html\r\n\r\ncreating build/lib.linux-x86_64-2.7/lxml/isoschematron\r\n\r\ncopying src/lxml/isoschematron/__init__.py -> build/lib.linux-x86_64-2.7/lxml/isoschematron\r\n\r\ncopying src/lxml/lxml.etree.h -> build/lib.linux-x86_64-2.7/lxml\r\n\r\ncopying src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-2.7/lxml\r\n\r\ncopying src/lxml/includes/xpath.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/htmlparser.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/tree.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/c14n.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/schematron.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/xmlschema.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/relaxng.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/uri.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/xmlparser.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/xslt.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/xinclude.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/etreepublic.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/config.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/xmlerror.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/etree_defs.h -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncopying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-2.7/lxml/includes\r\n\r\ncreating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources\r\n\r\ncreating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng\r\n\r\ncopying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng\r\n\r\ncreating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl\r\n\r\ncopying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl\r\n\r\ncopying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl\r\n\r\ncreating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1\r\n\r\ncopying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1\r\n\r\ncopying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1\r\n\r\ncopying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1\r\n\r\ncopying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1\r\n\r\ncopying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1\r\n\r\ncopying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1\r\n\r\nrunning build_ext\r\n\r\nbuilding 'lxml.etree' extension\r\n\r\ncreating build/temp.linux-x86_64-2.7\r\n\r\ncreating build/temp.linux-x86_64-2.7/src\r\n\r\ncreating build/temp.linux-x86_64-2.7/src/lxml\r\n\r\nx86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip_build_root/lxml/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w\r\n\r\nIn file included from src/lxml/lxml.etree.c:239:0:\r\n\r\n/tmp/pip_build_root/lxml/src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory\r\n\r\n #include \"libxml/xmlversion.h\"\r\n\r\n                               ^\r\n\r\ncompilation terminated.\r\n\r\nerror: command 'x86_64-linux-gnu-gcc' failed with exit status 1\r\n\r\n----------------------------------------\r\n  Rolling back uninstall of lxml\r\nCleaning up...\r\nCommand /usr/bin/python -c \"import setuptools, tokenize;__file__='/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-MHzJKR-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/lxml\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/pip\", line 9, in <module>\r\n    load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()\r\n  File \"/usr/lib/python2.7/dist-packages/pip/__init__.py\", line 185, in main\r\n    return command.main(cmd_args)\r\n  File \"/usr/lib/python2.7/dist-packages/pip/basecommand.py\", line 161, in main\r\n    text = '\\n'.join(complete_log)\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 42: ordinal not in range(128)\r\njohn@john-All-Series:~$ "}}