intel / numatop

NumaTOP is an observation tool for runtime memory locality characterization and analysis of processes and threads running on a NUMA system.
BSD 3-Clause "New" or "Revised" License
197 stars 47 forks source link

Release v2.4 - GCC 14.1.1 compile error: initialization of 'long unsigned int' from 'char *' makes integer from pointer without a cast [-Wint-conversion] #75

Closed UffeJakobsen closed 3 months ago

UffeJakobsen commented 3 months ago

Building release v2.4 om ArchLinux with GCC-14.1.1 raises the following errors - see below

PS: release v2.3 build fine

x86/skl.c:68:53: error: initialization of 'long unsigned int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   68 |         { PERF_TYPE_RAW, 0x012A, 0x53, 0x730000001, "off_core_response_0" },
      |                                                     ^~~~~~~~~~~~~~~~~~~~~
x86/skl.c:68:53: note: (near initialization for 's_emr_config[1].sample_period')
x86/skl.c:68:9: warning: missing initializer for field 'exclude_guest' of 'plat_event_config_t' {aka 'struct _plat_event_config'} [-Wmissing-field-initializers]
   68 |         { PERF_TYPE_RAW, 0x012A, 0x53, 0x730000001, "off_core_response_0" },
      |         ^
x86/../common/include/os/plat.h:57:14: note: 'exclude_guest' declared here
   57 |         bool exclude_guest;
      |              ^~~~~~~~~~~~~
x86/skl.c:69:70: error: initialization of 'long unsigned int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   69 |         { PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES, 0x53, 0, "cpu_clk_unhalted.ref" },
      |                                                                      ^~~~~~~~~~~~~~~~~~~~~~
x86/skl.c:69:70: note: (near initialization for 's_emr_config[2].sample_period')
x86/skl.c:69:9: warning: missing initializer for field 'exclude_guest' of 'plat_event_config_t' {aka 'struct _plat_event_config'} [-Wmissing-field-initializers]
   69 |         { PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES, 0x53, 0, "cpu_clk_unhalted.ref" },
      |         ^
x86/../common/include/os/plat.h:57:14: note: 'exclude_guest' declared here
   57 |         bool exclude_guest;
      |              ^~~~~~~~~~~~~
x86/skl.c:70:68: error: initialization of 'long unsigned int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   70 |         { PERF_TYPE_HARDWARE, PERF_COUNT_HW_INSTRUCTIONS, 0x53, 0, "instr_retired.any" },
      |                                                                    ^~~~~~~~~~~~~~~~~~~
x86/skl.c:70:68: note: (near initialization for 's_emr_config[3].sample_period')
x86/skl.c:70:9: warning: missing initializer for field 'exclude_guest' of 'plat_event_config_t' {aka 'struct _plat_event_config'} [-Wmissing-field-initializers]
   70 |         { PERF_TYPE_HARDWARE, PERF_COUNT_HW_INSTRUCTIONS, 0x53, 0, "instr_retired.any" },
      |         ^
x86/../common/include/os/plat.h:57:14: note: 'exclude_guest' declared here
   57 |         bool exclude_guest;
      |              ^~~~~~~~~~~~~
x86/skl.c:71:53: error: initialization of 'long unsigned int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   71 |         { PERF_TYPE_RAW, 0x012B, 0x53, 0x104000001, "off_core_response_1" }
      |                                                     ^~~~~~~~~~~~~~~~~~~~~
x86/skl.c:71:53: note: (near initialization for 's_emr_config[4].sample_period')
x86/skl.c:71:9: warning: missing initializer for field 'exclude_guest' of 'plat_event_config_t' {aka 'struct _plat_event_config'} [-Wmissing-field-initializers]
   71 |         { PERF_TYPE_RAW, 0x012B, 0x53, 0x104000001, "off_core_response_1" }
      |         ^
x86/../common/include/os/plat.h:57:14: note: 'exclude_guest' declared here
   57 |         bool exclude_guest;
      |              ^~~~~~~~~~~~~
ak-intel commented 3 months ago

Should be fixed now (tested with a gcc 15 snapshot)