Forum: Ruby Problems installing Ruby on AIX 4.3.3

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
396ef5c36269fe5908eef6b45e255375?d=identicon&s=25 Kjetil Torgrim Homme (Guest)
on 2007-07-30 17:57
(Received via mailing list)
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.
8e62772110f2b5206411292d92389f0a?d=identicon&s=25 Albert Chin (Guest)
on 2007-08-13 02:25
(Received via mailing list)
Kjetil Torgrim Homme <kjetilho@kaksi.ifi.uio.no> wrote:
> default -O).  I also tried to compile 1.8.5.  it bombs with:
>            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'
This topic is locked and can not be replied to.