Skip to content

Instantly share code, notes, and snippets.

@tak1n
Created December 3, 2014 06:36
Show Gist options
  • Save tak1n/4a0ff261865472dc8f7b to your computer and use it in GitHub Desktop.
Save tak1n/4a0ff261865472dc8f7b to your computer and use it in GitHub Desktop.
rubinius ➤ ./configure --prefix=~/.rubies/rbx --cxx=clang++ --cc=clang --llvm-config=/usr/lib/llvm-3.5/bin/llvm-config git:master* mri-2.1.5
Checking clang: found
Checking clang++: found
Checking bison: found
Checking for 'llvm-config': found! (version 3.5 - api: 305)
Checking sizeof(short): 2 bytes
Checking sizeof(int): 4 bytes
Checking sizeof(void*): 8 bytes
Checking sizeof(size_t): 8 bytes
Checking sizeof(long): 8 bytes
Checking sizeof(long long): 8 bytes
Checking sizeof(float): 4 bytes
Checking sizeof(double): 8 bytes
Checking sizeof(off_t): 8 bytes
Checking sizeof(time_t): 8 bytes
Checking for libc version: libc.so.6 found!
Checking platform endianness: little endian
Checking for tr1: found
Checking for tr1/hash definition: found
Checking for x86_32: no
Checking for x86_64: yes
Checking for function 'backtrace': found!
Checking for function 'clock_gettime': found!
Checking for function 'nl_langinfo': found!
Checking for function 'setproctitle': not found
Checking for function 'posix_fadvise': found!
Checking for function 'strnlen': found!
Checking for function 'kqueue': not found
Checking for function 'timerfd_create': found!
Checking for function 'inotify_init': found!
Checking for function 'lchown': found!
Checking for struct tm has member tm_gmtoff: found!
Checking for struct tm has member tm_zone: found!
Checking for global 'timezone': found!
Checking for global 'tzname': found!
Checking for global 'daylight': found!
Checking for header 'zlib.h': found!
Checking for header 'openssl/ssl.h': found!
Checking for header 'alloca.h': found!
Checking for header 'string.h': found!
Checking for header 'sys/time.h': found!
Checking for header 'sys/times.h': found!
Checking for header 'sys/types.h': found!
Checking for header 'unistd.h': found!
Checking for header 'stdarg.h': found!
Checking for header 'sys/pstat.h': not found
Checking for header 'valgrind/valgrind.h': not found
Checking curses library: -lcurses
Checking if function 'strerror_r' returns char*: yes
Fetching gems...
Setting up gems...
Unpacked gem: '/home/benny/ruby_downloads/rubinius/staging/runtime/gems/rubinius-ast-2.3.0'
Unpacked gem: '/home/benny/ruby_downloads/rubinius/staging/runtime/gems/rubinius-compiler-2.3.0'
Unpacked gem: '/home/benny/ruby_downloads/rubinius/staging/runtime/gems/rubinius-melbourne-2.3.0.0'
Unpacked gem: '/home/benny/ruby_downloads/rubinius/staging/runtime/gems/rubinius-processor-2.3.0'
Unpacked gem: '/home/benny/ruby_downloads/rubinius/staging/runtime/gems/rubinius-toolset-2.3.1'
Writing configuration files...
------------------------------------------------------------------
Rubinius (6dfb925c) has been configured for the following paths:
prefix: /home/benny/.rubies/rbx
bin: /home/benny/.rubies/rbx/bin
lib: /home/benny/.rubies/rbx/library
include: /home/benny/.rubies/rbx/vm/include/capi
runtime: /home/benny/.rubies/rbx/runtime
kernel: /home/benny/.rubies/rbx/kernel
site: /home/benny/.rubies/rbx/site
vendor: /home/benny/.rubies/rbx/vendor
man: /home/benny/.rubies/rbx/man
gems: /home/benny/.rubies/rbx/gems
gems cache: /home/benny/ruby_downloads/rubinius/vendor/cache
Run 'rake' to build, test and install Rubinius.
After building, you may add
'/home/benny/.rubies/rbx/bin'
to your PATH or run commands directly from that directory.
Available commands are:
ruby, rake, gem, irb, rdoc, ri, erb, rbx
------------------------------------------------------------------
rubinius ➤ rake build git:master* mri-2.1.5
GEN vm/gen/config_variables.h
/home/benny/.rubies/mri-2.1.5/bin/ruby vm/codegen/config_vars.rb vm/gen/config_variables.h
mkdir -p /home/benny/ruby_downloads/rubinius/staging//library/encoding/converter
/home/benny/.rubies/mri-2.1.5/bin/ruby vm/codegen/field_extract.rb vm/builtin/basic_object.hpp vm/builtin/object.hpp vm/builtin/integer.hpp vm/builtin/fixnum.hpp vm/builtin/array.hpp vm/builtin/bignum.hpp vm/built
in/executable.hpp vm/builtin/access_variable.hpp vm/builtin/alias.hpp vm/builtin/block_environment.hpp vm/builtin/block_as_method.hpp vm/builtin/byte_array.hpp vm/builtin/io.hpp vm/builtin/channel.hpp vm/builtin/m
odule.hpp vm/builtin/constant_table.hpp vm/builtin/class.hpp vm/builtin/compiled_code.hpp vm/builtin/data.hpp vm/builtin/dir.hpp vm/builtin/exception.hpp vm/builtin/float.hpp vm/builtin/fsevent.hpp vm/builtin/imme
diates.hpp vm/builtin/iseq.hpp vm/builtin/list.hpp vm/builtin/logger.hpp vm/builtin/lookup_table.hpp vm/builtin/ffi_pointer.hpp vm/builtin/method_table.hpp vm/builtin/native_function.hpp vm/builtin/packed_object.h
pp vm/builtin/randomizer.hpp vm/builtin/regexp.hpp vm/builtin/constant_scope.hpp vm/builtin/encoding.hpp vm/builtin/string.hpp vm/builtin/symbol.hpp vm/builtin/thread.hpp vm/builtin/tuple.hpp vm/builtin/compact_lo
okup_table.hpp vm/builtin/time.hpp vm/builtin/stat.hpp vm/builtin/native_method.hpp vm/builtin/system.hpp vm/builtin/autoload.hpp vm/builtin/proc.hpp vm/builtin/variable_scope.hpp vm/builtin/location.hpp vm/builti
n/constant_cache.hpp vm/builtin/call_site.hpp vm/builtin/mono_inline_cache.hpp vm/builtin/poly_inline_cache.hpp vm/builtin/call_custom_cache.hpp vm/builtin/respond_to_cache.hpp vm/builtin/weakref.hpp vm/builtin/fi
ber.hpp vm/builtin/thunk.hpp vm/builtin/call_unit.hpp vm/builtin/call_unit_adapter.hpp vm/builtin/atomic.hpp vm/builtin/character.hpp vm/builtin/thread_state.hpp vm/builtin/jit.hpp
Running 121 tasks using 3 parallel threads
1: CXX vm/builtin/thread_state.cpp
2: CXX vm/builtin/compiled_code.cpp
3: CXX vm/builtin/system.cpp
1: CXX vm/builtin/thunk.cpp
In file included from vm/builtin/compiled_code.cpp:22:
In file included from /home/benny/ruby_downloads/rubinius/vm/llvm/jit_compiler.hpp:6:
In file included from /home/benny/ruby_downloads/rubinius/vm/llvm/jit_context.hpp:13:
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:217:5: error: unknown type name 'BumpPtrAllocatorImpl'
BumpPtrAllocatorImpl<JITSlabAllocator, DefaultSlabSize, DefaultSizeThreshold> StubAllocator;
^
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:217:25: error: expected member name or ';' after declaration specifiers
BumpPtrAllocatorImpl<JITSlabAllocator, DefaultSlabSize, DefaultSizeThreshold> StubAllocator;
~~~~~~~~~~~~~~~~~~~~^
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:218:5: error: unknown type name 'BumpPtrAllocatorImpl'
BumpPtrAllocatorImpl<JITSlabAllocator, DefaultSlabSize, DefaultSizeThreshold> DataAllocator;
^
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:218:25: error: expected member name or ';' after declaration specifiers
BumpPtrAllocatorImpl<JITSlabAllocator, DefaultSlabSize, DefaultSizeThreshold> DataAllocator;
~~~~~~~~~~~~~~~~~~~~^
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:269:41: error: use of undeclared identifier 'DataAllocator'
unsigned GetNumDataSlabs() { return DataAllocator.GetNumSlabs(); }
^
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:270:41: error: use of undeclared identifier 'StubAllocator'
unsigned GetNumStubSlabs() { return StubAllocator.GetNumSlabs(); }
^
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:384:24: error: use of undeclared identifier 'StubAllocator'; did you mean 'SlabAllocator'?
return (uint8_t*)StubAllocator.Allocate(StubSize, Alignment);
^
/usr/lib/llvm-3.5/include/llvm/Support/Allocator.h:64:7: note: 'SlabAllocator' declared here
class SlabAllocator {
^
In file included from vm/builtin/compiled_code.cpp:22:
In file included from /home/benny/ruby_downloads/rubinius/vm/llvm/jit_compiler.hpp:6:
In file included from /home/benny/ruby_downloads/rubinius/vm/llvm/jit_context.hpp:13:
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:390:24: error: use of undeclared identifier 'DataAllocator'; did you mean 'SlabAllocator'?
return (uint8_t*)DataAllocator.Allocate(Size, Alignment);
^
/usr/lib/llvm-3.5/include/llvm/Support/Allocator.h:64:7: note: 'SlabAllocator' declared here
class SlabAllocator {
^
In file included from vm/builtin/compiled_code.cpp:22:
In file included from /home/benny/ruby_downloads/rubinius/vm/llvm/jit_compiler.hpp:6:
In file included from /home/benny/ruby_downloads/rubinius/vm/llvm/jit_context.hpp:13:
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:446:24: error: use of undeclared identifier 'DataAllocator'; did you mean 'SlabAllocator'?
return (uint8_t*)DataAllocator.Allocate(Size, Alignment);
^
/usr/lib/llvm-3.5/include/llvm/Support/Allocator.h:64:7: note: 'SlabAllocator' declared here
class SlabAllocator {
^
In file included from vm/builtin/compiled_code.cpp:22:
In file included from /home/benny/ruby_downloads/rubinius/vm/llvm/jit_compiler.hpp:6:
In file included from /home/benny/ruby_downloads/rubinius/vm/llvm/jit_context.hpp:13:
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:613:47: error: no member named 'DataAllocator' in 'rubinius::jit::RubiniusJITMemoryManager'
unsigned GetNumDataSlabs() { return mgr_->DataAllocator.GetNumSlabs(); }
~~~~ ^
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:614:47: error: no member named 'StubAllocator' in 'rubinius::jit::RubiniusJITMemoryManager'
unsigned GetNumStubSlabs() { return mgr_->StubAllocator.GetNumSlabs(); }
~~~~ ^
11 errors generated.
Error: clang++ -I/home/benny/ruby_downloads/rubinius/vm -I/home/benny/ruby_downloads/rubinius/vm/include -I/home/benny/ruby_downloads/rubinius/vm/builtin -I. -Ivm/test/cxxtest -I/home/benny/ruby_downloads/rubinius
/vendor/udis86 -I/home/benny/ruby_downloads/rubinius/vendor/libffi/include -Ivendor/double-conversion/src -DHAVE_CONFIG_H -I/home/benny/ruby_downloads/rubinius/vm/include/capi -I/home/benny/ruby_downloads/rubinius
/vendor/oniguruma -I/home/benny/ruby_downloads/rubinius/vendor/libtommath -pipe -Wall -fno-omit-frame-pointer -g -mno-omit-leaf-frame-pointer -Wno-unused-result -fPIC -O2 -DHAS_EXECINFO -DHAVE_SPT_REUSEARGV -DHA
VE_CLOCK_GETTIME -DHAVE_NL_LANGINFO -DHAVE_POSIX_FADVISE -DHAVE_STRNLEN -DHAVE_TIMERFD -DHAVE_INOTIFY -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/lib/llvm-3.5/include -I/usr/lib/llvm-3.5/include -D_GNU_SOURCE -g -fPIC -DENABLE_LLVM -Wno-unused-f
unction -Werror -DRBX_PROFILER -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-rtti -fvisibility-inlines-hidden -Wno-unused-result -std=c++11 -c -o vm/builtin/art
ifacts/compiled_code.cpp.o vm/builtin/compiled_code.cpp
In file included from vm/builtin/system.cpp:62:
In file included from /home/benny/ruby_downloads/rubinius/vm/llvm/jit_context.hpp:13:
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:217:5: error: unknown type name 'BumpPtrAllocatorImpl'
BumpPtrAllocatorImpl<JITSlabAllocator, DefaultSlabSize, DefaultSizeThreshold> StubAllocator;
^
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:217:25: error: expected member name or ';' after declaration specifiers
BumpPtrAllocatorImpl<JITSlabAllocator, DefaultSlabSize, DefaultSizeThreshold> StubAllocator;
~~~~~~~~~~~~~~~~~~~~^
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:218:5: error: unknown type name 'BumpPtrAllocatorImpl'
BumpPtrAllocatorImpl<JITSlabAllocator, DefaultSlabSize, DefaultSizeThreshold> DataAllocator;
^
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:218:25: error: expected member name or ';' after declaration specifiers
BumpPtrAllocatorImpl<JITSlabAllocator, DefaultSlabSize, DefaultSizeThreshold> DataAllocator;
~~~~~~~~~~~~~~~~~~~~^
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:269:41: error: use of undeclared identifier 'DataAllocator'
unsigned GetNumDataSlabs() { return DataAllocator.GetNumSlabs(); }
^
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:270:41: error: use of undeclared identifier 'StubAllocator'
unsigned GetNumStubSlabs() { return StubAllocator.GetNumSlabs(); }
^
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:384:24: error: use of undeclared identifier 'StubAllocator'; did you mean 'SlabAllocator'?
return (uint8_t*)StubAllocator.Allocate(StubSize, Alignment);
^
/usr/lib/llvm-3.5/include/llvm/Support/Allocator.h:64:7: note: 'SlabAllocator' declared here
class SlabAllocator {
^
In file included from vm/builtin/system.cpp:62:
In file included from /home/benny/ruby_downloads/rubinius/vm/llvm/jit_context.hpp:13:
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:390:24: error: use of undeclared identifier 'DataAllocator'; did you mean 'SlabAllocator'?
return (uint8_t*)DataAllocator.Allocate(Size, Alignment);
^
/usr/lib/llvm-3.5/include/llvm/Support/Allocator.h:64:7: note: 'SlabAllocator' declared here
class SlabAllocator {
^
In file included from vm/builtin/system.cpp:62:
In file included from /home/benny/ruby_downloads/rubinius/vm/llvm/jit_context.hpp:13:
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:446:24: error: use of undeclared identifier 'DataAllocator'; did you mean 'SlabAllocator'?
return (uint8_t*)DataAllocator.Allocate(Size, Alignment);
^
/usr/lib/llvm-3.5/include/llvm/Support/Allocator.h:64:7: note: 'SlabAllocator' declared here
class SlabAllocator {
^
In file included from vm/builtin/system.cpp:62:
In file included from /home/benny/ruby_downloads/rubinius/vm/llvm/jit_context.hpp:13:
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:613:47: error: no member named 'DataAllocator' in 'rubinius::jit::RubiniusJITMemoryManager'
unsigned GetNumDataSlabs() { return mgr_->DataAllocator.GetNumSlabs(); }
~~~~ ^
/home/benny/ruby_downloads/rubinius/vm/llvm/jit_memory_manager.hpp:614:47: error: no member named 'StubAllocator' in 'rubinius::jit::RubiniusJITMemoryManager'
unsigned GetNumStubSlabs() { return mgr_->StubAllocator.GetNumSlabs(); }
~~~~ ^
11 errors generated.
Error: clang++ -I/home/benny/ruby_downloads/rubinius/vm -I/home/benny/ruby_downloads/rubinius/vm/include -I/home/benny/ruby_downloads/rubinius/vm/builtin -I. -Ivm/test/cxxtest -I/home/benny/ruby_downloads/rubinius
/vendor/udis86 -I/home/benny/ruby_downloads/rubinius/vendor/libffi/include -Ivendor/double-conversion/src -DHAVE_CONFIG_H -I/home/benny/ruby_downloads/rubinius/vm/include/capi -I/home/benny/ruby_downloads/rubinius
/vendor/oniguruma -I/home/benny/ruby_downloads/rubinius/vendor/libtommath -pipe -Wall -fno-omit-frame-pointer -g -mno-omit-leaf-frame-pointer -Wno-unused-result -fPIC -O2 -DHAS_EXECINFO -DHAVE_SPT_REUSEARGV -DHA
VE_CLOCK_GETTIME -DHAVE_NL_LANGINFO -DHAVE_POSIX_FADVISE -DHAVE_STRNLEN -DHAVE_TIMERFD -DHAVE_INOTIFY -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/lib/llvm-3.5/include -I/usr/lib/llvm-3.5/include -D_GNU_SOURCE -g -fPIC -DENABLE_LLVM -Wno-unused-f
unction -Werror -DRBX_PROFILER -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-rtti -fvisibility-inlines-hidden -Wno-unused-result -std=c++11 -c -o vm/builtin/art
ifacts/system.cpp.o vm/builtin/system.cpp
rake aborted!
Error compiling
/home/benny/ruby_downloads/rubinius/.gem/ruby/2.1.5/gems/daedalus-core-0.1.0/lib/daedalus.rb:68:in `command'
/home/benny/ruby_downloads/rubinius/.gem/ruby/2.1.5/gems/daedalus-core-0.1.0/lib/daedalus.rb:234:in `cxx_compile'
/home/benny/ruby_downloads/rubinius/.gem/ruby/2.1.5/gems/daedalus-core-0.1.0/lib/daedalus.rb:221:in `compile'
/home/benny/ruby_downloads/rubinius/.gem/ruby/2.1.5/gems/daedalus-core-0.1.0/lib/daedalus.rb:433:in `build'
/home/benny/ruby_downloads/rubinius/.gem/ruby/2.1.5/gems/daedalus-core-0.1.0/lib/daedalus.rb:895:in `block (2 levels) in perform_tasks'
Tasks: TOP => build => build:build => vm/vm
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment