# Ruby on AIX 5.3

**URL:** <https://www.ruby-forum.com/t/ruby-on-aix-5-3/49352>\
**Category:** Ruby\
**Created:** [December 2, 2005, 8:52pm UTC](https://www.ruby-forum.com/t/ruby-on-aix-5-3/49352 "2005-12-02T20:52:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tachoknight](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9e8a1a/32.png) [@tachoknight](https://www.ruby-forum.com/u/tachoknight)\
**Post date:** [December 2, 2005, 8:52pm UTC](https://www.ruby-forum.com/t/ruby-on-aix-5-3/49352/1 "2005-12-02T20:52:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tachoknight](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9e8a1a/32.png) [@tachoknight](https://www.ruby-forum.com/u/tachoknight)\
**Post date:** [December 3, 2005, 2:35am UTC](https://www.ruby-forum.com/t/ruby-on-aix-5-3/49352/2 "2005-12-03T02:35:00Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![tachoknight](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9e8a1a/32.png) [@tachoknight](https://www.ruby-forum.com/u/tachoknight)\
**Post date:** [December 5, 2005, 4:39pm UTC](https://www.ruby-forum.com/t/ruby-on-aix-5-3/49352/3 "2005-12-05T16:39:52Z")

</div>

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
