General

Profile

jinleileiking (lei king)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 5 5

Activity

07/24/2012

10:25 AM Ruby Bug #6780: cannot compile zlib module, when cross-compiling.
AFter 1 day hacking. Finally I ran 'gem list' ok on my am355x arm evm board.
I have some experience to share, but there is no wiki.!!! :(
Thanks nobu and all!!!
jinleileiking (lei king)
12:08 AM Ruby Bug #6780: cannot compile zlib module, when cross-compiling.
=begin
nobu (Nobuyoshi Nakada) wrote:
> Where are the header and library files for your target platform?
this is the x86_64 zlib:

➜ ~ git:(master) ✗ equery f zlib
* Searching for zlib ...
* Contents of sys-libs/zlib-1.2.7:
/lib6...
jinleileiking (lei king)

07/23/2012

10:56 PM Ruby Bug #6780: cannot compile zlib module, when cross-compiling.
=begin
I have some clue.. :)
from mkmf.log,
we can see, the make cmd, using
have_library: checking for deflateReset() in -lz... -------------------- no

"arm-angstrom-linux-gnueabi-gcc -o conftest -I../../.ext/include/...
jinleileiking (lei king)
09:38 PM Ruby Bug #6780: cannot compile zlib module, when cross-compiling.
=begin
the Makefile of cross-compiling.
➜ ruby git:(ruby_1_9_2) ✗ cat ext/zlib/Makefile
SHELL = /bin/sh

#### Start of system configuration section. ####
top_srcdir = $(topdir)/.
srcdir = $(top_srcdir)/ext/zlib
topdir = ../.....
jinleileiking (lei king)
09:02 PM Ruby Bug #6780: cannot compile zlib module, when cross-compiling.
I have test on non-crosscompile mode. It is okay.
compiling zlib
make[1]: Entering directory `/mnt/share/study/src/lang/ruby/ext/zlib'
gcc -I. -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/zlib -DRUBY_EXTCONF_H...
jinleileiking (lei king)
06:18 PM Ruby Bug #6780 (Rejected): cannot compile zlib module, when cross-compiling.
1_9_2 branch.
using:
env ac_cv_func_setpgrp_void=yes ./configure --host=arm-angstrom-linux-gnueabi --prefix= --enable-shared --disable-install-doc
no zlib library made.
➜ ruby git:(ruby_1_9_2) ✗ cat ext/Setup
#option no...
jinleileiking (lei king)
04:19 PM Ruby Feature #6779: cross-compiling convience.
sorry. I create two issue ,please close it. jinleileiking (lei king)
04:04 PM Ruby Feature #6779 (Rejected): cross-compiling convience.
when cross-compiling, using the --prefix and --exec-prefix is not very convience.
using make install will install the file to exec-prefix dir.
But when cross compiling. the exec-prefix is always '/'.
Means install the files to /...
jinleileiking (lei king)
04:03 PM Ruby Feature #6778 (Rejected): cross-compiling convience.
when cross-compiling, using the --prefix and --exec-prefix is not very convience.
using make install will install the file to exec-prefix dir.
But when cross compiling. the exec-prefix is always '/'.
Means install the files to /...
jinleileiking (lei king)
03:32 PM Ruby Bug #6776: segment fault for 1.9.3 trunk crosscompiled runing on am335x
1.9.2 is ok:
root@am335x-evm:/bin# ruby -v
ruby 1.9.2p323 (2012-05-22 revision 35755) [arm-linux-eabi]
1.9.2 step:
* autoreconf
* make clean
* env ac_cv_func_setpgrp_void=yes ./configure --host=arm-angstrom-linux-gnueabi ...
jinleileiking (lei king)

Also available in: Atom