Re: [Gems-users] Error compiling Ruby


Date: Tue, 11 Mar 2008 08:38:39 -0600
From: Dan Gibson <degibson@xxxxxxxx>
Subject: Re: [Gems-users] Error compiling Ruby
You can fix the first error by removing the extra "Profiler::" from line 216 of Profiler.h. You can fix the second error by specifying the path to zlib in the linker's argument stream (I think -L is the option).

Regards,
Dan

Abdullah Kayi wrote:
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

_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/"; to your search.


--
http://www.cs.wisc.edu/~gibson [esc]:wq!

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