Re: [Gems-users] Ruby Compilation Error


Date: Tue, 08 Apr 2008 17:46:11 -0500
From: Dan Gibson <degibson@xxxxxxxx>
Subject: Re: [Gems-users] Ruby Compilation Error
This looks like a problem with Simics's configuration on cygwin. Post an abridged version of this on the Simics forums at www.virtutech.com and see if there is any support for the cygwin platform.

Regards,
Dan

hb166307@xxxxxxxx wrote:
Sorry to be an annoyance, but that brought me to here:
-----------------------------------------------------------------------------
In file included from /cygdrive/c/Simics/src/include/simics/api.h:18,
                 from ../common/ioutil/attrparse.y:87:
/cygdrive/c/Simics/src/include/simics/module-host-config.h:139:2: warning: #warning fix module-host-config.h for this platform
In file included from /cygdrive/c/Simics/src/include/simics/api.h:19,
                 from ../common/ioutil/attrparse.y:87:
/cygdrive/c/Simics/src/include/simics/global.h:218:2: #error "Cannot recognize the operating system you are compiling for"
In file included from /cygdrive/c/Simics/src/include/simics/api.h:21,
                 from ../common/ioutil/attrparse.y:87:
/cygdrive/c/Simics/src/include/simics/core/types.h:182: error: conflicting declaration 'typedef int32 intptr_t' /usr/include/stdint.h:60: error: 'intptr_t' has a previous declaration as `typedef long int intptr_t' /cygdrive/c/Simics/src/include/simics/core/types.h:182: error: declaration of `typedef int32 intptr_t' /usr/include/stdint.h:60: error: conflicts with previous declaration `typedef long int intptr_t' /cygdrive/c/Simics/src/include/simics/core/types.h:182: error: declaration of `typedef int32 intptr_t' /usr/include/stdint.h:60: error: conflicts with previous declaration `typedef long int intptr_t' /cygdrive/c/Simics/src/include/simics/core/types.h:190: error: conflicting declaration 'typedef uint32 uintptr_t' /usr/include/stdint.h:62: error: 'uintptr_t' has a previous declaration as `typedef long unsigned int uintptr_t' /cygdrive/c/Simics/src/include/simics/core/types.h:190: error: declaration of `typedef uint32 uintptr_t' /usr/include/stdint.h:62: error: conflicts with previous declaration `typedef long unsigned int uintptr_t' /cygdrive/c/Simics/src/include/simics/core/types.h:190: error: declaration of `typedef uint32 uintptr_t' /usr/include/stdint.h:62: error: conflicts with previous declaration `typedef long unsigned int uintptr_t'
make[1]: *** [x86-linux/generated/MOSI_SMP_bcast/obj/attrparse.o] Error 1
make[1]: Leaving directory `/home/Administrator/GEMS/gems-2.1/ruby'
make: *** [all] Error 2

----------------------------------------------------------------------------
Quoting Dan Gibson <degibson@xxxxxxxx>:

Yes, try x86-linux. You should also set Makefile.common's use of calc_host to x86-linux hard-coded, in order to set up include directories 'correctly'.

Regards,
Dan

hb166307@xxxxxxxx wrote:
I have the version number in Makefile.simics_version set to 3.0
I ran $GEMS/scripts/calc_host.sh and got x-86-CYGWIN_NT-5.1 $SIMICS/configure --with-host=x-86-CYGWIN_NT-5.1 say not available
in Simics
Distibution, so do I use x-86-linux?


-----------------------------------------------------------------------------
Quoting Dan Gibson <degibson@xxxxxxxx>:

This usually means that your SIMICS_VERSION variable is
improperly
set in Makefile.simics_version, or you haven't run ../configure from Simics. In short -- Ruby cannot locate the Simics API headers.

Regards,
Dan

hb166307@xxxxxxxx wrote:
Hello all,
Has anyone run into an error similar to the one below:
I took a look at the makefile in ruby and found no api.h, but a simics_api_dummy.c. I did find a mf_api.h in the
\ruby\interfaces
directory
though, but I am stuck here. Thanks in advance!

----------------------------------------------------------------------------
make[1]: Leaving directory
`/home/Administrator/GEMS/gems-2.1/ruby'
make[1]: Entering directory
`/home/Administrator/GEMS/gems-2.1/ruby'
make[1]: Circular
x86-CYGWIN_NT-5.1/generated/MOSI_SMP_bcast/obj/init.o <-
defau
lt_param.h dependency dropped.
make[1]: *** No rule to make target `simics/api.h', needed by
`x86-CYGWIN_NT-
5.1
/generated/MOSI_SMP_bcast/obj/attrparse.o'.  Stop.
make[1]: Leaving directory
`/home/Administrator/GEMS/gems-2.1/ruby'
make: *** [all] Error 2
_______________________________________________
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!

_______________________________________________
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.
--
http://www.cs.wisc.edu/~gibson [esc]:wq!

_______________________________________________
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.


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

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