Running setup.py install for pyicu ... error

如题所示,在开发中需要pyicu库,但是安装一直失败:
使用的linux环境信息:

Linux version 3.10.0-1127.19.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ) #1 SMP Tue Aug 25 17:23:54 UTC 2020

部分错误信息

    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c charset.cpp -o build/temp.linux-x86_64-3.8/charset.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from charset.cpp:27:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c collator.cpp -o build/temp.linux-x86_64-3.8/collator.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from collator.cpp:27:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c common.cpp -o build/temp.linux-x86_64-3.8/common.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from common.cpp:33:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c dateformat.cpp -o build/temp.linux-x86_64-3.8/dateformat.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from dateformat.cpp:27:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c errors.cpp -o build/temp.linux-x86_64-3.8/errors.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c format.cpp -o build/temp.linux-x86_64-3.8/format.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from format.cpp:27:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c gender.cpp -o build/temp.linux-x86_64-3.8/gender.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from gender.cpp:27:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c idna.cpp -o build/temp.linux-x86_64-3.8/idna.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from idna.cpp:30:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c iterators.cpp -o build/temp.linux-x86_64-3.8/iterators.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from iterators.cpp:27:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c layoutengine.cpp -o build/temp.linux-x86_64-3.8/layoutengine.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c locale.cpp -o build/temp.linux-x86_64-3.8/locale.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from locale.cpp:38:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c measureunit.cpp -o build/temp.linux-x86_64-3.8/measureunit.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from measureunit.cpp:27:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c normalizer.cpp -o build/temp.linux-x86_64-3.8/normalizer.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from normalizer.cpp:27:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c numberformat.cpp -o build/temp.linux-x86_64-3.8/numberformat.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from numberformat.cpp:27:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c regex.cpp -o build/temp.linux-x86_64-3.8/regex.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from regex.cpp:27:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c script.cpp -o build/temp.linux-x86_64-3.8/script.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from script.cpp:30:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c search.cpp -o build/temp.linux-x86_64-3.8/search.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from search.cpp:27:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c shape.cpp -o build/temp.linux-x86_64-3.8/shape.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from shape.cpp:30:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c spoof.cpp -o build/temp.linux-x86_64-3.8/spoof.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from spoof.cpp:27:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c transliterator.cpp -o build/temp.linux-x86_64-3.8/transliterator.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from transliterator.cpp:27:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    gcc -pthread -B /home/jiejunjing/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiejunjing/anaconda3/include/python3.8 -c tries.cpp -o build/temp.linux-x86_64-3.8/tries.o -I/home/jiejunjing/anaconda3/include -DPYICU_VER="2.6" -DPYICU_ICU_MAX_VER="68"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from tries.cpp:27:0:
    bases.h:53:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       int32_t getLength() const override;
                           ^
    bases.h:55:35: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar getCharAt(int32_t offset) const override;
                                       ^
    bases.h:59:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UChar32 getChar32At(int32_t offset) const override;
                                           ^
    bases.h:62:60: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, UnicodeString &target) const override;
                                                                ^
    bases.h:64:62: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
           int32_t start, int32_t limit, const UnicodeString &text) override;
                                                                  ^
    bases.h:65:55: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       void copy(int32_t start, int32_t limit, int32_t dest) override;
                                                           ^
    bases.h:66:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
       UBool hasMetaData() const override;
                           ^
    tries.cpp:33:7: error: expected nested-name-specifier before ‘BytesTrieIterator’
     using BytesTrieIterator = BytesTrie::Iterator;
           ^
    tries.cpp:33:7: error: ‘BytesTrieIterator’ has not been declared
    tries.cpp:33:25: error: expected ‘;’ before ‘=’ token
     using BytesTrieIterator = BytesTrie::Iterator;
                             ^
    tries.cpp:33:25: error: expected unqualified-id before ‘=’ token
    tries.cpp:34:7: error: expected nested-name-specifier before ‘BytesTrieState’
     using BytesTrieState = BytesTrie::State;
           ^
    tries.cpp:34:7: error: ‘BytesTrieState’ has not been declared
    tries.cpp:34:22: error: expected ‘;’ before ‘=’ token
     using BytesTrieState = BytesTrie::State;
                          ^
    tries.cpp:34:22: error: expected unqualified-id before ‘=’ token
    tries.cpp:35:7: error: expected nested-name-specifier before ‘UCharsTrieIterator’
     using UCharsTrieIterator = UCharsTrie::Iterator;
           ^
    tries.cpp:35:7: error: ‘UCharsTrieIterator’ has not been declared
    tries.cpp:35:26: error: expected ‘;’ before ‘=’ token
     using UCharsTrieIterator = UCharsTrie::Iterator;
                              ^
    tries.cpp:35:26: error: expected unqualified-id before ‘=’ token
    tries.cpp:36:7: error: expected nested-name-specifier before ‘UCharsTrieState’
     using UCharsTrieState = UCharsTrie::State;
           ^
    tries.cpp:36:7: error: ‘UCharsTrieState’ has not been declared
    tries.cpp:36:23: error: expected ‘;’ before ‘=’ token
     using UCharsTrieState = UCharsTrie::State;
                           ^
    tries.cpp:36:23: error: expected unqualified-id before ‘=’ token
    tries.cpp:84:5: error: ‘BytesTrieIterator’ does not name a type
         BytesTrieIterator *object;
         ^
    In file included from tries.cpp:29:0:
    tries.cpp:105:14: error: ‘BytesTrieIterator’ was not declared in this scope
                  BytesTrieIterator, t_bytestrieiterator_init, NULL)
                  ^
    macros.h:199:23: note: in definition of macro ‘DECLARE_TYPE’
     PyObject *wrap_##name(icuClass *object, int flags)                        \
                           ^
    macros.h:199:33: error: ‘object’ was not declared in this scope
     PyObject *wrap_##name(icuClass *object, int flags)                        \
                                     ^
    tries.cpp:104:1: note: in expansion of macro ‘DECLARE_TYPE’
     DECLARE_TYPE(BytesTrieIterator, t_bytestrieiterator, UMemory,
     ^
    macros.h:199:41: error: expected primary-expression before ‘int’
     PyObject *wrap_##name(icuClass *object, int flags)                        \
                                             ^
    tries.cpp:104:1: note: in expansion of macro ‘DECLARE_TYPE’
     DECLARE_TYPE(BytesTrieIterator, t_bytestrieiterator, UMemory,
     ^
    macros.h:199:50: error: expression list treated as compound expression in initializer [-fpermissive]
     PyObject *wrap_##name(icuClass *object, int flags)                        \
                                                      ^
    tries.cpp:104:1: note: in expansion of macro ‘DECLARE_TYPE’
     DECLARE_TYPE(BytesTrieIterator, t_bytestrieiterator, UMemory,
     ^
    macros.h:200:1: error: expected ‘,’ or ‘;’ before ‘{’ token
     {                                                                         \
     ^
    tries.cpp:104:1: note: in expansion of macro ‘DECLARE_TYPE’
     DECLARE_TYPE(BytesTrieIterator, t_bytestrieiterator, UMemory,
     ^
    tries.cpp:62:12: warning: ‘int t_bytestriebuilder_init(t_bytestriebuilder*, PyObject*, PyObject*)’ declared ‘static’ but never defined [-Wunused-function]
     static int t_bytestriebuilder_init(
                ^
    tries.cpp:64:18: warning: ‘PyObject* t_bytestriebuilder_add(t_bytestriebuilder*, PyObject*)’ declared ‘static’ but never defined [-Wunused-function]
     static PyObject *t_bytestriebuilder_add(
                      ^
    tries.cpp:66:18: warning: ‘PyObject* t_bytestriebuilder_clear(t_bytestriebuilder*)’ declared ‘static’ but never defined [-Wunused-function]
     static PyObject *t_bytestriebuilder_clear(t_bytestriebuilder *self);
                      ^
    tries.cpp:67:18: warning: ‘PyObject* t_bytestriebuilder_build(t_bytestriebuilder*, PyObject*)’ declared ‘static’ but never defined [-Wunused-function]
     static PyObject *t_bytestriebuilder_build(
                      ^
    tries.cpp:89:18: warning: ‘PyObject* t_bytestrieiterator_reset(t_bytestrieiterator*)’ declared ‘static’ but never defined [-Wunused-function]
     static PyObject *t_bytestrieiterator_reset(t_bytestrieiterator *self);
                      ^
    tries.cpp:90:18: warning: ‘PyObject* t_bytestrieiterator_hasNext(t_bytestrieiterator*)’ declared ‘static’ but never defined [-Wunused-function]
     static PyObject *t_bytestrieiterator_hasNext(t_bytestrieiterator *self);
                      ^
    tries.cpp:91:18: warning: ‘PyObject* t_bytestrieiterator_next(t_bytestrieiterator*)’ declared ‘static’ but never defined [-Wunused-function]
     static PyObject *t_bytestrieiterator_next(t_bytestrieiterator *self);
                      ^
    tries.cpp:92:18: warning: ‘PyObject* t_bytestrieiterator_getString(t_bytestrieiterator*)’ declared ‘static’ but never defined [-Wunused-function]
     static PyObject *t_bytestrieiterator_getString(t_bytestrieiterator *self);
                      ^
    tries.cpp:93:18: warning: ‘PyObject* t_bytestrieiterator_getValue(t_bytestrieiterator*)’ declared ‘static’ but never defined [-Wunused-function]
     static PyObject *t_bytestrieiterator_getValue(t_bytestrieiterator *self);
                      ^
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/jiejunjing/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lgeqmt2z/pyicu/setup.py'"'"'; __file__='"'"'/tmp/pip-install-lgeqmt2z/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-btjezw8j/install-record.txt --single-version-externally-managed --compile --install-headers /home/jiejunjing/anaconda3/include/python3.8/pyicu Check the logs for full command output.

解决方案:

  1. 安装libicu-devel
  2. 执行命令export CFLAGS=-std=c++11
  3. pip install pyicu成功

Running setup.py install for pyicu ... error

上一篇:fangbushi


下一篇:CMAKE——message()函数