Thanks Dan for the quick response. I sticked to gcc 4.1.3 and removed
extra qualifiers from Profiler.h and accordingly I had to remove them
from Profiler.C and simics/commands.c and finally it passed that stage.
But I still have the same problem as I had with gcc 3.4.6.
This is the result from 'find' for zlib.
apokayi@klondike:~/gems-2.1/ruby/module$ sudo find / -name "libz.so*"
-print /usr/lib32/libz.so.1.2.3.3
/usr/lib32/googleearth/libz.so.1
/usr/lib32/libz.so.1
/usr/lib/libz.so.1.2.3.3
/usr/lib/libz.so.1
So I changed the $GEMS/ruby/module/Makefile as in order to add this
library:
ifeq ($(HOST_TYPE),amd64-linux)
MODULE_LDFLAGS += -m64
#MODULE_LDFLAGS += -Wl,-R/s/gcc-$(CC_VERSION)/lib64
MODULE_LDFLAGS += -Wl,-R/usr/local/lib
MODULE_LDFLAGS += -Wl,-R/usr/lib
LDFLAGS += -L/usr/lib
And I still have the same errors:
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::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::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::flush_buffer()':
/home/apokayi/gems-2.1/ruby/../common/gzstream/gzstream.C:107: 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
What am I still doing wrong here? Any comments ?
Thanks in advance,
Abdullah
On Tuesday 11 March 2008 10:38:39 Dan Gibson wrote:
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.
_______________________________________________
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.