Forum: Ruby Ruby on AIX 5.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.
C0196d32c5877957590e3b9f6e74df09?d=identicon&s=25 tachoknight (Guest)
on 2005-12-02 20:52
(Received via mailing list)
Hi all-

I was wondering if anyone has gotten Ruby 1.8.3 to build/run on AIX.
I'm using GCC (xlC is not available) and all seems to be okay until:

gcc -g -O2   -I. -I.  -c struct.c
gcc -g -O2   -I. -I.  -c time.c
gcc -g -O2   -I. -I.  -c util.c
gcc -g -O2   -I. -I.  -c variable.c
gcc -g -O2   -I. -I.  -c version.c
gcc -g -O2   -I. -I.  -c ./missing/flock.c
gcc -g -O2   -I. -I.  -c dmyext.c
ar rcu libruby-static.a array.o bignum.o class.o compar.o dir.o dln.o
enum.o error.o eval.o file.o gc.o hash.o inits.o io.o marshal.o math.o
numeric.o object.o pack.o parse.o process.o prec.o random.o range.o
re.o regex.o ruby.o signal.o sprintf.o st.o string.o struct.o time.o
util.o variable.o version.o flock.o  dmyext.o
gcc -g -O2   -I. -I.  -c main.c
gcc main.o  libruby-static.a -ldl -lcrypt -lm   -o miniruby -g -O2
make: *** [.rbconfig.time] Segmentation fault (core dumped)

Thanks for any info,

Ron
04a56914cc09f0858d3fca2bf4cbde34?d=identicon&s=25 nobuyoshi.nakada (Guest)
on 2005-12-03 02:35
(Received via mailing list)
Hi,

At Sat, 3 Dec 2005 04:52:31 +0900,
Ron wrote in [ruby-talk:168531]:
> I was wondering if anyone has gotten Ruby 1.8.3 to build/run on AIX.
> I'm using GCC (xlC is not available) and all seems to be okay until:

What happens with 1.8.4 preview2?
ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.4-preview2.tar.gz

> gcc main.o  libruby-static.a -ldl -lcrypt -lm   -o miniruby -g -O2
> make: *** [.rbconfig.time] Segmentation fault (core dumped)

Can't you show the backtrace?
C0196d32c5877957590e3b9f6e74df09?d=identicon&s=25 tachoknight (Guest)
on 2005-12-05 16:39
(Received via mailing list)
Same problem with 1.8.4:

gcc -g -O2  -DRUBY_EXPORT  -I. -I.  -c ruby.c
gcc -g -O2  -DRUBY_EXPORT  -I. -I.  -c signal.c
gcc -g -O2  -DRUBY_EXPORT  -I. -I.  -c sprintf.c
gcc -g -O2  -DRUBY_EXPORT  -I. -I.  -c st.c
gcc -g -O2  -DRUBY_EXPORT  -I. -I.  -c string.c
string.c: In function 'rb_str_index_m':
string.c:1133: warning: pointer targets in initialization differ in
signedness
string.c: In function 'rb_str_rindex_m':
string.c:1255: warning: pointer targets in initialization differ in
signedness
string.c:1256: warning: pointer targets in initialization differ in
signedness
gcc -g -O2  -DRUBY_EXPORT  -I. -I.  -c struct.c
gcc -g -O2  -DRUBY_EXPORT  -I. -I.  -c time.c
gcc -g -O2  -DRUBY_EXPORT  -I. -I.  -c util.c
gcc -g -O2  -DRUBY_EXPORT  -I. -I.  -c variable.c
gcc -g -O2  -DRUBY_EXPORT  -I. -I.  -c version.c
gcc -g -O2  -DRUBY_EXPORT  -I. -I.  -c ./missing/flock.c
gcc -g -O2  -DRUBY_EXPORT  -I. -I.  -c dmyext.c
ar rcu libruby-static.a array.o bignum.o class.o compar.o dir.o dln.o
enum.o error.o eval.o file.o gc.o hash.o inits.o io.o marshal.o math.o
numeric.o object.o pack.o parse.o process.o prec.o random.o range.o
re.o regex.o ruby.o signal.o sprintf.o st.o string.o struct.o time.o
util.o variable.o version.o flock.o  dmyext.o
gcc -g -O2  -DRUBY_EXPORT  -I. -I.  -c main.c
gcc main.o  libruby-static.a -ldl -lcrypt -lm   -o miniruby -g -O2
-DRUBY_EXPORT
make: *** [.rbconfig.time] Segmentation fault (core dumped)

Here's the gcc info

Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../gcc-4.0.0/configure --disable-nls
Thread model: aix
gcc version 4.0.0


I am very willing to help debug this problem. I will work on it myself
but i don't want to duplicate anyone's effort or work on what is really
an operator (i.e. me) problem.

Thanks,

Ron
This topic is locked and can not be replied to.