[Gems-users] Error compiling Ruby


Date: Tue, 11 Mar 2008 02:57:41 -0400
From: Abdullah Kayi <apokayi@xxxxxxx>
Subject: [Gems-users] Error compiling Ruby
Hi all,

After having some problems with checkpoint creation I moved to a different 
machine for clean installation of GEMS. I installed SIMICS 3.0.31 and tried 
to install gems 2.1. I have used gcc 4.1.3  and at the ruby compilation stage 
I got this error:

profiler/Profiler.h:216: error: extra qualification ‘Profiler::’ on 
member ‘profileTimerInterrupt’
make[1]: *** [amd64-linux/generated/MOSI_SMP_bcast/obj/Chip.o] Error 1
make[1]: Leaving directory `/home/apokayi/gems-2.1/ruby'
make: *** [all] Error 2

I checked the previous postings but I couldn't see any solutions to fix this 
other than trying gcc 3.4.x which I also tried and got stuck at the following 
error:

amd64-linux/generated/MOSI_SMP_bcast/obj/gzstream.o: In function 
`gzstreambuf::open(char const*, int)':
/home/apokayi/gems-2.1/ruby/../common/gzstream/gzstream.C:61: undefined 
reference to `gzopen'
amd64-linux/generated/MOSI_SMP_bcast/obj/gzstream.o: In function 
`gzstreambuf::close()':
/home/apokayi/gems-2.1/ruby/../common/gzstream/gzstream.C:72: undefined 
reference to `gzclose'
amd64-linux/generated/MOSI_SMP_bcast/obj/gzstream.o: In function 
`gzstreambuf::underflow()':
/home/apokayi/gems-2.1/ruby/../common/gzstream/gzstream.C:90: undefined 
reference to `gzread'
amd64-linux/generated/MOSI_SMP_bcast/obj/gzstream.o: In function 
`gzstreambuf::flush_buffer()':
/usr/include/c++/3.4/streambuf:499: undefined reference to `gzwrite'
collect2: ld returned 1 exit status
make[1]: *** [amd64-linux/generated/MOSI_SMP_bcast/bin/tester.exec] Error 1
make[1]: Leaving directory `/home/apokayi/gems-2.1/ruby'
make: *** [all] Error 2

I also checked the previous posts for this error, I saw a post mentioning libz 
should be installed which I had installed manually. So I am not sure what 
would be the cause of this error.

I would really appreciate help on any of the above errors.

Many thanks,

Abdullah

[← Prev in Thread] Current Thread [Next in Thread→]