Can't build MacRuby trunk
Hi, I'm trying to build the trunk. I've got LLVM r89156 built as suggested by the README.rdoc file. I've built MacRuby successfully in the past. I'm on Xcode 3.2.3... My llvm-gcc is: gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2326.10) Am I doing something wrong, or should I open a ticket? /\/\ike : LiveSurface/MacRuby> rake jobs=2 (in /Users/mtaylor/Projects/LiveSurface/MacRuby) /usr/bin/bison -o y.tab.c parse.y parse.y: conflicts: 1 shift/reduce /usr/bin/sed -f ./tool/ytab.sed -e "/^#/s!y.tab.c!parse.c!" y.tab.c > parse.c.new mv parse.c.new parse.c rm -f .objs/parse.o cp lex.c.blt lex.c /usr/bin/ruby -n tool/node_name.rb include/ruby/node.h > node_name.inc echo '' > .objs/kernel_data.c /Developer/usr/bin/llvm-gcc -arch i386 -fexceptions -fno-stack-protector -I. -I./include -I./icu-1060 --emit-llvm -c kernel.c -o .objs/kernel-i386.bc /usr/local/bin/opt -O3 .objs/kernel-i386.bc -o=.objs/kernel-i386.bc Intrinsic parameter #1 is wrong! i32 (i8*, i1)* @llvm.objectsize.i32 Intrinsic parameter #1 is wrong! i32 (i8*, i1)* @llvm.objectsize.i32 Broken module found, compilation aborted! 0 opt 0x00000001003eb7f2 char const* std::find<char const*, char>(char const*, char const*, char const&, std::random_access_iterator_tag) + 802 1 opt 0x00000001003ec06c char const* std::find<char const*, char>(char const*, char const*, char const&, std::random_access_iterator_tag) + 2972 2 libSystem.B.dylib 0x00007fff8739735a _sigtramp + 26 3 libSystem.B.dylib 0x0000000100705740 _sigtramp + 2033640448 4 opt 0x00000001003b4081 llvm::CallbackVH::deleted() + 79857 5 opt 0x000000010038b4fb llvm::FunctionPass::~FunctionPass() + 26139 6 opt 0x000000010038b66b llvm::FunctionPass::~FunctionPass() + 26507 7 opt 0x000000010038b1f7 llvm::FunctionPass::~FunctionPass() + 25367 8 opt 0x000000010038c7b3 llvm::FunctionPass::~FunctionPass() + 30931 9 opt 0x000000010038c83d llvm::FunctionPass::~FunctionPass() + 31069 10 opt 0x0000000100040277 llvm::scc_iterator<llvm::CallGraphNode*, llvm::GraphTraits<llvm::CallGraphNode*> > llvm::scc_begin<llvm::CallGraphNode*>(llvm::CallGraphNode* const&) + 11031 11 opt 0x0000000100036738 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*>(char*, char*, std::allocator<char> const&) + 13912 12 opt 0x0000000000000004 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*>(char*, char*, std::allocator<char> const&) + 4294758180 Stack dump: 0. Running pass 'Function Pass Manager' on module '.objs/kernel-i386.bc'. 1. Running pass 'Module Verifier' on function '@vm_resolve_args' rake aborted! Command failed with status (): [/usr/local/bin/opt -O3 .objs/kernel-i386.b...] (See full trace by running task with --trace)
Hi Mike, Did you install a newer Xcode recently? This could explain the problem, llvm-gcc generating newer bitcode incompatible with the older LLVM opt. In any case, I'm working on integrating a much newer version of LLVM for the 10.6 build. It should be committed later today, I will post a message here when it's done. Laurent On Jun 24, 2010, at 10:49 AM, Mike Taylor wrote:
Hi,
I'm trying to build the trunk. I've got LLVM r89156 built as suggested by the README.rdoc file. I've built MacRuby successfully in the past.
I'm on Xcode 3.2.3...
My llvm-gcc is: gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2326.10)
Am I doing something wrong, or should I open a ticket?
/\/\ike
: LiveSurface/MacRuby> rake jobs=2 (in /Users/mtaylor/Projects/LiveSurface/MacRuby) /usr/bin/bison -o y.tab.c parse.y parse.y: conflicts: 1 shift/reduce /usr/bin/sed -f ./tool/ytab.sed -e "/^#/s!y.tab.c!parse.c!" y.tab.c > parse.c.new mv parse.c.new parse.c rm -f .objs/parse.o cp lex.c.blt lex.c /usr/bin/ruby -n tool/node_name.rb include/ruby/node.h > node_name.inc echo '' > .objs/kernel_data.c /Developer/usr/bin/llvm-gcc -arch i386 -fexceptions -fno-stack-protector -I. -I./include -I./icu-1060 --emit-llvm -c kernel.c -o .objs/kernel-i386.bc /usr/local/bin/opt -O3 .objs/kernel-i386.bc -o=.objs/kernel-i386.bc Intrinsic parameter #1 is wrong! i32 (i8*, i1)* @llvm.objectsize.i32 Intrinsic parameter #1 is wrong! i32 (i8*, i1)* @llvm.objectsize.i32 Broken module found, compilation aborted! 0 opt 0x00000001003eb7f2 char const* std::find<char const*, char>(char const*, char const*, char const&, std::random_access_iterator_tag) + 802 1 opt 0x00000001003ec06c char const* std::find<char const*, char>(char const*, char const*, char const&, std::random_access_iterator_tag) + 2972 2 libSystem.B.dylib 0x00007fff8739735a _sigtramp + 26 3 libSystem.B.dylib 0x0000000100705740 _sigtramp + 2033640448 4 opt 0x00000001003b4081 llvm::CallbackVH::deleted() + 79857 5 opt 0x000000010038b4fb llvm::FunctionPass::~FunctionPass() + 26139 6 opt 0x000000010038b66b llvm::FunctionPass::~FunctionPass() + 26507 7 opt 0x000000010038b1f7 llvm::FunctionPass::~FunctionPass() + 25367 8 opt 0x000000010038c7b3 llvm::FunctionPass::~FunctionPass() + 30931 9 opt 0x000000010038c83d llvm::FunctionPass::~FunctionPass() + 31069 10 opt 0x0000000100040277 llvm::scc_iterator<llvm::CallGraphNode*, llvm::GraphTraits<llvm::CallGraphNode*> > llvm::scc_begin<llvm::CallGraphNode*>(llvm::CallGraphNode* const&) + 11031 11 opt 0x0000000100036738 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*>(char*, char*, std::allocator<char> const&) + 13912 12 opt 0x0000000000000004 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*>(char*, char*, std::allocator<char> const&) + 4294758180 Stack dump: 0. Running pass 'Function Pass Manager' on module '.objs/kernel-i386.bc'. 1. Running pass 'Module Verifier' on function '@vm_resolve_args' rake aborted! Command failed with status (): [/usr/local/bin/opt -O3 .objs/kernel-i386.b...]
(See full trace by running task with --trace)
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
I upgraded to the final release of Xcode with the iPhone 4 SDK. I'll give it another shot once you're done. Thanks! On 2010-06-24, at 4:46 PM, Laurent Sansonetti wrote:
Hi Mike,
Did you install a newer Xcode recently? This could explain the problem, llvm-gcc generating newer bitcode incompatible with the older LLVM opt.
In any case, I'm working on integrating a much newer version of LLVM for the 10.6 build. It should be committed later today, I will post a message here when it's done.
Laurent
On Jun 24, 2010, at 10:49 AM, Mike Taylor wrote:
Hi,
I'm trying to build the trunk. I've got LLVM r89156 built as suggested by the README.rdoc file. I've built MacRuby successfully in the past.
I'm on Xcode 3.2.3...
My llvm-gcc is: gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2326.10)
Am I doing something wrong, or should I open a ticket?
/\/\ike
: LiveSurface/MacRuby> rake jobs=2 (in /Users/mtaylor/Projects/LiveSurface/MacRuby) /usr/bin/bison -o y.tab.c parse.y parse.y: conflicts: 1 shift/reduce /usr/bin/sed -f ./tool/ytab.sed -e "/^#/s!y.tab.c!parse.c!" y.tab.c > parse.c.new mv parse.c.new parse.c rm -f .objs/parse.o cp lex.c.blt lex.c /usr/bin/ruby -n tool/node_name.rb include/ruby/node.h > node_name.inc echo '' > .objs/kernel_data.c /Developer/usr/bin/llvm-gcc -arch i386 -fexceptions -fno-stack-protector -I. -I./include -I./icu-1060 --emit-llvm -c kernel.c -o .objs/kernel-i386.bc /usr/local/bin/opt -O3 .objs/kernel-i386.bc -o=.objs/kernel-i386.bc Intrinsic parameter #1 is wrong! i32 (i8*, i1)* @llvm.objectsize.i32 Intrinsic parameter #1 is wrong! i32 (i8*, i1)* @llvm.objectsize.i32 Broken module found, compilation aborted! 0 opt 0x00000001003eb7f2 char const* std::find<char const*, char>(char const*, char const*, char const&, std::random_access_iterator_tag) + 802 1 opt 0x00000001003ec06c char const* std::find<char const*, char>(char const*, char const*, char const&, std::random_access_iterator_tag) + 2972 2 libSystem.B.dylib 0x00007fff8739735a _sigtramp + 26 3 libSystem.B.dylib 0x0000000100705740 _sigtramp + 2033640448 4 opt 0x00000001003b4081 llvm::CallbackVH::deleted() + 79857 5 opt 0x000000010038b4fb llvm::FunctionPass::~FunctionPass() + 26139 6 opt 0x000000010038b66b llvm::FunctionPass::~FunctionPass() + 26507 7 opt 0x000000010038b1f7 llvm::FunctionPass::~FunctionPass() + 25367 8 opt 0x000000010038c7b3 llvm::FunctionPass::~FunctionPass() + 30931 9 opt 0x000000010038c83d llvm::FunctionPass::~FunctionPass() + 31069 10 opt 0x0000000100040277 llvm::scc_iterator<llvm::CallGraphNode*, llvm::GraphTraits<llvm::CallGraphNode*> > llvm::scc_begin<llvm::CallGraphNode*>(llvm::CallGraphNode* const&) + 11031 11 opt 0x0000000100036738 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*>(char*, char*, std::allocator<char> const&) + 13912 12 opt 0x0000000000000004 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*>(char*, char*, std::allocator<char> const&) + 4294758180 Stack dump: 0. Running pass 'Function Pass Manager' on module '.objs/kernel-i386.bc'. 1. Running pass 'Module Verifier' on function '@vm_resolve_args' rake aborted! Command failed with status (): [/usr/local/bin/opt -O3 .objs/kernel-i386.b...]
(See full trace by running task with --trace)
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (2)
-
Laurent Sansonetti
-
Mike Taylor