ScaCTM icon indicating copy to clipboard operation
ScaCTM copied to clipboard

make时出错

Open ghost opened this issue 9 years ago • 3 comments

请问这是什么原因呢? make -j的时候 /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:55:9: error: ‘int64_t’ does not name a type typedef int64_t int64; /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:56:9: error: reference to ‘uint64_t’ is ambiguous typedef uint64_t uint64; /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:56:9: error: ‘uint64_t’ does not name a type typedef uint64_t uint64; /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:128:41: error: ‘int64’ does not name a type extern bool RegisterFlagValidator(const int64* flag, /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:130:41: error: ‘uint64’ does not name a type extern bool RegisterFlagValidator(const uint64* flag,

ghost avatar Sep 24 '15 10:09 ghost

Hi,

Could you provide some environmental setups, like OS and compiler version?

xunzheng avatar Sep 24 '15 19:09 xunzheng

ubuntu14.04 LTS gcc4.8 I checked usr/include/stdint.h, uint64_t was defined.

and I turn off -j: zhuyi@zhuyi-OptiPlex-990:~/code/ScaCTM/src$ make /home/zhuyi/code/ScaCTM/third_party/third_party/bin/mpicxx -c -MMD -MP -O4 -m64 -I/home/zhuyi/code/ScaCTM/src -I/home/zhuyi/code/ScaCTM/src/commons -I/home/zhuyi/code/ScaCTM/src/commons/Server -I/home/zhuyi/code/ScaCTM/src/Unigram_Model -I/home/zhuyi/code/ScaCTM/third_party/third_party/include /home/zhuyi/code/ScaCTM/src/commons/Context.cc -o /home/zhuyi/code/ScaCTM/src/commons/Context.o In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:48:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/inttypes.h:290:8: error: reference to ‘intmax_t’ is ambiguous extern intmax_t imaxabs (intmax_t n) __THROW __attribute ((const)); ^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:42, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/stdint.h:134:19: note: candidates are: typedef long int intmax_t typedef long int intmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer_fwd.hpp:17:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer/static_log2.hpp:19, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/detail/hash_float.hpp:17, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/hash.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash.hpp:6, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:20, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/cstdint.hpp:306:50: note: typedef boost::long_long_type boost::intmax_t typedef ::boost::long_long_type intmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:48:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/inttypes.h:290:8: error: ‘intmax_t’ does not name a type extern intmax_t imaxabs (intmax_t n) __THROW __attribute ((const)); ^ /usr/include/inttypes.h:293:27: error: reference to ‘intmax_t’ is ambiguous extern imaxdiv_t imaxdiv (intmax_t numer, intmax_t __denom) ^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:42, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/stdint.h:134:19: note: candidates are: typedef long int intmax_t typedef long int intmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer_fwd.hpp:17:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer/static_log2.hpp:19, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/detail/hash_float.hpp:17, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/hash.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash.hpp:6, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:20, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/cstdint.hpp:306:50: note: typedef boost::long_long_type boost::intmax_t typedef ::boost::long_long_type intmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:48:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/inttypes.h:293:45: error: reference to ‘intmax_t’ is ambiguous extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom) ^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:42, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/stdint.h:134:19: note: candidates are: typedef long int intmax_t typedef long int intmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer_fwd.hpp:17:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer/static_log2.hpp:19, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/detail/hash_float.hpp:17, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/hash.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash.hpp:6, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:20, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/cstdint.hpp:306:50: note: typedef boost::long_long_type boost::intmax_t typedef ::boost::long_long_type intmax_t; ^ In file included from /usr/include/features.h:374:0, from /usr/include/x86_64-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:426, from /usr/include/c++/4.8/cstddef:41, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/config/select_stdlib_config.hpp:18, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/config.hpp:40, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map_fwd.hpp:13, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /usr/include/inttypes.h:294:7: error: expected ‘,’ or ‘;’ before ‘throw’ __THROW __attribute ((const)); ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:48:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/inttypes.h:297:8: error: reference to ‘intmax_t’ is ambiguous extern intmax_t strtoimax (const char **restrict __nptr, ^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:42, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/stdint.h:134:19: note: candidates are: typedef long int intmax_t typedef long int intmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer_fwd.hpp:17:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer/static_log2.hpp:19, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/detail/hash_float.hpp:17, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/hash.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash.hpp:6, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:20, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/cstdint.hpp:306:50: note: typedef boost::long_long_type boost::intmax_t typedef ::boost::long_long_type intmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:48:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/inttypes.h:297:8: error: ‘intmax_t’ does not name a type extern intmax_t strtoimax (const char *__restrict __nptr, ^ /usr/include/inttypes.h:301:8: error: reference to ‘uintmax_t’ is ambiguous extern uintmax_t strtoumax (const char *__restrict __nptr, ^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:42, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/stdint.h:135:27: note: candidates are: typedef long unsigned int uintmax_t typedef unsigned long int uintmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer_fwd.hpp:17:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer/static_log2.hpp:19, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/detail/hash_float.hpp:17, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/hash.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash.hpp:6, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:20, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/cstdint.hpp:307:42: note: typedef boost::ulong_long_type boost::uintmax_t typedef ::boost::ulong_long_type uintmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:48:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/inttypes.h:301:8: error: ‘uintmax_t’ does not name a type extern uintmax_t strtoumax (const char *__restrict __nptr, ^ /usr/include/inttypes.h:305:8: error: reference to ‘intmax_t’ is ambiguous extern intmax_t wcstoimax (const __gwchar_t *__restrict __nptr, ^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:42, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/stdint.h:134:19: note: candidates are: typedef long int intmax_t typedef long int intmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer_fwd.hpp:17:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer/static_log2.hpp:19, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/detail/hash_float.hpp:17, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/hash.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash.hpp:6, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:20, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/cstdint.hpp:306:50: note: typedef boost::long_long_type boost::intmax_t typedef ::boost::long_long_type intmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:48:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/inttypes.h:305:8: error: ‘intmax_t’ does not name a type extern intmax_t wcstoimax (const __gwchar_t *__restrict __nptr, ^ /usr/include/inttypes.h:310:8: error: reference to ‘uintmax_t’ is ambiguous extern uintmax_t wcstoumax (const _gwchar_t __restrict __nptr, ^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:42, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/stdint.h:135:27: note: candidates are: typedef long unsigned int uintmax_t typedef unsigned long int uintmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer_fwd.hpp:17:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer/static_log2.hpp:19, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/detail/hash_float.hpp:17, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/hash.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash.hpp:6, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:20, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/cstdint.hpp:307:42: note: typedef boost::ulong_long_type boost::uintmax_t typedef ::boost::ulong_long_type uintmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:48:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/inttypes.h:310:8: error: ‘uintmax_t’ does not name a type extern uintmax_t wcstoumax (const __gwchar_t __restrict __nptr, ^ /usr/include/inttypes.h:323:17: error: reference to ‘intmax_t’ is ambiguous __extern_inline intmax_t ^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:42, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/stdint.h:134:19: note: candidates are: typedef long int intmax_t typedef long int intmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer_fwd.hpp:17:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer/static_log2.hpp:19, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/detail/hash_float.hpp:17, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/hash.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash.hpp:6, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:20, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/cstdint.hpp:306:50: note: typedef boost::long_long_type boost::intmax_t typedef ::boost::long_long_type intmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:48:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/inttypes.h:323:17: error: ‘intmax_t’ does not name a type __extern_inline intmax_t ^ /usr/include/inttypes.h:335:17: error: reference to ‘uintmax_t’ is ambiguous __extern_inline uintmax_t ^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:42, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/stdint.h:135:27: note: candidates are: typedef long unsigned int uintmax_t typedef unsigned long int uintmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer_fwd.hpp:17:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer/static_log2.hpp:19, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/detail/hash_float.hpp:17, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/hash.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash.hpp:6, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:20, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/cstdint.hpp:307:42: note: typedef boost::ulong_long_type boost::uintmax_t typedef ::boost::ulong_long_type uintmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:48:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/inttypes.h:335:17: error: ‘uintmax_t’ does not name a type __extern_inline uintmax_t ^ /usr/include/inttypes.h:347:17: error: reference to ‘intmax_t’ is ambiguous __extern_inline intmax_t ^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:42, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/stdint.h:134:19: note: candidates are: typedef long int intmax_t typedef long int intmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer_fwd.hpp:17:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer/static_log2.hpp:19, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/detail/hash_float.hpp:17, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/hash.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash.hpp:6, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:20, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/cstdint.hpp:306:50: note: typedef boost::long_long_type boost::intmax_t typedef ::boost::long_long_type intmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:48:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/inttypes.h:347:17: error: ‘intmax_t’ does not name a type __extern_inline intmax_t ^ /usr/include/inttypes.h:361:17: error: reference to ‘uintmax_t’ is ambiguous __extern_inline uintmax_t ^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:42, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/stdint.h:135:27: note: candidates are: typedef long unsigned int uintmax_t typedef unsigned long int uintmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer_fwd.hpp:17:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer/static_log2.hpp:19, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/detail/hash_float.hpp:17, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/hash.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash.hpp:6, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:20, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/cstdint.hpp:307:42: note: typedef boost::ulong_long_type boost::uintmax_t typedef ::boost::ulong_long_type uintmax_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:48:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/inttypes.h:361:17: error: ‘uintmax_t’ does not name a type __extern_inline uintmax_t ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83:0, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:55:9: error: reference to ‘int64_t’ is ambiguous typedef int64_t int64; ^ In file included from /usr/include/stdlib.h:314:0, from /usr/include/c++/4.8/cstdlib:72, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/config/platform/linux.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/config.hpp:53, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map_fwd.hpp:13, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /usr/include/x86_64-linux-gnu/sys/types.h:197:1: note: candidates are: typedef long int int64_t __intN_t (64, __DI); ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer_fwd.hpp:17:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer/static_log2.hpp:19, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/detail/hash_float.hpp:17, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/hash.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash.hpp:6, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:20, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/cstdint.hpp:308:50: note: typedef boost::long_long_type boost::int64_t typedef ::boost::long_long_type int64_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83:0, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:55:9: error: ‘int64_t’ does not name a type typedef int64_t int64; ^ /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:56:9: error: reference to ‘uint64_t’ is ambiguous typedef uint64_t uint64; ^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:42, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/stdint.h:55:27: note: candidates are: typedef long unsigned int uint64_t typedef unsigned long int uint64_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer_fwd.hpp:17:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer/static_log2.hpp:19, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/detail/hash_float.hpp:17, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/hash.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash.hpp:6, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:20, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/cstdint.hpp:311:42: note: typedef boost::ulong_long_type boost::uint64_t typedef ::boost::ulong_long_type uint64_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83:0, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:56:9: error: ‘uint64_t’ does not name a type typedef uint64_t uint64; ^ In file included from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27:0: /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:128:41: error: ‘int64’ does not name a type extern bool RegisterFlagValidator(const int64 flag, ^ /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:128:48: error: ISO C++ forbids declaration of ‘flag’ with no type [-fpermissive] extern bool RegisterFlagValidator(const int64* flag, ^ /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:129:68: error: ‘int64’ has not been declared bool (validate_fn)(const char, int64)); ^ /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:130:41: error: ‘uint64’ does not name a type extern bool RegisterFlagValidator(const uint64* flag, ^ /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:130:49: error: ISO C++ forbids declaration of ‘flag’ with no type [-fpermissive] extern bool RegisterFlagValidator(const uint64* flag, ^ /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:131:68: error: ‘uint64’ has not been declared bool (validate_fn)(const char, uint64)); ^ /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:315:8: error: ‘int64’ does not name a type extern int64 Int64FromEnv(const char varname, int64 defval); ^ /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:316:8: error: ‘uint64’ does not name a type extern uint64 Uint64FromEnv(const char *varname, uint64 defval); ^ In file included from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:30:0: /home/zhuyi/code/ScaCTM/third_party/third_party/include/glog/logging.h:93:9: error: reference to ‘int64_t’ is ambiguous typedef int64_t int64; ^ In file included from /usr/include/stdlib.h:314:0, from /usr/include/c++/4.8/cstdlib:72, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/config/platform/linux.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/config.hpp:53, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map_fwd.hpp:13, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /usr/include/x86_64-linux-gnu/sys/types.h:197:1: note: candidates are: typedef long int int64_t intN_t (64, __DI); ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer_fwd.hpp:17:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer/static_log2.hpp:19, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/detail/hash_float.hpp:17, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/hash.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash.hpp:6, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:20, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/cstdint.hpp:308:50: note: typedef boost::long_long_type boost::int64_t typedef ::boost::long_long_type int64_t; ^ In file included from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:30:0: /home/zhuyi/code/ScaCTM/third_party/third_party/include/glog/logging.h:93:9: error: ‘int64_t’ does not name a type typedef int64_t int64; ^ /home/zhuyi/code/ScaCTM/third_party/third_party/include/glog/logging.h:94:9: error: reference to ‘uint64_t’ is ambiguous typedef uint64_t uint64; ^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags_declare.h:42, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/gflags/gflags.h:83, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:27: /usr/include/stdint.h:55:27: note: candidates are: typedef long unsigned int uint64_t typedef unsigned long int uint64_t; ^ In file included from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer_fwd.hpp:17:0, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/integer/static_log2.hpp:19, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/detail/hash_float.hpp:17, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash/hash.hpp:15, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/functional/hash.hpp:6, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered/unordered_map.hpp:20, from /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/unordered_map.hpp:16, from /home/zhuyi/code/ScaCTM/src/commons/Context.h:29, from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:26: /home/zhuyi/code/ScaCTM/third_party/third_party/include/boost/cstdint.hpp:311:42: note: typedef boost::ulong_long_type boost::uint64_t typedef ::boost::ulong_long_type uint64_t; ^ In file included from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:30:0: /home/zhuyi/code/ScaCTM/third_party/third_party/include/glog/logging.h:94:9: error: ‘uint64_t’ does not name a type typedef uint64_t uint64; ^ In file included from /home/zhuyi/code/ScaCTM/src/commons/Context.cc:30:0: /home/zhuyi/code/ScaCTM/third_party/third_party/include/glog/logging.h:1228:10: error: ‘int64’ does not name a type static int64 num_messages(int severity); ^ /home/zhuyi/code/ScaCTM/third_party/third_party/include/glog/logging.h:1249:10: error: ‘int64’ does not name a type static int64 num_messages[NUM_SEVERITIES]; // under log_mutex ^ /home/zhuyi/code/ScaCTM/third_party/third_party/include/glog/logging.h:1459:43: error: ‘int64’ has not been declared int64 limit, int64 keep); ^ /home/zhuyi/code/ScaCTM/third_party/third_party/include/glog/logging.h:1459:56: error: ‘int64’ has not been declared int64 limit, int64 keep); ^ make: ** [/home/zhuyi/code/ScaCTM/src/commons/Context.o] Error 1

ghost avatar Sep 25 '15 07:09 ghost

Hi, I solved this problem. The reason is that the int64 defined in third party "boosting" conficted with which defined in "std", that's why the error information shows "...ambiguous"and "...candidates". I remove "using namespace boost" and add "boost::" before these variables.

ghost avatar Oct 24 '15 11:10 ghost