Skip to content

Instantly share code, notes, and snippets.

@chewbranca
Created February 28, 2011 00:36
Show Gist options
  • Save chewbranca/846745 to your computer and use it in GitHub Desktop.
Save chewbranca/846745 to your computer and use it in GitHub Desktop.
LDSHARED rbx/melbourne.so
/usr/bin/ruby1.8 -S rake -r /home/russell/src/rubinius/config.rb -r /home/russell/src/rubinius/rakelib/ext_helper.rb -r /home/russell/src/rubinius/rakelib/dependency_grapher.rb build
(in /home/russell/src/rubinius/lib/ext/nkf)
CC nkf.c
LDSHARED nkf.so
Building openssl
/home/russell/src/rubinius/bin/rbx-build extconf.rb
/home/russell/src/rubinius/bin/../vm/vm: symbol lookup error: /home/russell/src/rubinius/bin/../vm/vm: undefined symbol: _ZN4llvm8RegistryINS_10GCStrategyENS_14RegistryTraitsIS1_EEE4HeadE
rake aborted!
Command failed with status (127): [/home/russell/src/rubinius/bin/rbx-build e...]
(See full trace by running task with --trace)
./configure --prefix=/home/russell/rubinius
Configuring LLVM...
Checking for existing LLVM tree: not found.
Checking for 'llvm-config': only 2.8 is supported
Checking for prebuilt LLVM package...
Downloading llvm-2.8-x86_64-unknown-linux-gnu-ubuntu-10.04.2.tar.bz2...
Not found.
Downloading llvm-2.8-x86_64-unknown-linux-gnu-4.4.tar.bz2...
[ 100% (6176734 of 6176734) ]: done!
Downloading llvm-2.8-x86_64-unknown-linux-gnu-4.4.tar.bz2.md5...
[ 100% (33 of 33) ]: done!
MD5 checksum for prebuilt LLVM verified.
Prebuilt packages updated.
Unpacking prebuilt LLVM: llvm-2.8-x86_64-unknown-linux-gnu-4.4.tar.bz2: done!
Checking sizeof(long): 8 bytes
Checking platform endianness: little endian
Checking tr1/hash definition: found
Checking for function 'backtrace': found!
Checking for function 'readline': found!
Checking curses library: curses
Configured. Run 'rake install' to install Rubinius.
UBUNTU 9.10
./configure --show
Using the following configuration to build
------------------------------------------
module Rubinius
BUILD_CONFIG = {
:which_ruby => :ruby,
:build_ruby => "/usr/bin/ruby1.8",
:build_rake => "rake",
:build_perl => "perl",
:llvm => :prebuilt,
:llvm_configure => "",
:cc => "gcc",
:cxx => "g++",
:user_cflags => "",
:user_cppflags => "",
:user_ldflags => "",
:defines => ["HAS_EXECINFO", "HAS_READLINE"],
:curses => "curses",
:host => "i686-pc-linux-gnu",
:cpu => "i686",
:vendor => "pc",
:os => "linux-gnu",
:little_endian => true,
:sizeof_long => 4,
:bindir => "/home/russell/rubinius/bin",
:libdir => "/home/russell/rubinius",
:runtime => "/home/russell/rubinius/runtime",
:lib_path => "/home/russell/rubinius/lib",
:ext_path => "/home/russell/rubinius/lib/ext",
:includedir => "/home/russell/rubinius/include",
:mandir => "/home/russell/rubinius/man",
:gemsdir => "/home/russell/rubinius/gems",
:sitedir => "/home/russell/rubinius/site",
:vendordir => "/home/russell/rubinius/vendor",
:program_name => "rbx",
:version => "1.2.2",
:libversion => "1.2",
:release_date => "2011-02-22",
:config_version => 31
}
end
Setting the following defines for the VM
----------------------------------------
#define RBX_HOST "i686-pc-linux-gnu"
#define RBX_CPU "i686"
#define RBX_VENDOR "pc"
#define RBX_OS "linux-gnu"
#define RBX_BIN_PATH "/home/russell/rubinius/bin"
#define RBX_GEMS_PATH "/home/russell/rubinius/gems"
#define RBX_RUNTIME "/home/russell/rubinius/runtime"
#define RBX_LIB_PATH "/home/russell/rubinius/lib"
#define RBX_EXT_PATH "/home/russell/rubinius/lib/ext"
#define RBX_HDR_PATH "/home/russell/rubinius/include"
#define RBX_SITE_PATH "/home/russell/rubinius/site"
#define RBX_VENDOR_PATH "/home/russell/rubinius/vendor"
#define RBX_VERSION "1.2.2"
#define RBX_LIB_VERSION "1.2"
#define RBX_BUILD_REV "3ac563e2b142b41388b1b74b585734e128698eee"
#define RBX_LDSHARED "gcc -shared"
#define RBX_RELEASE_DATE "2011-02-22"
#define RBX_SIZEOF_LONG 4
#define RBX_LITTLE_ENDIAN 1
#define RBX_HAVE_TR1_HASH 1
UBUNTU 9.10
$ rm -r vm/external_libs/llvm; ./configure --prefix=/home/russell/rubinius; rake
Configuring LLVM...
Checking for existing LLVM tree: not found.
Checking for 'llvm-config': not found
Checking for prebuilt LLVM package...
Downloading llvm-2.8-i686-pc-linux-gnu-ubuntu-9.10.tar.bz2...
Not found.
Unpacking prebuilt LLVM: llvm-2.8-i686-pc-linux-gnu-4.4.tar.bz2: /home/russell/src/rubinius/vm/external_libs/llvm
done!
Checking sizeof(long): 4 bytes
Checking platform endianness: little endian
Checking tr1/hash definition: found
Checking for function 'backtrace': found!
Checking for function 'readline': found!
Checking curses library: curses
Configured. Run 'rake install' to install Rubinius.
(in /home/russell/src/rubinius)
/usr/bin/ruby1.8 vm/codegen/field_extract.rb vm/builtin/object.hpp vm/builtin/integer.hpp vm/builtin/fixnum.hpp vm/builtin/array.hpp vm/builtin/bignum.hpp vm/builtin/executable.hpp vm/builtin/access_variable.hpp vm/builtin/alias.hpp vm/builtin/block_environment.hpp vm/builtin/block_as_method.hpp vm/builtin/bytearray.hpp vm/builtin/io.hpp vm/builtin/channel.hpp vm/builtin/module.hpp vm/builtin/class.hpp vm/builtin/compiledmethod.hpp vm/builtin/data.hpp vm/builtin/dir.hpp vm/builtin/exception.hpp vm/builtin/float.hpp vm/builtin/immediates.hpp vm/builtin/iseq.hpp vm/builtin/list.hpp vm/builtin/lookuptable.hpp vm/builtin/ffi_pointer.hpp vm/builtin/methodtable.hpp vm/builtin/nativefunction.hpp vm/builtin/packed_object.hpp vm/builtin/randomizer.hpp vm/builtin/regexp.hpp vm/builtin/staticscope.hpp vm/builtin/string.hpp vm/builtin/symbol.hpp vm/builtin/thread.hpp vm/builtin/tuple.hpp vm/builtin/compactlookuptable.hpp vm/builtin/time.hpp vm/builtin/taskprobe.hpp vm/builtin/nativemethod.hpp vm/builtin/system.hpp vm/builtin/autoload.hpp vm/builtin/proc.hpp vm/builtin/variable_scope.hpp vm/builtin/location.hpp vm/builtin/capi_handle.hpp vm/builtin/global_cache_entry.hpp vm/builtin/weakref.hpp vm/builtin/fiber.hpp vm/builtin/thunk.hpp vm/builtin/call_unit.hpp vm/builtin/call_unit_adapter.hpp
daedalus: Nothing to do for vm/vm
/usr/bin/ruby1.8 -S rake -r /home/russell/src/rubinius/config.rb -r /home/russell/src/rubinius/rakelib/ext_helper.rb -r /home/russell/src/rubinius/rakelib/dependency_grapher.rb build:mri
(in /home/russell/src/rubinius/lib/ext/melbourne)
Building Melbourne for MRI
/usr/bin/ruby1.8 -S rake -r /home/russell/src/rubinius/config.rb -r /home/russell/src/rubinius/rakelib/ext_helper.rb -r /home/russell/src/rubinius/rakelib/dependency_grapher.rb build
(in /home/russell/src/rubinius/lib/ext/bigdecimal)
/usr/bin/ruby1.8 -S rake -r /home/russell/src/rubinius/config.rb -r /home/russell/src/rubinius/rakelib/ext_helper.rb -r /home/russell/src/rubinius/rakelib/dependency_grapher.rb build
(in /home/russell/src/rubinius/lib/ext/readline)
/usr/bin/ruby1.8 -S rake -r /home/russell/src/rubinius/config.rb -r /home/russell/src/rubinius/rakelib/ext_helper.rb -r /home/russell/src/rubinius/rakelib/dependency_grapher.rb build
(in /home/russell/src/rubinius/lib/ext/digest)
/usr/bin/ruby1.8 -S rake -r /home/russell/src/rubinius/config.rb -r /home/russell/src/rubinius/rakelib/ext_helper.rb -r /home/russell/src/rubinius/rakelib/dependency_grapher.rb build
(in /home/russell/src/rubinius/lib/ext/digest/md5)
/usr/bin/ruby1.8 -S rake -r /home/russell/src/rubinius/config.rb -r /home/russell/src/rubinius/rakelib/ext_helper.rb -r /home/russell/src/rubinius/rakelib/dependency_grapher.rb build
(in /home/russell/src/rubinius/lib/ext/digest/rmd160)
/usr/bin/ruby1.8 -S rake -r /home/russell/src/rubinius/config.rb -r /home/russell/src/rubinius/rakelib/ext_helper.rb -r /home/russell/src/rubinius/rakelib/dependency_grapher.rb build
(in /home/russell/src/rubinius/lib/ext/digest/sha1)
/usr/bin/ruby1.8 -S rake -r /home/russell/src/rubinius/config.rb -r /home/russell/src/rubinius/rakelib/ext_helper.rb -r /home/russell/src/rubinius/rakelib/dependency_grapher.rb build
(in /home/russell/src/rubinius/lib/ext/digest/sha2)
/usr/bin/ruby1.8 -S rake -r /home/russell/src/rubinius/config.rb -r /home/russell/src/rubinius/rakelib/ext_helper.rb -r /home/russell/src/rubinius/rakelib/dependency_grapher.rb build
(in /home/russell/src/rubinius/lib/ext/digest/bubblebabble)
/usr/bin/ruby1.8 -S rake -r /home/russell/src/rubinius/config.rb -r /home/russell/src/rubinius/rakelib/ext_helper.rb -r /home/russell/src/rubinius/rakelib/dependency_grapher.rb build
(in /home/russell/src/rubinius/lib/ext/syck)
/usr/bin/ruby1.8 -S rake -r /home/russell/src/rubinius/config.rb -r /home/russell/src/rubinius/rakelib/ext_helper.rb -r /home/russell/src/rubinius/rakelib/dependency_grapher.rb build:rbx
(in /home/russell/src/rubinius/lib/ext/melbourne)
Building Melbourne for Rubinius
/usr/bin/ruby1.8 -S rake -r /home/russell/src/rubinius/config.rb -r /home/russell/src/rubinius/rakelib/ext_helper.rb -r /home/russell/src/rubinius/rakelib/dependency_grapher.rb build
(in /home/russell/src/rubinius/lib/ext/nkf)
Building openssl
/home/russell/src/rubinius/bin/rbx-build extconf.rb
/home/russell/src/rubinius/bin/../vm/vm: symbol lookup error: /home/russell/src/rubinius/bin/../vm/vm: undefined symbol: _ZN4llvm8RegistryINS_10GCStrategyENS_14RegistryTraitsIS1_EEE4HeadE
rake aborted!
Command failed with status (127): [/home/russell/src/rubinius/bin/rbx-build e...]
(See full trace by running task with --trace)
UBUNTU 9.10
$ ./configure --skip-prebuilt
Configuring LLVM...
Checking for existing LLVM tree: not found.
Checking for 'llvm-config': not found
Downloading http://llvm.org/releases/2.8/llvm-2.8.tgz...
Downloading llvm-2.8.tgz...
[ 100% (9112527 of 9112527) ]: done!
Unpacking LLVM source: done!
Code appears to be a proper tree.
Checking sizeof(long): 4 bytes
Checking platform endianness: little endian
Checking tr1/hash definition: found
Checking for function 'backtrace': found!
Checking for function 'readline': found!
Checking curses library: curses
Configured. Run 'rake' to build and run VM tests and rubyspecs.
After building, you may add '/home/russell/src/rubinius/bin' to your PATH or run commands directly from that directory. Available commands are:
rbx, ruby, rake, gem, irb, rdoc, ri
$ rake clean
(in /home/russell/src/rubinius)
Can't open perl script "vm/external_libs/llvm/Release/bin/llvm-config": No such file or directory
Can't open perl script "vm/external_libs/llvm/Release/bin/llvm-config": No such file or directory
Can't open perl script "vm/external_libs/llvm/Release/bin/llvm-config": No such file or directory
$ rake
.....
GEN web/_includes/instructions.markdown
Running 150 tasks using 2 parallel threads
1: CC vm/agent.cpp
2: CC vm/agent_components.cpp
1: CC vm/arguments.cpp
2: CC vm/builtin/access_variable.cpp
1: CC vm/builtin/alias.cpp
2: CC vm/builtin/array.cpp
1: CC vm/builtin/autoload.cpp
2: CC vm/builtin/bignum.cpp
1: CC vm/builtin/block_as_method.cpp
1: CC vm/builtin/block_environment.cpp
In file included from vm/external_libs/llvm/include/llvm/Support/PointerLikeTypeTraits.h:18,
from vm/external_libs/llvm/include/llvm/ADT/PointerIntPair.h:17,
from vm/external_libs/llvm/include/llvm/Use.h:29,
from vm/external_libs/llvm/include/llvm/Value.h:18,
from vm/external_libs/llvm/include/llvm/User.h:22,
from vm/external_libs/llvm/include/llvm/Constant.h:17,
from vm/external_libs/llvm/include/llvm/GlobalValue.h:21,
from vm/external_libs/llvm/include/llvm/Function.h:21,
from vm/external_libs/llvm/include/llvm/Module.h:18,
from vm/llvm/jit.hpp:7,
from vm/builtin/block_environment.cpp:28:
vm/external_libs/llvm/include/llvm/System/DataTypes.h:45:3: error: #error "Must #define __STDC_LIMIT_MACROS before #including System/DataTypes.h"
vm/external_libs/llvm/include/llvm/System/DataTypes.h:49:3: error: #error "Must #define __STDC_CONSTANT_MACROS before " "#including System/DataTypes.h"
2: CC vm/builtin/bytearray.cpp
In file included from vm/external_libs/llvm/include/llvm/Attributes.h:18,
from vm/external_libs/llvm/include/llvm/Argument.h:18,
from vm/external_libs/llvm/include/llvm/Function.h:24,
from vm/external_libs/llvm/include/llvm/Module.h:18,
from vm/llvm/jit.hpp:7,
from vm/builtin/block_environment.cpp:28:
vm/external_libs/llvm/include/llvm/Support/MathExtras.h: In function ‘bool llvm::isInt(int64_t)’:
vm/external_libs/llvm/include/llvm/Support/MathExtras.h:38: error: there are no arguments to ‘INT64_C’ that depend on a template parameter, so a declaration of ‘INT64_C’ must be available
vm/external_libs/llvm/include/llvm/Support/MathExtras.h:38: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
vm/external_libs/llvm/include/llvm/Support/MathExtras.h:38: error: there are no arguments to ‘INT64_C’ that depend on a template parameter, so a declaration of ‘INT64_C’ must be available
vm/external_libs/llvm/include/llvm/Support/MathExtras.h: In function ‘bool llvm::isUInt(uint64_t)’:
vm/external_libs/llvm/include/llvm/Support/MathExtras.h:57: error: there are no arguments to ‘UINT64_C’ that depend on a template parameter, so a declaration of ‘UINT64_C’ must be available
vm/builtin/bytearray.cpp: In static member function ‘static rubinius::ByteArray* rubinius::ByteArray::create(rubinius::VM*, rubinius::native_int)’:
vm/builtin/bytearray.cpp:26: error: ‘INT32_MAX’ was not declared in this scope
vm/builtin/bytearray.cpp: In static member function ‘static rubinius::ByteArray* rubinius::ByteArray::create_pinned(rubinius::VM*, rubinius::native_int)’:
vm/builtin/bytearray.cpp:39: error: ‘INT32_MAX’ was not declared in this scope
Error: gcc -Ivm -Ivm/test/cxxtest -I. -I/usr/local/include -I/opt/local/include -pipe -Wall -fno-omit-frame-pointer -ggdb3 -Werror -DRBX_PROFILER -O2 -DHAS_EXECINFO -DHAS_READLINE -Ivm/external_libs/llvm/include -DENABLE_LLVM -Ivm/external_libs/udis86 -Ivm/external_libs/libffi/include -Ivm/external_libs/libgdtoa -Ivm/external_libs/onig -Ivm/external_libs/libtommath -c -o vm/builtin/artifacts/bytearray.cpp.o vm/builtin/bytearray.cpp
Error: gcc -Ivm -Ivm/test/cxxtest -I. -I/usr/local/include -I/opt/local/include -pipe -Wall -fno-omit-frame-pointer -ggdb3 -Werror -DRBX_PROFILER -O2 -DHAS_EXECINFO -DHAS_READLINE -Ivm/external_libs/llvm/include -DENABLE_LLVM -Ivm/external_libs/udis86 -Ivm/external_libs/libffi/include -Ivm/external_libs/libgdtoa -Ivm/external_libs/onig -Ivm/external_libs/libtommath -c -o vm/builtin/artifacts/block_environment.cpp.o vm/builtin/block_environment.cpp
rake aborted!
Error compiling
(See full trace by running task with --trace)
UBUNTU 9.10
rake clean with patch https://gist.github.com/846842 applied
$ rake clean
(in /home/russell/src/rubinius)
["-I/home/russell/src/rubinius/vm/external_libs/llvm/include", "-I/home/russell/src/rubinius/vm/external_libs/llvm/include", "-DNDEBUG", "-D_GNU_SOURCE", "-D__STDC_LIMIT_MACROS", "-D__STDC_CONSTANT_MACROS", "-O3", "-fomit-frame-pointer", "-fPIC"]
UBUNTU 9.10
rake clean with:
p l.cflags = flags
$ rake clean
(in /home/russell/src/rubinius)
["-DNDEBUG", "-D_GNU_SOURCE", "-D__STDC_LIMIT_MACROS", "-D__STDC_CONSTANT_MACROS", "-fomit-frame-pointer", "-fPIC", "-Ivm/external_libs/llvm/include", "-DENABLE_LLVM"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment