ovalhub / pyicu

The PyICU project repository has moved to https://pyicu.org.
Other
133 stars 49 forks source link

Compilation error in TravisCI with gcc #116

Closed SethMMorton closed 4 years ago

SethMMorton commented 4 years ago

This error is different from the ones in #110, #111, #114, and #115 (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

ovalhub commented 4 years ago

There is a fix in trunk for this. Can you please try it out and let me know if your build completes then ? Thanks !

Andi..

On Nov 12, 2019, at 09:23, Seth Morton notifications@github.com wrote:

This error is different from the ones in #110, #111, #114, and #115 (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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ovalhub commented 4 years ago

this is the same error as the second error on #114