In the future, it would be useful to include WHERE in the compilation
process you receive the errors.
Each GEMS module is a two-step compilation -- the first step uses g++ to
compile the module source to object files. The second uses gcc to
compile the simics module itself.
I would guess this is the same issue that has been previously discussed
on this list. The solution was:
Use g++ for Opal's regular compilation.
Use gcc for the Simics module compilation. (aka compile of opal.c,
compiler is defined in $GEMS/simics/compiler.mk for Simics 3.0.x)
Regards,
Dan
Datta, Kushal wrote:
Hi,
I am trying to compile opal and run it with Simics 3.0.21. Simics runs
fine. Ruby compiled successfully. But Opal is giving errors. I have
tried both gcc and g++ compilers (both versions 4.1.1 as well as
3.4.6). The errors are same. Pls help
I referred to the Gems User forums' answers. Still I can't just
compile. If I use g++ version 3.4.6 (or 4.1.1) the errors are coming as:
system/dx.i:3192: error: `getDestReg' was not declared in this scope
system/dx.i: In function `void dx_fcmpeq16()':
system/dx.i:3196: error: `getSourceReg' was not declared in this scope
system/dx.i:3196: error: `getDestReg' was not declared in this scope
system/dx.i: In function `void dx_fcmpgt32()':
system/dx.i:3200: error: `getSourceReg' was not declared in this scope
system/dx.i: In function `void dx_fcmpeq32()':
system/dx.i:3204: error: `getSourceReg' was not declared in this scope
system/dx.i: In function `void dx_bshuffle()':
system/dx.i:3209: error: `getSourceReg' was not declared in this scope
system/dx.i:3244: error: `getDestReg' was not declared in this scope
system/dx.i: In function `void dx_bmask()':
system/dx.i:3248: error: `getSourceReg' was not declared in this scope
system/dx.i:3252: error: `getDestReg' was not declared in this scope
system/dx.i: In function `void dx_idealwr()':
system/dx.i:3260: error: `getDestReg' was not declared in this scope
system/dx.i:3263: error: `getDestReg' was not declared in this scope
If I use gcc version 3.4.6 (or 4.1.1), the errors are coming as:
common/hfa.h:58: error: syntax error before "namespace"
In file included from sparc/ccops.c:66:
common/hfa.h:68:18: string: No such file or directory
common/hfa.h:69:15: map: No such file or directory
common/hfa.h:70:15: set: No such file or directory
common/hfa.h:71:16: list: No such file or directory
common/hfa.h:72:19: fstream: No such file or directory
common/hfa.h:73:20: iostream: No such file or directory
In file included from sparc/ccops.c:66:
common/hfa.h:95: error: syntax error before "dynamic_inst_t"
common/hfa.h:96: error: syntax error before "memory_inst_t"
common/hfa.h:97: error: syntax error before "control_inst_t"
common/hfa.h:98: error: syntax error before "load_inst_t"
common/hfa.h:99: error: syntax error before "store_inst_t"
common/hfa.h:100: error: syntax error before "abstract_pc_t"
common/hfa.h:101: error: syntax error before "static_inst_t"
common/hfa.h:103: error: syntax error before "abstract_rf_t"
common/hfa.h:104: error: syntax error before "arf_int_t"
common/hfa.h:105: error: syntax error before "arf_int_global_t"
common/hfa.h:106: error: syntax error before "arf_single_t"
common/hfa.h:107: error: syntax error before "arf_double_t"
common/hfa.h:108: error: syntax error before "arf_cc_t"
common/hfa.h:109: error: syntax error before "arf_control_t"
common/hfa.h:111: error: syntax error before "flat_rf_t"
common/hfa.h:112: error: syntax error before "flat_int_t"
common/hfa.h:113: error: syntax error before "flat_int_global_t"
------------------------------------------------------------------------
_______________________________________________
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!
|