Skip to content

update-environment error!! Please fix it #5

@iweey

Description

@iweey

./base/casts.h: In function ‘bool loose_enum_test(int)’:

./base/casts.h:280:53: warning: typedef ‘missing_MAKE_ENUM_LIMITS’ locally defined but not used [-Wunused-local-typedefs]

COMPILE_ASSERT(enum_limits::is_specialized, missing_MAKE_ENUM_LIMITS);

                                                 ^

./base/macros.h:47:39: note: in definition of macro ‘COMPILE_ASSERT’

typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]

                                   ^

./base/casts.h:283:60: warning: typedef ‘unexpected_int_size’ locally defined but not used [-Wunused-local-typedefs]

COMPILE_ASSERT(sizeof(e_val) == 4 || sizeof(e_val) == 8, unexpected_int_size);

                                                        ^

./base/macros.h:47:39: note: in definition of macro ‘COMPILE_ASSERT’

typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]

                                   ^

./base/casts.h: In function ‘bool tight_enum_test(int)’:

./base/casts.h:334:53: warning: typedef ‘missing_MAKE_ENUM_LIMITS’ locally defined but not used [-Wunused-local-typedefs]

COMPILE_ASSERT(enum_limits::is_specialized, missing_MAKE_ENUM_LIMITS);

                                                 ^

./base/macros.h:47:39: note: in definition of macro ‘COMPILE_ASSERT’

typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]

                                   ^

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DNDEBUG=1 -DOS_LINUX -DHASH_NAMESPACE=__gnu_cxx -DS2_USE_EXACTFLOAT -I. -I/usr/include/python2.7 -c util/math/mathutil.cc -o build/temp.linux-x86_64-2.7/util/math/mathutil.o

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]

In file included from ./base/casts.h:18:0,

             from ./base/basictypes.h:9,

             from ./util/math/mathutil.h:20,

             from util/math/mathutil.cc:3:

./base/casts.h: In function ‘To down_cast(From&)’:

./base/casts.h:89:49: warning: typedef ‘target_type_not_a_reference’ locally defined but not used [-Wunused-local-typedefs]

COMPILE_ASSERT(base::is_reference::value, target_type_not_a_reference);

                                             ^

./base/macros.h:47:39: note: in definition of macro ‘COMPILE_ASSERT’

typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]

                                   ^

In file included from ./base/basictypes.h:9:0,

             from ./util/math/mathutil.h:20,

             from util/math/mathutil.cc:3:

./base/casts.h: In function ‘Dest bit_cast(const Source&)’:

./base/casts.h:163:16: warning: typedef ‘VerifySizesAreEqual’ locally defined but not used [-Wunused-local-typedefs]

typedef char VerifySizesAreEqual [sizeof(Dest) == sizeof(Source) ? 1 : -1];

            ^

In file included from ./base/casts.h:18:0,

             from ./base/basictypes.h:9,

             from ./util/math/mathutil.h:20,

             from util/math/mathutil.cc:3:

./base/casts.h: In function ‘bool loose_enum_test(int)’:

./base/casts.h:280:53: warning: typedef ‘missing_MAKE_ENUM_LIMITS’ locally defined but not used [-Wunused-local-typedefs]

COMPILE_ASSERT(enum_limits::is_specialized, missing_MAKE_ENUM_LIMITS);

                                                 ^

./base/macros.h:47:39: note: in definition of macro ‘COMPILE_ASSERT’

typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]

                                   ^

./base/casts.h:283:60: warning: typedef ‘unexpected_int_size’ locally defined but not used [-Wunused-local-typedefs]

COMPILE_ASSERT(sizeof(e_val) == 4 || sizeof(e_val) == 8, unexpected_int_size);

                                                        ^

./base/macros.h:47:39: note: in definition of macro ‘COMPILE_ASSERT’

typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]

                                   ^

./base/casts.h: In function ‘bool tight_enum_test(int)’:

./base/casts.h:334:53: warning: typedef ‘missing_MAKE_ENUM_LIMITS’ locally defined but not used [-Wunused-local-typedefs]

COMPILE_ASSERT(enum_limits::is_specialized, missing_MAKE_ENUM_LIMITS);

                                                 ^

./base/macros.h:47:39: note: in definition of macro ‘COMPILE_ASSERT’

typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]

                                   ^

In file included from ./util/math/mathutil.h:22:0,

             from util/math/mathutil.cc:3:

./util/math/mathlimits.h: At global scope:

./util/math/mathlimits.h:98:79: error: field initializer is not constant

(((Type(1) << (sizeof(Type)_8 - 2)) - 1) + (Type(1) << (sizeof(Type)_8 - 2)))

                                                                           ^

./util/math/mathlimits.h:134:31: note: in expansion of macro ‘SIGNED_INT_MAX’

static const Type kPosMax = SIGNED_INT_MAX(Type); \

                           ^

./util/math/mathlimits.h:166:1: note: in expansion of macro ‘DECL_SIGNED_INT_LIMITS’

DECL_SIGNED_INT_LIMITS(signed int, unsigned int)

^

./util/math/mathlimits.h:136:28: error: field initializer is not constant

static const Type kMax = kPosMax; \

                        ^

./util/math/mathlimits.h:166:1: note: in expansion of macro ‘DECL_SIGNED_INT_LIMITS’

DECL_SIGNED_INT_LIMITS(signed int, unsigned int)

^

./util/math/mathlimits.h:98:79: error: field initializer is not constant

(((Type(1) << (sizeof(Type)_8 - 2)) - 1) + (Type(1) << (sizeof(Type)_8 - 2)))

                                                                           ^

./util/math/mathlimits.h:134:31: note: in expansion of macro ‘SIGNED_INT_MAX’

static const Type kPosMax = SIGNED_INT_MAX(Type); \

                           ^

./util/math/mathlimits.h:167:1: note: in expansion of macro ‘DECL_SIGNED_INT_LIMITS’

DECL_SIGNED_INT_LIMITS(signed long int, unsigned long int)

^

./util/math/mathlimits.h:136:28: error: field initializer is not constant

static const Type kMax = kPosMax; \

                        ^

./util/math/mathlimits.h:167:1: note: in expansion of macro ‘DECL_SIGNED_INT_LIMITS’

DECL_SIGNED_INT_LIMITS(signed long int, unsigned long int)

^

./util/math/mathlimits.h:98:79: error: field initializer is not constant

(((Type(1) << (sizeof(Type)_8 - 2)) - 1) + (Type(1) << (sizeof(Type)_8 - 2)))

                                                                           ^

./util/math/mathlimits.h:134:31: note: in expansion of macro ‘SIGNED_INT_MAX’

static const Type kPosMax = SIGNED_INT_MAX(Type); \

                           ^

./util/math/mathlimits.h:168:1: note: in expansion of macro ‘DECL_SIGNED_INT_LIMITS’

DECL_SIGNED_INT_LIMITS(signed long long int, unsigned long long int)

^

./util/math/mathlimits.h:136:28: error: field initializer is not constant

static const Type kMax = kPosMax; \

                        ^

./util/math/mathlimits.h:168:1: note: in expansion of macro ‘DECL_SIGNED_INT_LIMITS’

DECL_SIGNED_INT_LIMITS(signed long long int, unsigned long long int)

^

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip_build_root/s2/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-VY8wxA-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/s2
Traceback (most recent call last):
File "/root/envs/vf-dev/bin/pip", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/pip/init.py", line 185, in main
return command.main(cmd_args)
File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions