Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Appveyor runs on MinGW currently fails with this:
src\thrift\generate\t_js_generator.cc:48:14: error: 'int64_t' does not name a type 48 | static const int64_t max_safe_integer = 0x1fffffffffffff; | ^~~~~~~ src\thrift\generate\t_js_generator.cc:36:1: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'? 35 | #include "thrift/version.h" +++ |+#include <cstdint> 36 | src\thrift\generate\t_js_generator.cc:50:14: error: 'int64_t' does not name a type 50 | static const int64_t min_safe_integer = -max_safe_integer; | ^~~~~~~ src\thrift\generate\t_js_generator.cc:50:14: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'? src\thrift\generate\t_js_generator.cc: In member function 'std::string t_js_generator::render_const_value(t_type*, t_const_value*)': src\thrift\generate\t_js_generator.cc:719:30: error: 'max_safe_integer' was not declared in this scope 719 | if (integer_value <= max_safe_integer && integer_value >= min_safe_integer) { | ^~~~~~~~~~~~~~~~ src\thrift\generate\t_js_generator.cc:719:67: error: 'min_safe_integer' was not declared in this scope 719 | if (integer_value <= max_safe_integer && integer_value >= min_safe_integer) { | ^~~~~~~~~~~~~~~~ mingw32-make[2]: *** [compiler\cpp\CMakeFiles\thrift-compiler.dir\build.make:316: compiler/cpp/CMakeFiles/thrift-compiler.dir/src/thrift/generate/t_js_generator.cc.obj] Error 1 mingw32-make[1]: *** [CMakeFiles\Makefile2:1141: compiler/cpp/CMakeFiles/thrift-compiler.dir/all] Error 2 mingw32-make: *** [Makefile:165: all] Error 2 C:\projects\thrift>set lastexitcode=2