[Advcomparch] Πρόβλημα στη μεταγλώττιση του sniper

Dimitris Siakavaras jimsiak at cslab.ece.ntua.gr
Fri May 22 21:41:51 EEST 2020


Καλησπέρα,

Όπως απάντησα και σε προηγούμενο email συναδέλφου, τα συγκεκριμένα 
μηνύματα σφάλματος πιθανότατα οφείλονται σε λανθασμένο ορισμό της 
μεταβλητής περιβάλλοντος PIN_HOME.

Δ.

On 22/5/20 1:43 μ.μ., Γιάννης Παπαγεωργίου wrote:
> Εκτελώντας την εντολή make τυπώνονται τα παρακάτω: (δοκίμασα και με 
> gcc 6 και με gcc 4.8 και έψαξα στην παλία mailing list χωρίς αποτέλεσμα)
>
>
> (base) giannispapageorgiou at GiannisWorkStation:~/sniper-7.3$ make
> Building for x86 (intel64)
> /bin/sh: 1: [: Illegal number:
> [CXX   ] 
> common/performance_model/performance_models/micro_op/instruction_decoder.o
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:7:13: 
> error: operator '>=' has no left operand
>  #if PIN_REV >= 62732
>              ^~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc: 
> In static member function ‘static unsigned int 
> InstructionDecoder::getNumExecs(const xed_decoded_inst_t*, int, int)’:
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:42:8: 
> error: ‘xed_decoded_inst_get_category’ was not declared in this scope
>     if (xed_decoded_inst_get_category(ins) == XED_CATEGORY_DATAXFER || 
> xed_decoded_inst_get_category(ins) == XED_CATEGORY_CMOV
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:42:8: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>     if (xed_decoded_inst_get_category(ins) == XED_CATEGORY_DATAXFER || 
> xed_decoded_inst_get_category(ins) == XED_CATEGORY_CMOV
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>         xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:43:10: 
> error: ‘xed_decoded_inst_get_iclass’ was not declared in this scope
>        || xed_decoded_inst_get_iclass(ins) == XED_ICLASS_PUSH || 
> xed_decoded_inst_get_iclass(ins) == XED_ICLASS_POP)
>           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:43:10: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>        || xed_decoded_inst_get_iclass(ins) == XED_ICLASS_PUSH || 
> xed_decoded_inst_get_iclass(ins) == XED_ICLASS_POP)
>           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>           xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc: 
> In static member function ‘static const std::vector<const MicroOp*>* 
> InstructionDecoder::decode(IntPtr, const xed_decoded_inst_t*, 
> Instruction*)’:
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:104:9: 
> error: ‘xed_decoded_inst_get_attribute’ was not declared in this scope
>     if (!xed_decoded_inst_get_attribute(ins, XED_ATTRIBUTE_NOP))
>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:104:9: 
> note: suggested alternative: ‘xed_inst_get_attribute’
>     if (!xed_decoded_inst_get_attribute(ins, XED_ATTRIBUTE_NOP))
>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>          xed_inst_get_attribute
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:106:43: 
> error: ‘xed_decoded_inst_number_of_memory_operands’ was not declared 
> in this scope
>        for(uint32_t mem_idx = 0; mem_idx < 
> xed_decoded_inst_number_of_memory_operands(ins); ++mem_idx)
>  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:109:22: 
> error: ‘xed_decoded_inst_get_base_reg’ was not declared in this scope
>           regs.insert(xed_decoded_inst_get_base_reg(ins, mem_idx));
>                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:109:22: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>           regs.insert(xed_decoded_inst_get_base_reg(ins, mem_idx));
>                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                       xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:110:22: 
> error: ‘xed_decoded_inst_get_index_reg’ was not declared in this scope
>           regs.insert(xed_decoded_inst_get_index_reg(ins, mem_idx));
>                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:110:22: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>           regs.insert(xed_decoded_inst_get_index_reg(ins, mem_idx));
>                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                       xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:112:14: 
> error: ‘xed_decoded_inst_mem_read’ was not declared in this scope
>           if (xed_decoded_inst_mem_read(ins, mem_idx)) {
>               ^~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:112:14: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>           if (xed_decoded_inst_mem_read(ins, mem_idx)) {
>               ^~~~~~~~~~~~~~~~~~~~~~~~~
>               xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:114:39: 
> error: ‘xed_decoded_inst_get_memory_operand_length’ was not declared 
> in this scope
>  memop_load_size.push_back(xed_decoded_inst_get_memory_operand_length(ins, 
> mem_idx));
>  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:118:14: 
> error: ‘xed_decoded_inst_mem_written’ was not declared in this scope
>           if (xed_decoded_inst_mem_written(ins, mem_idx)) {
>               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:118:14: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>           if (xed_decoded_inst_mem_written(ins, mem_idx)) {
>               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>               xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:120:40: 
> error: ‘xed_decoded_inst_get_memory_operand_length’ was not declared 
> in this scope
>  memop_store_size.push_back(xed_decoded_inst_get_memory_operand_length(ins, 
> mem_idx));
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:129:38: 
> error: ‘xed_decoded_inst_operands_const’ was not declared in this scope
>     const xed_operand_values_t* ops = 
> xed_decoded_inst_operands_const(ins);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:129:38: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>     const xed_operand_values_t* ops = 
> xed_decoded_inst_operands_const(ins);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                                       xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:130:8: 
> error: ‘xed_operand_values_get_atomic’ was not declared in this scope
>     if (xed_operand_values_get_atomic(ops))
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:130:8: 
> note: suggested alternative: ‘xed_operand_values_t’
>     if (xed_operand_values_get_atomic(ops))
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>         xed_operand_values_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:133:29: 
> error: ‘xed_decoded_inst_inst’ was not declared in this scope
>     const xed_inst_t *inst = xed_decoded_inst_inst(ins);
>                              ^~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:133:29: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>     const xed_inst_t *inst = xed_decoded_inst_inst(ins);
>                              ^~~~~~~~~~~~~~~~~~~~~
>                              xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:146:31: 
> error: ‘xed_decoded_inst_get_reg’ was not declared in this scope
>           xed_reg_enum_t reg = xed_decoded_inst_get_reg(ins, name);
>                                ^~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:146:31: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>           xed_reg_enum_t reg = xed_decoded_inst_get_reg(ins, name);
>                                ^~~~~~~~~~~~~~~~~~~~~~~~
>                                xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:179:31: 
> error: ‘xed_decoded_inst_get_reg’ was not declared in this scope
>           xed_reg_enum_t reg = xed_decoded_inst_get_reg(ins, name);
>                                ^~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:179:31: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>           xed_reg_enum_t reg = xed_decoded_inst_get_reg(ins, name);
>                                ^~~~~~~~~~~~~~~~~~~~~~~~
>                                xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:190:55: 
> error: ‘xed_decoded_inst_get_operand_width’ was not declared in this scope
>        operand_size = std::max(operand_size, 
> (uint16_t)xed_decoded_inst_get_operand_width(ins));
>  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:190:55: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>        operand_size = std::max(operand_size, 
> (uint16_t)xed_decoded_inst_get_operand_width(ins));
>  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>  xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:197:11: 
> error: ‘xed_decoded_inst_get_iclass’ was not declared in this scope
>     switch(xed_decoded_inst_get_iclass(ins)) {
>            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:197:11: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>     switch(xed_decoded_inst_get_iclass(ins)) {
>            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>            xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:243:18: 
> error: ‘xed_decoded_inst_get_iclass’ was not declared in this scope
>                 , xed_decoded_inst_get_iclass(ins)
>                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:243:18: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>                 , xed_decoded_inst_get_iclass(ins)
>                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>                   xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:255:18: 
> error: ‘xed_decoded_inst_get_iclass’ was not declared in this scope
>                 , xed_decoded_inst_get_iclass(ins)
>                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:255:18: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>                 , xed_decoded_inst_get_iclass(ins)
>                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>                   xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:257:18: 
> error: ‘xed_decoded_inst_get_category’ was not declared in this scope
>                 , xed_decoded_inst_get_category(ins) == 
> XED_CATEGORY_COND_BR /* is conditional branch? */);
>                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:257:18: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>                 , xed_decoded_inst_get_category(ins) == 
> XED_CATEGORY_COND_BR /* is conditional branch? */);
>                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                   xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:265:18: 
> error: ‘xed_decoded_inst_get_iclass’ was not declared in this scope
>                 , xed_decoded_inst_get_iclass(ins)
>                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:265:18: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>                 , xed_decoded_inst_get_iclass(ins)
>                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>                   xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:297:14: 
> error: ‘xed_decoded_inst_get_iclass’ was not declared in this scope
>           if (xed_decoded_inst_get_iclass(ins) == XED_ICLASS_MFENCE
>               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:297:14: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>           if (xed_decoded_inst_get_iclass(ins) == XED_ICLASS_MFENCE
>               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>               xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:304:15: 
> error: ‘xed_decoded_inst_get_iclass’ was not declared in this scope
>           if ((xed_decoded_inst_get_iclass(ins) == XED_ICLASS_MOVHPD)
>                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:304:15: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>           if ((xed_decoded_inst_get_iclass(ins) == XED_ICLASS_MOVHPD)
>                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>                xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:347:44: 
> error: ‘xed_decoded_inst_get_iclass’ was not declared in this scope
>           if 
> (toupper(xed_iclass_enum_t2str(xed_decoded_inst_get_iclass(ins))[0]) 
> == 'F')
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:347:44: 
> note: suggested alternative: ‘xed_decoded_inst_t’
>           if 
> (toupper(xed_iclass_enum_t2str(xed_decoded_inst_get_iclass(ins))[0]) 
> == 'F')
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>                                             xed_decoded_inst_t
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc: 
> In static member function ‘static unsigned int 
> InstructionDecoder::getNumExecs(const xed_decoded_inst_t*, int, int)’:
> /home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.cc:84:1: 
> warning: control reaches end of non-void function [-Wreturn-type]
>  }
>  ^
> /home/giannispapageorgiou/sniper-7.3/common/Makefile.common:82: recipe 
> for target 
> '/home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.o' 
> failed
> make[1]: *** 
> [/home/giannispapageorgiou/sniper-7.3/common/performance_model/performance_models/micro_op/instruction_decoder.o] 
> Error 1
> Makefile:48: recipe for target 
> '/home/giannispapageorgiou/sniper-7.3/lib/libcarbon_sim.a' failed
> make: *** [/home/giannispapageorgiou/sniper-7.3/lib/libcarbon_sim.a] 
> Error 2
>
> _______________________________________________
> Advcomparch mailing list
> Advcomparch at lists.cslab.ece.ntua.gr
> http://lists.cslab.ece.ntua.gr/mailman/listinfo/advcomparch

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cslab.ece.ntua.gr/pipermail/advcomparch/attachments/20200522/e7057ef1/attachment-0001.htm>


More information about the Advcomparch mailing list