Kjetil Torgrim Homme <kjetilho / kaksi.ifi.uio.no> wrote:
> I'm trying to install Ruby 1.8.6 on AIX 4.3.3 using the IBM's xlc
> compiler.  there are a few trivial commas to remove (from eval.c and
> parse.y), but the real stumbling block comes later:
> 
>    ./lib/fileutils.rb:1278: [BUG] unexpected local variable
>    ruby 1.8.6 (2007-03-13) [powerpc-aix4.3.3.0]
> 
>    make: The signal code from the last command is 6.
> 
> I get the same result if I compile with CFLAGS=-g (rather than the
> default -O).  I also tried to compile 1.8.5.  it bombs with:
> 
>    ./lib/fileutils.rb:1574: [BUG] terminated node (0x28)
>    ruby 1.8.5 (2006-08-25) [powerpc-aix4.3.3.0]
> 
>    make: 1254-059 The signal code from the last command is 6.
> 
> here, the error with CFLAGS=-g is different:
> 
>    ./lib/fileutils.rb:85: NULL pointer given (ArgumentError)
>            from ./mkconfig.rb:10:in `require'
>            from ./mkconfig.rb:10
>    make: The error code from the last command is 1.
> 
> it seems to me it takes deeper insight in Ruby's workings than I
> currently have to debug this problem, but I'll be happy with any hints
> you can provide.

While we do have the comma problem (node.h, parse.y,
ext/syck/yamlbyte.h), we don't have your latter problem using pl36:
  $ gtar jxf ruby-1.8.6-p36.tar.bz2
  $ cd ruby-1.8.6-p36
  $ ./configure CC=xlc; gmake
  ...

However, if we:
  $ ./configure CC=xlc CFLAGS="-O"; gmake
  ...
  gmake[1]: Entering directory `/opt/build/ruby-1.8.6-p36/ext/racc/cparse'
  gmake[1]: *** No rule to make target `../../../.ext/powerpc-aix4.3.3.0/racc', needed by `install-so'.  Stop.
  gmake[1]: Leaving directory `/opt/build/ruby-1.8.6-p36/ext/racc/cparse'

-- 
albert chin (china @at@ thewrittenword .dot. com)