I get this:
/home/users/aredridel/rpm/BUILD/ruby-1.8.0/lib/mkmf.rb:20: private
method sub!' called for nil:NilClass (NoMethodError) from /home/users/aredridel/rpm/BUILD/ruby-1.8.0/lib/mkmf.rb:18:in
each’
from /home/users/aredridel/rpm/BUILD/ruby-1.8.0/lib/mkmf.rb:18
from ./ext/extmk.rb:28:in `require’
from ./ext/extmk.rb:28
immediately after compiling miniruby with this build script:
autoconf
./configure LDFLAGS=-s CFLAGS=-O2 -march=athlon CXXFLAGS=-O2
-march=athlon FFLAGS=-O2 -march=athlon CPPFLAGS=
CC=i686-pld-linux-gcc CXX=i686-pld-linux-g++
–build=athlon-pld-linux --prefix=/usr --exec-prefix=/usr
–bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
–datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib
–libexecdir=/usr/lib --localstatedir=/var
–sharedstatedir=/var/lib --mandir=/usr/share/man
–infodir=/usr/share/info --enable-shared
make
Any clues before I jump in headlong?
Ari
I see you use athlon optimizations.
Does it build if you turn optimization off ?
Is it the released Ruby-1.8.0-preview3 you are trying to build ?
Or is it cvs-version of ruby ?
···
On Wed, 25 Jun 2003 02:29:23 +0900, Aredridel wrote:
./configure LDFLAGS=-s CFLAGS=-O2 -march=athlon CXXFLAGS=-O2
-march=athlon FFLAGS=-O2 -march=athlon CPPFLAGS=
CC=i686-pld-linux-gcc CXX=i686-pld-linux-g++
–build=athlon-pld-linux --prefix=/usr --exec-prefix=/usr
Any clues before I jump in headlong?
–
Simon Strandgaard
./configure LDFLAGS=-s CFLAGS=-O2 -march=athlon CXXFLAGS=-O2
-march=athlon FFLAGS=-O2 -march=athlon CPPFLAGS=
CC=i686-pld-linux-gcc CXX=i686-pld-linux-g++
–build=athlon-pld-linux --prefix=/usr --exec-prefix=/usr
Any clues before I jump in headlong?
I see you use athlon optimizations.
Does it build if you turn optimization off ?
It doesn’t build without optimization either – the error is in the
mkmf.rb (or called) scripts, not in the resulting executable.
Is it the released Ruby-1.8.0-preview3 you are trying to build ?
Or is it cvs-version of ruby ?
Released preview3.
···
On Tue, 2003-06-24 at 12:51, Simon Strandgaard wrote:
On Wed, 25 Jun 2003 02:29:23 +0900, Aredridel wrote:
–
Simon Strandgaard
Hi,
Show me your “rbconfig.rb” file.
Thank you.
CONFIG[“configure_args”] = “‘LDFLAGS=-s’ 'CFLAGS=-O2 -march=athlon ’ ‘’ ‘’ 'CXXFLAGS=-O2 -march=athlon ’ ‘’ ‘’ 'FFLAGS=-O2 -march=athlon ’ ‘’ ‘’ ‘CPPFLAGS=’ ‘CC=i686-pld-linux-gcc’ ‘CXX=i686-pld-linux-g++’ ‘–build=athlon-pld-linux’ ‘–prefix=/usr’ ‘–exec-prefix=/usr’ ‘–bindir=/usr/bin’ ‘–sbindir=/usr/sbin’ ‘–sysconfdir=/etc’ ‘–datadir=/usr/share’ ‘–includedir=/usr/include’ ‘–libdir=/usr/lib’ ‘–libexecdir=/usr/lib’ ‘–localstatedir=/var’ ‘–sharedstatedir=/var/lib’ ‘–mandir=/usr/share/man’ ‘–infodir=/usr/share/info’ ‘–enable-shared’ ‘build_alias=athlon-pld-linux’ ‘host_alias=’ ‘target_alias=’”
This is a line that caused a problem. Somehow you’ve specified “” to
your configure arguments.
matz.
— lib/mkmf.rb 16 Jun 2003 07:14:41 -0000 1.131
+++ lib/mkmf.rb 25 Jun 2003 04:09:42 -0000
@@ -19,2 +19,3 @@
arg, val = arg.split(‘=’, 2)
next unless arg
if arg.sub!(/^(?!–)/, ‘–’)
@@ -28,2 +29,3 @@
arg, val = arg.split(‘=’, 2)
next unless arg
if arg.sub!(/^(?!–)/, ‘–’)
···
In message “Re: ruby 1.8.0-preview3 build errors” on 03/06/25, Aredridel aredridel@nbtsc.org writes:
This is a line that caused a problem. Somehow you’ve specified “” to
your configure arguments.
Ah, I see – PLD’s build scripts. I’ll have to delve into the depths of
RPM to get that to build properly. A few days from now, probably.
Thank you, Matz.
Ari
daz
(daz)
25 June 2003 05:55
8
This is a line that caused a problem. Somehow you’ve specified “” to
your configure arguments.
Ah, I see – PLD’s build scripts. I’ll have to delve into the depths of
RPM to get that to build properly. A few days from now, probably.
Thank you, Matz.
Ari
/configure LDFLAGS=-s CFLAGS=-O2 -march=athlon CXXFLAGS=-O2
^^^^
-march=athlon FFLAGS=-O2 -march=athlon CPPFLAGS=
^^^^ ^^^^
CC=i686-pld-linux-gcc CXX=i686-pld-linux-g++
Have any odd control characters found their way into those
gaps after -march=athlon ?? For each of the three occurrences,
mkconfig has generated -
'CFLAGS=-O2 -march=athlon ’ ‘’ ‘’
'CXXFLAGS=-O2 -march=athlon ’ ‘’ ‘’
'FFLAGS=-O2 -march=athlon ’ ‘’ ‘’
Happy hunting
daz
···
“Aredridel” aredridel@nbtsc.org wrote:
Not odd control characters – just separate tokens that bash doesn’t
show –
echo “” “”
still prints nothing, despite having two parameters. Go figure
Ari
···
On Tue, 2003-06-24 at 23:55, daz wrote:
“Aredridel” aredridel@nbtsc.org wrote:
This is a line that caused a problem. Somehow you’ve specified “” to
your configure arguments.
Ah, I see – PLD’s build scripts. I’ll have to delve into the depths of
RPM to get that to build properly. A few days from now, probably.
Thank you, Matz.
Ari
/configure LDFLAGS=-s CFLAGS=-O2 -march=athlon CXXFLAGS=-O2
^^^^
-march=athlon FFLAGS=-O2 -march=athlon CPPFLAGS=
^^^^ ^^^^
CC=i686-pld-linux-gcc CXX=i686-pld-linux-g++
Have any odd control characters found their way into those
gaps after -march=athlon ?? For each of the three occurrences,
mkconfig has generated -
It doesn’t print nothing: it prints a space (to separate your two empty
parameters), followed by a newline.
Regards,
Brian.
···
On Wed, Jun 25, 2003 at 11:42:59PM +0900, Aredridel wrote:
echo “” “”
still prints nothing, despite having two parameters. Go figure
Newest ruby built with -O -march=athlon segfaulted with
pkgdb -uf
under freebsd stable when compiled with gcc33,
the program worked with ruby18 compiled with system compiler (gcc-2.95.4) and the same
options and it worked with ruby18 compiled with gcc33 under FreeBSD-current
(fyi: system compiler gcc-3.2).
···
–
Fritz Heinrichmeyer FernUniversitaet, LG ES, 58084 Hagen (Germany)
tel:+49 2331/987-1166 fax:987-355