Skip to content

Instantly share code, notes, and snippets.

Created February 12, 2016 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/849076a61532804c12f4 to your computer and use it in GitHub Desktop.
Save anonymous/849076a61532804c12f4 to your computer and use it in GitHub Desktop.
In file included from /root/rubinius/vm/gen/includes.hpp:70:
In file included from /root/rubinius/vm/builtin/code_db.hpp:8:
In file included from /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../include/c++/4.8.2/tuple:35:
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: This file
requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must
be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
2: CXX vm/builtin/access_variable.cpp
In file included from vm/accessor_primitives.cpp:4:
In file included from /root/rubinius/vm/gen/includes.hpp:70:
/root/rubinius/vm/builtin/code_db.hpp:13:16: error: no type named 'tuple' in namespace 'std'; did you mean 'Tuple'?
typedef std::tuple<void*, size_t, size_t> CodeDBIndex;
~~~~~^~~~~
Tuple
/root/rubinius/vm/builtin/variable_scope.hpp:13:9: note: 'Tuple' declared here
class Tuple;
^
In file included from vm/accessor_primitives.cpp:4:
In file included from /root/rubinius/vm/gen/includes.hpp:70:
/root/rubinius/vm/builtin/code_db.hpp:13:21: error: expected unqualified-id
typedef std::tuple<void*, size_t, size_t> CodeDBIndex;
^
/root/rubinius/vm/builtin/code_db.hpp:14:42: error: use of undeclared identifier 'CodeDBIndex'
typedef std_unordered_map<std::string, CodeDBIndex> CodeDBMap;
^
4 errors generated.
Error: clang++ -I/root/rubinius/vm -I/root/rubinius/vm/include -I/root/rubinius/vm/builtin -I. -Ivm/test/cxxtest -I/root/rubinius/vendor/libsodium/src/libsodium/include -I/root/rubinius/vendor/udis86 -I/root/rubinius/vendor/libffi/include -Ivendor/double-conversion/src -DHAVE_CONFIG_H -I/root/rubinius/vm/include/capi -I/root/rubinius/vendor/oniguruma -I/root/rubinius/vendor/libtommath -pipe -Wall -fno-omit-frame-pointer -g -mno-omit-leaf-frame-pointer -fPIC -O2 -DHAS_EXECINFO -DHAVE_SPT_REUSEARGV -DHAVE_CLOCK_GETTIME -DHAVE_NL_LANGINFO -DHAVE_POSIX_FADVISE -DHAVE_STRNLEN -DHAVE_TIMERFD -DHAVE_INOTIFY -DHAVE_STRUCT_STAT_ST_ATIM -DHAVE_STRUCT_STAT_ST_MTIM -DHAVE_STRUCT_STAT_ST_CTIM -DHAVE_TM_GMTOFF -DHAVE_TM_ZONE -DHAVE_TIMEZONE -DHAVE_TZNAME -DHAVE_DAYLIGHT -DHAVE_ALLOCA_H -DHAVE_STRING_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TIMES_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DHAVE_STDARG_H -DSTRERROR_R_CHAR_P -I/usr/include -I/usr/include -D_GNU_SOURCE -fPIC -DENABLE_LLVM -Wno-unused-function -Werror -DRBX_PROFILER -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-rtti -fvisibility-inlines-hidden -c -o vm/artifacts/accessor_primitives.cpp.o vm/accessor_primitives.cpp
In file included from vm/builtin/code_db.cpp:4:
In file included from /root/rubinius/vm/builtin/code_db.hpp:8:
In file included from /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../include/c++/4.8.2/tuple:35:
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: This file
requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must
be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from vm/builtin/code_db.cpp:4:
/root/rubinius/vm/builtin/code_db.hpp:13:16: error: no type named 'tuple' in namespace 'std'; did you mean 'Tuple'?
typedef std::tuple<void*, size_t, size_t> CodeDBIndex;
~~~~~^~~~~
Tuple
/root/rubinius/vm/metrics.hpp:18:9: note: 'Tuple' declared here
class Tuple;
^
In file included from vm/builtin/code_db.cpp:4:
/root/rubinius/vm/builtin/code_db.hpp:13:21: error: expected unqualified-id
typedef std::tuple<void*, size_t, size_t> CodeDBIndex;
^
/root/rubinius/vm/builtin/code_db.hpp:14:42: error: use of undeclared identifier 'CodeDBIndex'
typedef std_unordered_map<std::string, CodeDBIndex> CodeDBMap;
^
vm/builtin/code_db.cpp:87:19: error: type 'CodeDBMap' (aka 'int') does not provide a subscript operator
codedb_index[m_id] = CodeDBIndex(codedb->data_, offset, length);
~~~~~~~~~~~~^~~~~
vm/builtin/code_db.cpp:87:28: error: use of undeclared identifier 'CodeDBIndex'
codedb_index[m_id] = CodeDBIndex(codedb->data_, offset, length);
^
vm/builtin/code_db.cpp:116:5: error: expected a class or namespace
CodeDBMap::const_iterator index = codedb_index.find(std::string(m_id));
^
vm/builtin/code_db.cpp:118:29: error: member reference base type 'CodeDBMap' (aka 'int') is not a structure or union
if(index == codedb_index.end()) {
~~~~~~~~~~~~^~~~
vm/builtin/code_db.cpp:122:5: error: unknown type name 'CodeDBIndex'
CodeDBIndex i = index->second;
^
vm/builtin/code_db.cpp:122:26: error: member reference base type 'char *(const char *, int) throw()' is not a structure or
union
CodeDBIndex i = index->second;
~~~~~^ ~~~~~~
vm/builtin/code_db.cpp:124:41: error: no member named 'get' in namespace 'std'
const char* ptr = (const char*)std::get<0>(i);
~~~~~^
vm/builtin/code_db.cpp:125:33: error: no member named 'get' in namespace 'std'
std::string data(ptr + std::get<1>(i), std::get<2>(i));
~~~~~^
12 errors generated.
Error: clang++ -I/root/rubinius/vm -I/root/rubinius/vm/include -I/root/rubinius/vm/builtin -I. -Ivm/test/cxxtest -I/root/rubinius/vendor/libsodium/src/libsodium/include -I/root/rubinius/vendor/udis86 -I/root/rubinius/vendor/libffi/include -Ivendor/double-conversion/src -DHAVE_CONFIG_H -I/root/rubinius/vm/include/capi -I/root/rubinius/vendor/oniguruma -I/root/rubinius/vendor/libtommath -pipe -Wall -fno-omit-frame-pointer -g -mno-omit-leaf-frame-pointer -fPIC -O2 -DHAS_EXECINFO -DHAVE_SPT_REUSEARGV -DHAVE_CLOCK_GETTIME -DHAVE_NL_LANGINFO -DHAVE_POSIX_FADVISE -DHAVE_STRNLEN -DHAVE_TIMERFD -DHAVE_INOTIFY -DHAVE_STRUCT_STAT_ST_ATIM -DHAVE_STRUCT_STAT_ST_MTIM -DHAVE_STRUCT_STAT_ST_CTIM -DHAVE_TM_GMTOFF -DHAVE_TM_ZONE -DHAVE_TIMEZONE -DHAVE_TZNAME -DHAVE_DAYLIGHT -DHAVE_ALLOCA_H -DHAVE_STRING_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TIMES_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DHAVE_STDARG_H -DSTRERROR_R_CHAR_P -I/usr/include -I/usr/include -D_GNU_SOURCE -fPIC -DENABLE_LLVM -Wno-unused-function -Werror -DRBX_PROFILER -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-rtti -fvisibility-inlines-hidden -c -o vm/builtin/artifacts/code_db.cpp.o vm/builtin/code_db.cpp
rake aborted!
Error compiling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment