yarv-dev:1003
From: Kazuhiro NISHIYAMA <zn mbf.nifty.com>
Date: Wed, 15 Mar 2006 02:36:43 +0900
Subject: [yarv-dev:1003] open> cannot cross compile for linux zaurus
西山和広です。 http://www.osk.3web.ne.jp/~nyasu/diary/200603.html#20060313_0 を見て、cygwin上でlinux zaurus用にクロスコンパイルしようとしたら いくつかはまったのでパッチです。 ext/syck/*.[ch]のMは ruby -pli~ -e '' ext/syck/*.[ch] で改行がCRLFになっていたのをLFだけに変更しました。 cross compileとは関係ないですが、 configure,autom4te.cache,ext/win32ole/.document はsvn:ignoreに入れておいて欲しいです。 % svn st ? configure ? autom4te.cache M lib/fileutils.rb M gc.c ? ext/win32ole/.document M ext/syck/bytecode.c M ext/syck/rubyext.c M ext/syck/yaml2byte.c M ext/syck/emitter.c M ext/syck/syck.c M ext/syck/implicit.c M ext/syck/handler.c M ext/syck/syck.h M ext/syck/token.c M ext/syck/node.c M ext/syck/gram.c M ext/syck/gram.h % svn diff lib/fileutils.rb gc.c Index: lib/fileutils.rb =================================================================== --- lib/fileutils.rb (revision 482) +++ lib/fileutils.rb (working copy) @@ -1363,7 +1363,7 @@ end # class Entry_ def fu_list(arg) #:nodoc: - [arg].flatten.map {|path| File.path(path) } + [arg].flatten.map {|path| File.expand_path(path) } end private_module_function :fu_list Index: gc.c =================================================================== --- gc.c (revision 482) +++ gc.c (working copy) @@ -1307,12 +1307,12 @@ #if STACK_GROW_DIRECTION < 0 rb_gc_mark_locations(th->machine_stack_end, th->machine_stack_start); #elif STACK_GROW_DIRECTION > 0 - rb_gc_mark_locations(th->machin_stack_start, th->machine_stack_end + 1); + rb_gc_mark_locations(th->machine_stack_start, th->machine_stack_end + 1); #else - if (th->machine_stack_end < th->machin_stack_start) - rb_gc_mark_locations(th->machine_stack_end, th->machin_stack_start); + if (th->machine_stack_end < th->machine_stack_start) + rb_gc_mark_locations(th->machine_stack_end, th->machine_stack_start); else - rb_gc_mark_locations(th->machin_stack_start, th->machine_stack_end + 1); + rb_gc_mark_locations(th->machine_stack_start, th->machine_stack_end + 1); #endif #ifdef __ia64__ /* mark backing store (flushed register window on the stack) */ @@ -1380,10 +1380,10 @@ #if STACK_GROW_DIRECTION < 0 rb_gc_mark_locations(th->machine_stack_end, th->machine_stack_start); #elif STACK_GROW_DIRECTION > 0 - rb_gc_mark_locations(th->machin_stack_start, th->machine_stack_end); + rb_gc_mark_locations(th->machine_stack_start, th->machine_stack_end); #else - if (th->machin_stack_start < th->machine_stack_end) { - rb_gc_mark_locations(th->machin_stack_start, th->machine_stack_end); + if (th->machine_stack_start < th->machine_stack_end) { + rb_gc_mark_locations(th->machine_stack_start, th->machine_stack_end); } else { rb_gc_mark_locations(th->machine_stack_end, th->machine_stack_start); % -- |ZnZ(ゼット エヌ ゼット) |西山和広(Kazuhiro NISHIYAMA) -- ML: yarv-dev quickml.atdot.net 使い方: http://www.atdot.net/~ko1/quickml
-> 1003 2006-03-15 02:36 [zn mbf.nifty.com ] open> cannot cross compile for linux zaurus 1004 2006-03-15 14:40 ┗[zn mbf.nifty.com ]