I need some pointers on compiling on a IA64 system
(a 512-processor SGI Altix).
For the 03-18-2004 stable snapshot, I am getting:
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 dmyext.o
gcc -g -O2 -I. -I. -c main.c
gcc -g -O2 -rdynamic main.o dmyext.o libruby-static.a -ldl -lcrypt -lm -o miniruby
./lib/ftools.rb:204: [BUG] Segmentation fault
ruby 1.8.1 (2004-03-15) [ia64-linux]
make: *** [rbconfig.rb] Aborted (core dumped)
Where lib/ftools.rb has:
198 def makedirs(*dirs)
199 verbose = if dirs[-1].is_a? String then false else dirs.pop end
200 # mode = if dirs[-1].is_a? Fixnum then dirs.pop else 0755 end
201 mode = 0755
202 for dir in dirs
203 parent = dirname(dir)
204 next if parent == dir or FileTest.directory? dir
205 makedirs parent unless FileTest.directory? parent
206 $deferr.print "mkdir ", dir, "\n" if verbose
The machine is using a special SGI Linux kernel:
% uname -r
2.4.21-sgi240rp04021313_10046
and apparently a 2.96 glibc:
% gcc -v
Reading specs from /usr/lib/gcc-lib/ia64-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-118.7.2)
Thanks,
···
–
Bil Kleb, Hampton, Virginia