Compilation error in TravisCI with gcc
Created by: SethMMorton
This error is different from the ones in #110 (closed), #111 (closed), #114 (closed), and #115 (closed) (it is the same type of issue, but it looks like the error message I get is not the same).
Failed building wheel for PyICU
Running setup.py clean for PyICU
Successfully built natsort
Failed to build PyICU
Installing collected packages: fastnumbers, PyICU, natsort
Running setup.py install for PyICU: started
Running setup.py install for PyICU: finished with status 'error'
Complete output from command /home/travis/build/SethMMorton/natsort/.tox/py37/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-hkftuer5/PyICU/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-record-5_cftvq9/install-record.txt --single-version-externally-managed --compile --install-headers /home/travis/build/SethMMorton/natsort/.tox/py37/include/site/python3.7/PyICU:
(running 'icu-config --version')
Building PyICU 2.4.1 for ICU 55.1
(running 'icu-config --cxxflags --cppflags')
Adding CFLAGS="--std=c++0x -I/usr/include" from /usr/bin/icu-config
(running 'icu-config --ldflags')
Adding LFLAGS="-L/usr/lib/x86_64-linux-gnu -licui18n -licuuc -licudata" from /usr/bin/icu-config
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
copying PyICU.py -> build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/icu
copying icu/__init__.py -> build/lib.linux-x86_64-3.7/icu
running build_ext
building '_icu' extension
creating build/temp.linux-x86_64-3.7
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC -I/opt/python/3.7.1/include/python3.7m -c _icu.cpp -o build/temp.linux-x86_64-3.7/_icu.o --std=c++0x -I/usr/include -DPYICU_VER="2.4.1"
In file included from _icu.cpp:29:0:
bases.h:51:12: error: conflicting return type specified for ‘virtual char16_t PythonReplaceable::getCharAt(int32_t) const’
char16_t getCharAt(int32_t offset) const override;
^
In file included from /usr/include/x86_64-linux-gnu/unicode/unistr.h:30:0,
from common.h:106,
from _icu.cpp:27:
/usr/include/x86_64-linux-gnu/unicode/rep.h:231:19: error: overriding ‘virtual UChar icu_55::Replaceable::getCharAt(int32_t) const’
virtual UChar getCharAt(int32_t offset) const = 0;
^
error: command 'gcc' failed with exit status 1
Full log is at https://travis-ci.org/SethMMorton/natsort/jobs/610766845