yarv-dev-en:190
From: Rafael 'Dido' Sevilla <dido imperium.ph>
Date: Sat, 30 Sep 2006 13:15:00 +0800
Subject: [yarv-dev-en:190] Building the latest YARV releases
I've been trying to get into experimenting with YARV lately, but
haven't had much success building the SVN or latest tarballs, although I
have managed to build 0.4.1 and am running the benchmarks right now.
Miniruby gets built just fine, however, but once it comes time to build
the extensions I run into weird problems. With the current SVN I get
the following:
./miniruby ../yarv-svn/mkconfig.rb -timestamp=.rbconfig.time \
-install_name=ruby-yarv-svn \
-so_name=ruby-yarv-svn rbconfig.rb
rbconfig.rb updated
./miniruby ../yarv-svn/ext/extmk.rb --dest-dir="" --make="make"
--mflags="" --make-flags="" --extout=".ext" --extension --extstatic --
compiling Win32API
compiling bigdecimal
make[1]: Entering directory `/home/dido/progs/yarv-svn-build/ext/bigdecimal'
Makefile:143: *** missing separator. Stop.
make[1]: Leaving directory `/home/dido/progs/yarv-svn-build/ext/bigdecimal'
make: *** [all] Error 1
A look ext/bigdecimal/Makefile line 143 shows the following garbage:
.cc.|#_!!_#|o:
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
.cxx.|#_!!_#|o:
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
.cpp.|#_!!_#|o:
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
.C.|#_!!_#|o:
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
.c.|#_!!_#|o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
The rest of the Makefile is shot full of these very strange |#_!!_#|
characters. What is going on here? I had to use my local autoconf
(2.60) to do the build; perhaps that has something to do with it...
I'm trying to build it on Gentoo Linux, and have got the following:
Base Ruby:
ruby 1.8.5 (2006-08-25) [i686-linux]
I also have Ruby 1.9:
ruby 1.9.0 (2006-09-29) [i686-linux]
but using this as baseruby gives me this error:
gcc -g -O2 -DRUBY_EXPORT -I. -I../yarv-svn -c ../yarv-svn/blockinlining.c
/usr/bin/ruby19 ../yarv-svn/rb/insns2vm.rb -I. -I../yarv-svn
--srcdir=../yarv-svn
../yarv-svn/rb/insns2vm.rb:153:in `parse_comment': undefined method
`each' for " @c nop\n @e nop\n @j nop\n":String (NoMethodError)
from ../yarv-svn/rb/insns2vm.rb:217:in `load_insns_def'
from ../yarv-svn/rb/insns2vm.rb:177:in `open'
from ../yarv-svn/rb/insns2vm.rb:177:in `load_insns_def'
from ../yarv-svn/rb/insns2vm.rb:102:in `initialize'
from ../yarv-svn/rb/insns2vm.rb:1147:in `Class#new'
from ../yarv-svn/rb/insns2vm.rb:1147:in `InsnsDef#make_sources'
from ../yarv-svn/rb/insns2vm.rb:1217
make: *** [insns.inc] Error 1
Autoconf:
autoconf (GNU Autoconf) 2.60
Make:
GNU Make 3.81
GCC:
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
--enable-nls --without-included-gettext --with-system-zlib
--disable-checking --disable-werror --disable-libunwind-exceptions
--disable-multilib --disable-libmudflap --disable-libssp
--disable-libgcj --enable-languages=c,c++,objc,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1-r1)
Glibc:
GNU C Library development release version 2.4, by Roland McGrath et al.
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.1 (Gentoo 4.1.1-r1).
Compiled on a Linux 2.6.17 system on 2006-09-14.
Available extensions:
The C stubs add-on version 2.1.2.
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
GNU libio by Per Bothner
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Native POSIX Threads Library by Ulrich Drepper et al
Support for some architectures added on, not maintained in glibc
core.
BIND-8.2.3-T5B
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
Output of uname -a
Linux achernar 2.6.16-suspend2-r8 #1 PREEMPT Sat Sep 16 07:53:59 PHT
2006 i686 mobile AMD Athlon(tm) XP2800+ AuthenticAMD GNU/Linux
--
Be the change that you want to see in the world.
http://stormwyrm.blogspot.com
-> @ 190 2006-09-30 14:15 [dido imperium.ph ] Building the latest YARV releases 195 2006-10-02 20:19 ┗[ko1 atdot.net ]