[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Ruby on microblaze-uclinux



Hi, all,

Has anyone made Ruby working on uclinux on microblaze?

Currently I can link the ruby executable (disabling some tests in
configure, and disable the build of ext modules by setting option
nodynamic ).   I used a host Ruby interpreter instead of the miniruby
to run the last few steps of build and install. (extmk.rb and
instruby.rb)

Ruby can be started on the target, but fails to run with error messages like
ruby < /usr/local/bin/ri
-:19: unexpected return

Any idea on why this happens would be very useful.

The compiler switch I used:

-Os -g -fomit-frame-pointer -fno-common -fno-builtin -Wall  
-msoft-float -mno-xl-soft-mul -mxl-soft-div  -DEMBED -Dlinux
-D__linux__ -Dunix -D__uClinux__ -DHAVE_FCNTL_H=1 -DHAVE_MEMORY_H=1
-DHAVE_PATHS_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_DIRENT_H=1
-DHAVE_LIBCRYPT=1 -DHAVE_STRERROR=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1
-DHAVE_GETPAGESIZE=1

and for linker

-Wl,-elf2flt

Thanks in advance,

Wei

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/