Ruby on AIX 5.3

R

Ron

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
 
N

nobuyoshi nakada

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?
 
R

Ron

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top