有人成功给ARM cross compile 过python, ruby 吗?

31 views
Skip to first unread message

Yiling Cao (c2h2)

unread,
Aug 4, 2011, 11:56:58 PM8/4/11
to sh...@googlegroups.com
我成功cross compile 了 dropbear, netcat 等等... 

现在正在试图compile ruby, 但一直有错, 问问群众们做过吗?

机械唯物主义 : linjunhalida

unread,
Aug 5, 2011, 12:06:38 AM8/5/11
to sh...@googlegroups.com
肯定能编的. 有什么报错贴出来看看就好了.

2011/8/5 Yiling Cao (c2h2) <yilin...@gmail.com>:

Yiling Cao (c2h2)

unread,
Aug 5, 2011, 12:20:10 AM8/5/11
to sh...@googlegroups.com
al-gcc 是个alias -> arm-linux-gcc

./configure --target=arm-linux --host=arm-linux
手动修改了Makefile里面的gcc, ar, ranlib

c2h2@c2h2vm1104:/home/c2h2/arm/ruby-1.9.2-p290$ make
al-gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -I. -I.ext/include/arm-linux -I./include -I. -DRUBY_EXPORT   -o main.o -c main.c
In file included from ./include/ruby.h:32,
                 from main.c:13:
./include/ruby/ruby.h:108: error: size of array 'ruby_check_sizeof_long' is negative
./include/ruby/ruby.h:112: error: size of array 'ruby_check_sizeof_voidp' is negative
In file included from ./include/ruby/intern.h:29,
                 from ./include/ruby/ruby.h:1327,
                 from ./include/ruby.h:32,
                 from main.c:13:
./include/ruby/st.h:69: error: size of array 'st_check_for_sizeof_st_index_t' is negative
make: *** [main.o] Error 1




2011/8/5 机械唯物主义 : linjunhalida <linjun...@gmail.com>

黄敦荣

unread,
Aug 5, 2011, 2:33:44 AM8/5/11
to sh...@googlegroups.com
这里有一个补丁, 是针对 python-2.7.1的, http://www.cnx-software.com/patch/python-2.7.1-cross-compile.patch


2011/8/5 Yiling Cao (c2h2) <yilin...@gmail.com>
al-gcc 是个alias -> arm-linux-gcc

./configure --target=arm-linux --host=arm-linux
手动修改了Makefile里面的gcc, ar, ranlib

c2h2@c2h2vm1104:/home/c2h2/arm/ruby-1.9.2-p290$ make
al-gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -I. -I.ext/include/arm-linux -I./include -I. -DRUBY_EXPORT   -o main.o -c main.c
In file included from ./include/ruby.h:32,
                 from main.c:13:
./include/ruby/ruby.h:108: error: size of array 'ruby_check_sizeof_long' is negative
./include/ruby/ruby.h:112: error: size of array 'ruby_check_sizeof_voidp' is negative
In file included from ./include/ruby/intern.h:29,
                 from ./include/ruby/ruby.h:1327,
                 from ./include/ruby.h:32,
                 from main.c:13:
./include/ruby/st.h:69: error: size of array 'st_check_for_sizeof_st_index_t' is negative
make: *** [main.o] Error 1




2011/8/5 机械唯物主义 : linjunhalida <linjun...@gmail.com>

肯定能编的. 有什么报错贴出来看看就好了.

2011/8/5 Yiling Cao (c2h2) <yilin...@gmail.com>:
> 我成功cross compile 了 dropbear, netcat 等等...
> 现在正在试图compile ruby, 但一直有错, 问问群众们做过吗?




--
linuxer and emacser and pythoner living in xiamen
blog: http://mathslinux.org
twitter: https://twitter.com/mathslinux
google+: https://plus.google.com/118129852578326338750

Yiling Cao (c2h2)

unread,
Aug 5, 2011, 2:37:54 AM8/5/11
to sh...@googlegroups.com
好的,谢谢.

2011/8/5 黄敦荣 <riega...@gmail.com>
Reply all
Reply to author
Forward
0 new messages