From: Daniel Berger Date: 2003-07-10T01:39:22+09:00 Subject: build problems with 1.8, solaris and sparc options Hi all, Solaris 9 gcc 3.2.2 Ruby 1.8 (2003-07-07) ld: Software Generation Utilities - Solaris Link Editors: 5.9-1.343 >uname -a SunOS sp5wd-b1 5.9 Generic sun4u sparc SUNW,Sun-Blade-100 I decided to tinker with a couple of gcc options when building Ruby 1.8. I used this as my $CFLAGS: -g -O2 -m64 -mcpu=ultrasparc Things seemed to go ok during make until it got to bigdecimal.c ... compiling bigdecimal gcc -fPIC -g -O2 -m64 -mcpu=ultrasparc -I. -I/usr/local/src/ruby -I/usr/local/src/ruby -I/usr/local/src/ruby/ext/bigdecimal -c bigdecimal.c gcc -Wl,-G -L"/usr/local/src/ruby" -L"/opt/lib" -o bigdecimal.so bigdecimal.o -ldl -lcrypt -lm -lc ld: fatal: file bigdecimal.o: wrong ELF class: ELFCLASS64 ld: fatal: File processing errors. No output written to bigdecimal.so collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `bigdecimal.so' Current working directory /usr/local/src/ruby/ext/bigdecimal *** Error code 1 make: Fatal error: Command failed for target `all' Any ideas? Regards, Dan