Skip to content

Instantly share code, notes, and snippets.

@goyox86
Created October 4, 2017 14:39
Show Gist options
  • Save goyox86/9af87f08cdf45b193ff1cdcd2c0f5f94 to your computer and use it in GitHub Desktop.
Save goyox86/9af87f08cdf45b193ff1cdcd2c0f5f94 to your computer and use it in GitHub Desktop.
5: CXX machine/accessor_primitives.cpp
In file included from In file included from machine/arguments.cpp:machine/accessor_primitives.cpp1:
In file included from /Users/goyox86/Code/ruby/rubinius/machine/arguments.hpp:5:
In file included from In file included from /Users/goyox86/Code/ruby/rubinius/machine/class/array.hppmachine/bytecode_verifier.cpp::41:
:
In file included from In file included from /Users/goyox86/Code/ruby/rubinius/machine/object_utils.hpp:/Users/goyox86/Code/ruby/rubinius/machine/class/compiled_code.hpp::144:
:
:
In file included from In file included from In file included from /Users/goyox86/Code/ruby/rubinius/machine/arguments.hpp/Users/goyox86/Code/ruby/rubinius/machine/object_utils.hpp:/Users/goyox86/Code/ruby/rubinius/machine/class/object.hpp:5::
47In file included from :
:
/Users/goyox86/Code/ruby/rubinius/machine/class/array.hppIn file included from In file included from :/Users/goyox86/Code/ruby/rubinius/machine/class/object.hpp/Users/goyox86/Code/ruby/rubinius/machine/memory/header.hpp4:::
716In file included from :
/Users/goyox86/Code/ruby/rubinius/machine/object_utils.hpp:In file included from 4:
/Users/goyox86/Code/ruby/rubinius/machine/util/thread.hppIn file included from :/Users/goyox86/Code/ruby/rubinius/machine/class/object.hpp16:
:
:In file included from In file included from In file included from 7/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/sstreammachine/call_frame.cpp:
/Users/goyox86/Code/ruby/rubinius/machine/memory/header.hpp:In file included from ::174/Users/goyox86/Code/ruby/rubinius/machine/memory/header.hpp1:
16::
In file included from :
16In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:
In file included from /Users/goyox86/Code/ruby/rubinius/machine/memory.hpp:In file included from :/Users/goyox86/Code/ruby/rubinius/machine/util/thread.hpp138:/Users/goyox86/Code/ruby/rubinius/machine/util/thread.hpp:
16:In file included from 516:
:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ios:
:In file included from 216In file included from :
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/sstreamIn file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/sstream:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:174:174:
18:
In file included from :
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostreamIn file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/mutex:::138138189:
:
:
In file included from In file included from In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ios/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ios::/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__mutex_base216216:
:
:In file included from In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:17:18:
:
18In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/mutex:189:
In file included from :
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__threading_support/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__mutex_baseIn file included from ::156/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/mutex:18917::
In file included from In file included from 1:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__mutex_base/Users/goyox86/Code/ruby/rubinius/machine/memory/header.hpp:::17 16:
:
In file included from error/Users/goyox86/Code/ruby/rubinius/machine/util/thread.hpp/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__threading_support: ::/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__threading_support15616::156:
1:In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/sstream:174errorunknown:: :
In file included from 1type/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream
:: 138name:
unknown In file included from 'mach_port_t'error/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:18:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/mutex:189:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__mutex_base:17:
type
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__threading_supportname: 156'mach_port_t':1
: error: unknown type
name 'mach_port_t'mach_port_t __libcpp_thread_get_port();
^mach_port_t __libcpp_thread_get_port();
^
mach_port_t __libcpp_thread_get_port();
^
: unknown type
name 'mach_port_t'
mach_port_t __libcpp_thread_get_port();
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__threading_support:300:1: error: unknown type
name 'mach_port_t'
mach_port_t __libcpp_thread_get_port() {
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__threading_support:300:1: error: unknown type
name 'mach_port_t'
mach_port_t __libcpp_thread_get_port() {
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__threading_support:300:1: error: unknown type
name 'mach_port_t'
mach_port_t __libcpp_thread_get_port() {
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__threading_support:300:1: error: unknown type
name 'mach_port_t'
mach_port_t __libcpp_thread_get_port() {
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__threading_support:301/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__threading_support:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__threading_support:12301:::301 12::12 :error : error: erroruse: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__threading_supportof:
useuse 301: undeclaredof
12ofidentifier :
undeclared 'pthread_mach_thread_np'undeclaredidentifier
erroridentifier'pthread_mach_thread_np': 'pthread_mach_thread_np'
use
of
undeclared return pthread_mach_thread_np(pthread_self());identifier
'pthread_mach_thread_np' return pthread_mach_thread_np(pthread_self()); ^
return pthread_mach_thread_np(pthread_self());
[0;1;32m ^ ^
return pthread_mach_thread_np(pthread_self());
^
3 errors generated.
Error: clang++ -I/Users/goyox86/Code/ruby/rubinius/machine -I/Users/goyox86/Code/ruby/rubinius/machine/include -I. -Imachine/test/cxxtest -I/Users/goyox86/Code/ruby/rubinius/vendor/libsodium/src/libsodium/include -I/Users/goyox86/Code/ruby/rubinius/vendor/libffi/include -Ivendor/double-conversion/src -DHAVE_CONFIG_H -I/Users/goyox86/Code/ruby/rubinius/machine/include/capi -I/Users/goyox86/Code/ruby/rubinius/vendor/oniguruma -I/Users/goyox86/Code/ruby/rubinius/vendor/libtommath -pipe -fPIC -fno-omit-frame-pointer -g -mno-omit-leaf-frame-pointer -I/usr/local/opt/openssl/include -fPIC -D_DARWIN_USE_64_BIT_INODE -O2 -DHAS_EXECINFO -DHAVE_SPT_REUSEARGV -DHAVE_CLOCK_GETTIME -DHAVE_NL_LANGINFO -DHAVE_STRNLEN -DHAVE_KQUEUE -DHAVE_STRUCT_STAT_ST_ATIMESPEC -DHAVE_STRUCT_STAT_ST_MTIMESPEC -DHAVE_STRUCT_STAT_ST_CTIMESPEC -DHAVE_ST_BIRTHTIME -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 -I/Users/goyox86/Code/ruby/rubinius/vendor/rapidjson -I/usr/local/Cellar/llvm/5.0.0/include -I/usr/local/Cellar/llvm/5.0.0/include -DLLVM_BUILD_GLOBAL_ISEL -DENABLE_LLVM -Wall -Werror -Wno-unused-function -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -Wcovered-switch-default -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-rtti -fvisibility-inlines-hidden -std=c++11 -c -o machine/artifacts/arguments.cpp.o machine/arguments.cpp
3 errors generated.
Error: clang++ -I/Users/goyox86/Code/ruby/rubinius/machine -I/Users/goyox86/Code/ruby/rubinius/machine/include -I. -Imachine/test/cxxtest -I/Users/goyox86/Code/ruby/rubinius/vendor/libsodium/src/libsodium/include -I/Users/goyox86/Code/ruby/rubinius/vendor/libffi/include -Ivendor/double-conversion/src -DHAVE_CONFIG_H -I/Users/goyox86/Code/ruby/rubinius/machine/include/capi -I/Users/goyox86/Code/ruby/rubinius/vendor/oniguruma -I/Users/goyox86/Code/ruby/rubinius/vendor/libtommath -pipe -fPIC -fno-omit-frame-pointer -g -mno-omit-leaf-frame-pointer -I/usr/local/opt/openssl/include -fPIC -D_DARWIN_USE_64_BIT_INODE -O2 -DHAS_EXECINFO -DHAVE_SPT_REUSEARGV -DHAVE_CLOCK_GETTIME -DHAVE_NL_LANGINFO -DHAVE_STRNLEN -DHAVE_KQUEUE -DHAVE_STRUCT_STAT_ST_ATIMESPEC -DHAVE_STRUCT_STAT_ST_MTIMESPEC -DHAVE_STRUCT_STAT_ST_CTIMESPEC -DHAVE_ST_BIRTHTIME -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 -I/Users/goyox86/Code/ruby/rubinius/vendor/rapidjson -I/usr/local/Cellar/llvm/5.0.0/include -I/usr/local/Cellar/llvm/5.0.0/include -DLLVM_BUILD_GLOBAL_ISEL -DENABLE_LLVM -Wall -Werror -Wno-unused-function -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -Wcovered-switch-default -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-rtti -fvisibility-inlines-hidden -std=c++11 -c -o machine/artifacts/bytecode_verifier.cpp.o machine/bytecode_verifier.cpp
3 errors generated.
Error: clang++ -I/Users/goyox86/Code/ruby/rubinius/machine -I/Users/goyox86/Code/ruby/rubinius/machine/include -I. -Imachine/test/cxxtest -I/Users/goyox86/Code/ruby/rubinius/vendor/libsodium/src/libsodium/include -I/Users/goyox86/Code/ruby/rubinius/vendor/libffi/include -Ivendor/double-conversion/src -DHAVE_CONFIG_H -I/Users/goyox86/Code/ruby/rubinius/machine/include/capi -I/Users/goyox86/Code/ruby/rubinius/vendor/oniguruma -I/Users/goyox86/Code/ruby/rubinius/vendor/libtommath -pipe -fPIC -fno-omit-frame-pointer -g -mno-omit-leaf-frame-pointer -I/usr/local/opt/openssl/include -fPIC -D_DARWIN_USE_64_BIT_INODE -O2 -DHAS_EXECINFO -DHAVE_SPT_REUSEARGV -DHAVE_CLOCK_GETTIME -DHAVE_NL_LANGINFO -DHAVE_STRNLEN -DHAVE_KQUEUE -DHAVE_STRUCT_STAT_ST_ATIMESPEC -DHAVE_STRUCT_STAT_ST_MTIMESPEC -DHAVE_STRUCT_STAT_ST_CTIMESPEC -DHAVE_ST_BIRTHTIME -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 -I/Users/goyox86/Code/ruby/rubinius/vendor/rapidjson -I/usr/local/Cellar/llvm/5.0.0/include -I/usr/local/Cellar/llvm/5.0.0/include -DLLVM_BUILD_GLOBAL_ISEL -DENABLE_LLVM -Wall -Werror -Wno-unused-function -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -Wcovered-switch-default -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-rtti -fvisibility-inlines-hidden -std=c++11 -c -o machine/artifacts/call_frame.cpp.o machine/call_frame.cpp
rake aborted!
Error compiling
/Users/goyox86/.gem/ruby/2.4.1/gems/daedalus-core-1.6/lib/daedalus.rb:68:in `command'
/Users/goyox86/.gem/ruby/2.4.1/gems/daedalus-core-1.6/lib/daedalus.rb:234:in `cxx_compile'
/Users/goyox86/.gem/ruby/2.4.1/gems/daedalus-core-1.6/lib/daedalus.rb:221:in `compile'
/Users/goyox86/.gem/ruby/2.4.1/gems/daedalus-core-1.6/lib/daedalus.rb:433:in `build'
/Users/goyox86/.gem/ruby/2.4.1/gems/daedalus-core-1.6/lib/daedalus.rb:953:in `block (2 levels) in perform_tasks'
Tasks: TOP => default => spec => build => build:build => machine/vm
(See full trace by running task with --trace)
3 errors generated.
goyox86@15317-jnarvaez:~/Code/ruby/rubinius|master
⇒ man mach_port_t
No manual entry for mach_port_t
goyox86@15317-jnarvaez:~/Code/ruby/rubinius|master
⇒ man mach
No manual entry for mach
goyox86@15317-jnarvaez:~/Code/ruby/rubinius|master
⇒ clear
goyox86@15317-jnarvaez:~/Code/ruby/rubinius|master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment