Project

General

Profile

Bug #2003

various void* to char* errors with --enable-tracing-commthread

Added by Jim Phillips 9 months ago. Updated 9 months ago.

Status:
Merged
Priority:
Urgent
Assignee:
Category:
Machine Layers
Target version:
Start date:
10/19/2018
Due date:
% Done:

0%


Description

machine.C: In function 'void PumpLocalTransactions(gni_cq_handle_t, LrtsNodeLock)':
conv-trace.h:92:45: error: invalid conversion from 'void*' to 'char*' [-fpermissive]
                     if (traceBeginCommOp(msg)) {   \
                                             ^ 
machine.C:3191:21: note: in expansion of macro 'TRACE_COMM_CONTROL_CREATION'
                     TRACE_COMM_CONTROL_CREATION((double)(tmp_pd->sync_flag_addr/1000000.0), (double)((tmp_pd->sync_flag_addr+1)/1000000.0), (double)((tmp_pd->sync_flag_addr+1)/1000000.0), (void*)tmp_pd->local_addr);
                     ^
conv-trace.h:50:6: note: initializing argument 1 of 'int traceBeginCommOp(char*)'
 int  traceBeginCommOp(char *msg);
      ^
conv-trace.h:94:43: error: invalid conversion from 'void*' to 'char*' [-fpermissive]
                       traceSendMsgComm(msg);   \
                                           ^
machine.C:3191:21: note: in expansion of macro 'TRACE_COMM_CONTROL_CREATION'
                     TRACE_COMM_CONTROL_CREATION((double)(tmp_pd->sync_flag_addr/1000000.0), (double)((tmp_pd->sync_flag_addr+1)/1000000.0), (double)((tmp_pd->sync_flag_addr+1)/1000000.0), (void*)tmp_pd->local_addr);
                     ^
conv-trace.h:52:6: note: initializing argument 1 of 'void traceSendMsgComm(char*)'
 void traceSendMsgComm(char *msg);
      ^
conv-trace.h:96:41: error: invalid conversion from 'void*' to 'char*' [-fpermissive]
                       traceEndCommOp(msg);    \
                                         ^
machine.C(3191): error: argument of type "void *" is incompatible with parameter of type "char *" 
                      TRACE_COMM_CONTROL_CREATION((double)(tmp_pd->sync_flag_addr/1000000.0), (double)((tmp_pd->sync_flag_addr+1)/1000000.0), (double)((tmp_pd->sync_flag_addr+1)/1000000.0), (void*)tmp_pd->local_addr);
                      ^

machine.C(3191): error: argument of type "void *" is incompatible with parameter of type "char *" 
                      TRACE_COMM_CONTROL_CREATION((double)(tmp_pd->sync_flag_addr/1000000.0), (double)((tmp_pd->sync_flag_addr+1)/1000000.0), (double)((tmp_pd->sync_flag_addr+1)/1000000.0), (void*)tmp_pd->local_addr);
                      ^

machine.C(3191): error: argument of type "void *" is incompatible with parameter of type "char *" 
                      TRACE_COMM_CONTROL_CREATION((double)(tmp_pd->sync_flag_addr/1000000.0), (double)((tmp_pd->sync_flag_addr+1)/1000000.0), (double)((tmp_pd->sync_flag_addr+1)/1000000.0), (void*)tmp_pd->local_addr);
                      ^

machine.C(3192): error: argument of type "void *" is incompatible with parameter of type "char *" 
                      TRACE_COMM_CONTROL_CREATION((double)(tmp_pd->sync_flag_value/1000000.0), (double)((tmp_pd->sync_flag_value+1)/1000000.0), (double)((tmp_pd->sync_flag_value+1)/1000000.0), (void*)tmp_pd->local_addr); 
                      ^

History

#1 Updated by Jim Phillips 9 months ago

This appears to be limited to the gni layers.

#2 Updated by Sam White 9 months ago

  • Assignee set to Ronak Buch

#3 Updated by Jim Phillips 9 months ago

This appears to be a result of the move from C to C++ machine.c to machine.C).

#4 Updated by Ronak Buch 9 months ago

  • Status changed from New to In Progress

#5 Updated by Ronak Buch 9 months ago

  • Status changed from In Progress to Implemented

#6 Updated by Sam White 9 months ago

  • Status changed from Implemented to Merged

Also available in: Atom PDF