From: sys_stv@intel.com
To: test-report@dpdk.org
Subject: [dpdk-test-report] |FAILURE| pw(94805) sid(17481) [v5, 2/2] test/power: round cpuinfo cur freq only when using CPPC cpufreq
Date: 24 Jun 2021 19:16:54 -0700 [thread overview]
Message-ID: <f381f8$ehct84@orsmga001-auth.jf.intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 92481 bytes --]
Test-Label: Intel-compilation
Test-Status: FAILURE
http://dpdk.org/patch/94805
_Compilation issues_
Submitter: Richael Zhuang <richael.zhuang@arm.com>
Date: 2021-06-25 02:02:06
Reply_mail: 20210625020206.42284-3-richael.zhuang@arm.com
DPDK git baseline: Repo:dpdk, CommitID: 80731e4b5b44036d05ae9b36432b6f2fd9f49d3b
Meson Build Summary: 22 Builds Done, 5 Successful, 17 Failures, 0 Blocked
+------------------+------------+--------------+------------+------------+-----------+----------+
| os | gcc-static | clang-static | icc-static | gcc-shared | gcc-debug | document |
+------------------+------------+--------------+------------+------------+-----------+----------+
| UB2004-64 | fail | fail | fail | | | fail |
| RHEL83-64 | fail | | | | | |
| FC34-64 | fail | fail | | | | |
| CentOsStream8-64 | fail | | | | | |
| UB2104-64 | fail | | | | | |
| WIN10-64 | | pass | | | | |
| UB2004-32 | fail | | | | | |
| CENTOS83-64 | fail | fail | fail | fail | fail | |
| FreeBSD1201-64 | pass | pass | | pass | pass | |
| SUSE15-64 | fail | fail | | | | |
+------------------+------------+--------------+------------+------------+-----------+----------+
Test environment and configuration as below:
OS: UB2004-64
Kernel Version: 5.8.0-48-generic
GCC Version: gcc (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0
Clang Version: 10.0.0-4ubuntu1
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-icc
x86_64-native-linuxapp-doc
OS: RHEL83-64
Kernel Version: 4.18.0-240.el8.x86_64
GCC Version: gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5)
Clang Version: 10.0.1 (Red Hat 10.0.1-1.module+el8.3.0+7459+90c24896)
x86_64-native-linuxapp-gcc
OS: FC34-64
Kernel Version: 5.11.15-300.fc34.x86_64
GCC Version: gcc (GCC) 11.0.1 20210324 (Red Hat 11.0.1-0)
Clang Version: 12.0.0 (Fedora 12.0.0-0.3.rc1.fc34)
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-clang
OS: CentOsStream8-64
Kernel Version: 4.18.0-257.el8.x86_64
GCC Version: gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)
Clang Version: 11.0.0 (Red Hat 11.0.0-0.2.rc2.module_el8.4.0+533+50191577)
x86_64-native-linuxapp-gcc
OS: UB2104-64
Kernel Version: 5.11.0-16-generic
GCC Version: gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0
Clang Version: 12.0.0-1ubuntu1
x86_64-native-linuxapp-gcc
OS: WIN10-64
Kernel Version: N/A
GCC Version: N/A
Clang Version: Clang 8.0.0
x86_64-windows-clang
OS: UB2004-32
Kernel Version: 5.8.0-48-generic
GCC Version: gcc (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0
Clang Version: 10.0.0-4ubuntu1
i686-native-linuxapp-gcc
OS: CENTOS83-64
Kernel Version: 4.18.0-240.1.1.el8_3.x86_64
GCC Version: gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5)
Clang Version: 10.0.1 (Red Hat 10.0.1-1.module_el8.3.0+467+cb298d5b)
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-icc
x86_64-native-linuxapp-gcc+shared
x86_64-native-linuxapp-gcc+debug
OS: FreeBSD1201-64
Kernel Version: 12.1-RELEASE
GCC Version: gcc (FreeBSD Ports Collection) 9.2.0
Clang Version: 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1)
x86_64-native-bsdapp-gcc
x86_64-native-bsdapp-clang
x86_64-native-bsdapp-gcc+shared
x86_64-native-bsdapp-gcc+debug
OS: SUSE15-64
Kernel Version: 5.3.18-lp152.57-default
GCC Version: gcc (SUSE Linux) 7.5.0
Clang Version: 9.0.1
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc
*Build Failed #1:
OS: CENTOS83-64
Target: x86_64-native-linuxapp-gcc
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
gcc -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c: In function ‘set_freq_internal’:
../lib/power/power_cppc_cpufreq.c:83:2: error: implicit declaration of function ‘POWER_DEBUG_TRACE’ [-Werror=implicit-function-declaration]
POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:83:2: error: nested extern declaration of ‘POWER_DEBUG_TRACE’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_set_governor_userspace’:
../lib/power/power_cppc_cpufreq.c:109:9: error: implicit declaration of function ‘power_set_governor’; did you mean ‘timer_getoverrun’? [-Werror=implicit-function-declaration]
return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
^~~~~~~~~~~~~~~~~~
timer_getoverrun
../lib/power/power_cppc_cpufreq.c:109:9: error: nested extern declaration of ‘power_set_governor’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_check_turbo’:
../lib/power/power_cppc_cpufreq.c:120:2: error: implicit declaration of function ‘open_core_sysfs_file’; did you mean ‘rte_lcore_has_role’? [-Werror=implicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
^~~~~~~~~~~~~~~~~~~~
rte_lcore_has_role
../lib/power/power_cppc_cpufreq.c:120:2: error: nested extern declaration of ‘open_core_sysfs_file’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c:144:8: error: implicit declaration of function ‘read_core_sysfs_u32’ [-Werror=implicit-function-declaration]
ret = read_core_sysfs_u32(f_max, &highest_perf);
^~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:144:8: error: nested extern declaration of ‘read_core_sysfs_u32’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_init_for_setting_freq’:
../lib/power/power_cppc_cpufreq.c:292:8: error: implicit declaration of function ‘read_core_sysfs_s’ [-Werror=implicit-function-declaration]
ret = read_core_sysfs_s(f, buf, sizeof(buf));
^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:292:8: error: nested extern declaration of ‘read_core_sysfs_s’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
[335/2751] Generating rte_reorder_def with a custom command
[336/2751] Generating rte_reorder_mingw with a custom command
[337/2751] Compiling C object lib/librte_member.a.p/member_rte_member_ht.c.o
[338/2751] Generating symbol file lib/librte_kni.so.21.3.p/librte_kni.so.21.3.symbols
[339/2751] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[340/2751] Compiling C object lib/librte_regexdev.a.p/regexdev_rte_regexdev.c.o
[341/2751] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
[342/2751] Compiling C object lib/librte_rib.a.p/rib_rte_rib.c.o
[343/2751] Generating symbol file lib/librte_lpm.so.21.3.p/librte_lpm.so.21.3.symbols
[344/2751] Compiling C object lib/librte_reorder.a.p/reorder_rte_reorder.c.o
[345/2751] Compiling C object lib/librte_rib.a.p/rib_rte_rib6.c.o
ninja: build stopped
*Build Failed #2:
OS: CENTOS83-64
Target: x86_64-native-linuxapp-clang
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
clang -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c:83:2: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
^
../lib/power/power_cppc_cpufreq.c:109:9: error: implicit declaration of function 'power_set_governor' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
^
../lib/power/power_cppc_cpufreq.c:120:2: error: implicit declaration of function 'open_core_sysfs_file' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
^
../lib/power/power_cppc_cpufreq.c:144:8: error: implicit declaration of function 'read_core_sysfs_u32' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = read_core_sysfs_u32(f_max, &highest_perf);
^
../lib/power/power_cppc_cpufreq.c:173:3: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("Lcore %u can do Turbo Boost! highest perf %u, "
^
../lib/power/power_cppc_cpufreq.c:179:3: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("Lcore %u Turbo not available! highest perf %u, "
^
../lib/power/power_cppc_cpufreq.c:130:6: error: variable 'f_cmax' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_nom == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:189:6: note: uninitialized use occurs here
if (f_cmax != NULL)
^~~~~~
../lib/power/power_cppc_cpufreq.c:130:2: note: remove the 'if' if its condition is always false
if (f_nom == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:122:6: error: variable 'f_cmax' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_max == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:189:6: note: uninitialized use occurs here
if (f_cmax != NULL)
^~~~~~
../lib/power/power_cppc_cpufreq.c:122:2: note: remove the 'if' if its condition is always false
if (f_max == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:116:30: note: initialize the variable 'f_cmax' to silence this warning
FILE *f_nom, *f_max, *f_cmax;
^
= NULL
../lib/power/power_cppc_cpufreq.c:122:6: error: variable 'f_nom' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_max == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:187:6: note: uninitialized use occurs here
if (f_nom != NULL)
^~~~~
../lib/power/power_cppc_cpufreq.c:122:2: note: remove the 'if' if its condition is always false
if (f_max == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:116:13: note: initialize the variable 'f_nom' to silence this warning
FILE *f_nom, *f_max, *f_cmax;
^
= NULL
../lib/power/power_cppc_cpufreq.c:207:2: error: implicit declaration of function 'open_core_sysfs_file' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_SCALING_MAX_FREQ, pi->lcore_id, "r",
^
../lib/power/power_cppc_cpufreq.c:223:8: error: implicit declaration of function 'read_core_sysfs_u32' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = read_core_sysfs_u32(f_max, &scaling_max_freq);
^
../lib/power/power_cppc_cpufreq.c:261:2: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("%d frequency(s) of lcore %u are available\n",
^
../lib/power/power_cppc_cpufreq.c:209:6: error: variable 'f_min' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_max == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:265:6: note: uninitialized use occurs here
if (f_min != NULL)
^~~~~
../lib/power/power_cppc_cpufreq.c:209:2: note: remove the 'if' if its condition is always false
if (f_max == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:202:13: note: initialize the variable 'f_min' to silence this warning
FILE *f_min, *f_max;
^
= NULL
../lib/power/power_cppc_cpufreq.c:284:2: error: implicit declaration of function 'open_core_sysfs_file' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_SETSPEED, pi->lcore_id, "rw+",
^
../lib/power/power_cppc_cpufreq.c:292:8: error: implicit declaration of function 'read_core_sysfs_s' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = read_core_sysfs_s(f, buf, sizeof(buf));
^
../lib/power/power_cppc_cpufreq.c:407:9: error: implicit declaration of function 'power_set_governor' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return power_set_governor(pi->lcore_id, pi->governor_ori, NULL, 0);
^
16 errors generated.
[345/2754] Compiling C object lib/librte_power.a.p/power_power_pstate_cpufreq.c.o
[346/2754] Compiling C object lib/librte_sched.a.p/sched_rte_red.c.o
[347/2754] Compiling C object lib/librte_regexdev.a.p/regexdev_rte_regexdev.c.o
[348/2754] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[349/2754] Compiling C object lib/librte_rib.a.p/rib_rte_rib.c.o
[350/2754] Compiling C object lib/librte_reorder.a.p/reorder_rte_reorder.c.o
[351/2754] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
[352/2754] Compiling C object lib/librte_rib.a.p/rib_rte_rib6.c.o
[353/2754] Compiling C object lib/librte_sched.a.p/sched_rte_sched.c.o
ninja: build stopped
*Build Failed #3:
OS: CENTOS83-64
Target: x86_64-native-linuxapp-icc
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
icc -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -pipe -D_FILE_OFFSET_BITS=64 -Wall -w3 -diag-disable:remark -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -diag-disable=181 -diag-disable=188 -diag-disable=2203 -diag-disable=2279 -diag-disable=2557 -diag-disable=3179 -diag-disable=3656 -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c(83): error #266: function "POWER_DEBUG_TRACE" declared implicitly
POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
^
../lib/power/power_cppc_cpufreq.c(109): error #266: function "power_set_governor" declared implicitly
return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
^
../lib/power/power_cppc_cpufreq.c(120): error #266: function "open_core_sysfs_file" declared implicitly
open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
^
../lib/power/power_cppc_cpufreq.c(144): error #266: function "read_core_sysfs_u32" declared implicitly
ret = read_core_sysfs_u32(f_max, &highest_perf);
^
../lib/power/power_cppc_cpufreq.c(173): error #266: function "POWER_DEBUG_TRACE" declared implicitly
POWER_DEBUG_TRACE("Lcore %u can do Turbo Boost! highest perf %u, "
^
../lib/power/power_cppc_cpufreq.c(179): error #266: function "POWER_DEBUG_TRACE" declared implicitly
POWER_DEBUG_TRACE("Lcore %u Turbo not available! highest perf %u, "
^
../lib/power/power_cppc_cpufreq.c(207): error #266: function "open_core_sysfs_file" declared implicitly
open_core_sysfs_file(POWER_SYSFILE_SCALING_MAX_FREQ, pi->lcore_id, "r",
^
../lib/power/power_cppc_cpufreq.c(223): error #266: function "read_core_sysfs_u32" declared implicitly
ret = read_core_sysfs_u32(f_max, &scaling_max_freq);
^
../lib/power/power_cppc_cpufreq.c(261): error #266: function "POWER_DEBUG_TRACE" declared implicitly
POWER_DEBUG_TRACE("%d frequency(s) of lcore %u are available\n",
^
../lib/power/power_cppc_cpufreq.c(284): error #266: function "open_core_sysfs_file" declared implicitly
open_core_sysfs_file(POWER_SYSFILE_SETSPEED, pi->lcore_id, "rw+",
^
../lib/power/power_cppc_cpufreq.c(292): error #266: function "read_core_sysfs_s" declared implicitly
ret = read_core_sysfs_s(f, buf, sizeof(buf));
^
../lib/power/power_cppc_cpufreq.c(407): error #266: function "power_set_governor" declared implicitly
return power_set_governor(pi->lcore_id, pi->governor_ori, NULL, 0);
^
compilation aborted for ../lib/power/power_cppc_cpufreq.c (code 2)
[317/2751] Compiling C object lib/librte_eventdev.a.p/eventdev_rte_event_eth_rx_adapter.c.o
[318/2751] Linking target lib/librte_member.so.21.3
[319/2751] Compiling C object lib/librte_kni.a.p/kni_rte_kni.c.o
[320/2751] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[321/2751] Generating symbol file lib/librte_lpm.so.21.3.p/librte_lpm.so.21.3.symbols
[322/2751] Compiling C object lib/librte_regexdev.a.p/regexdev_rte_regexdev.c.o
[323/2751] Compiling C object lib/librte_rib.a.p/rib_rte_rib.c.o
[324/2751] Compiling C object lib/librte_rib.a.p/rib_rte_rib6.c.o
[325/2751] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
[326/2751] Compiling C object lib/librte_reorder.a.p/reorder_rte_reorder.c.o
[327/2751] Compiling C object lib/librte_ethdev.a.p/ethdev_rte_flow.c.o
ninja: build stopped
*Build Failed #4:
OS: CENTOS83-64
Target: x86_64-native-linuxapp-gcc+shared
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
gcc -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c: In function ‘set_freq_internal’:
../lib/power/power_cppc_cpufreq.c:83:2: error: implicit declaration of function ‘POWER_DEBUG_TRACE’ [-Werror=implicit-function-declaration]
POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:83:2: error: nested extern declaration of ‘POWER_DEBUG_TRACE’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_set_governor_userspace’:
../lib/power/power_cppc_cpufreq.c:109:9: error: implicit declaration of function ‘power_set_governor’; did you mean ‘timer_getoverrun’? [-Werror=implicit-function-declaration]
return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
^~~~~~~~~~~~~~~~~~
timer_getoverrun
../lib/power/power_cppc_cpufreq.c:109:9: error: nested extern declaration of ‘power_set_governor’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_check_turbo’:
../lib/power/power_cppc_cpufreq.c:120:2: error: implicit declaration of function ‘open_core_sysfs_file’; did you mean ‘rte_lcore_has_role’? [-Werror=implicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
^~~~~~~~~~~~~~~~~~~~
rte_lcore_has_role
../lib/power/power_cppc_cpufreq.c:120:2: error: nested extern declaration of ‘open_core_sysfs_file’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c:144:8: error: implicit declaration of function ‘read_core_sysfs_u32’ [-Werror=implicit-function-declaration]
ret = read_core_sysfs_u32(f_max, &highest_perf);
^~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:144:8: error: nested extern declaration of ‘read_core_sysfs_u32’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_init_for_setting_freq’:
../lib/power/power_cppc_cpufreq.c:292:8: error: implicit declaration of function ‘read_core_sysfs_s’ [-Werror=implicit-function-declaration]
ret = read_core_sysfs_s(f, buf, sizeof(buf));
^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:292:8: error: nested extern declaration of ‘read_core_sysfs_s’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
[349/2586] Compiling C object lib/librte_sched.a.p/sched_rte_approx.c.o
[350/2586] Compiling C object lib/librte_sched.a.p/sched_rte_red.c.o
[351/2586] Generating symbol file lib/librte_lpm.so.21.3.p/librte_lpm.so.21.3.symbols
[352/2586] Compiling C object lib/librte_member.a.p/member_rte_member_ht.c.o
[353/2586] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[354/2586] Compiling C object lib/librte_regexdev.a.p/regexdev_rte_regexdev.c.o
[355/2586] Compiling C object lib/librte_rib.a.p/rib_rte_rib.c.o
[356/2586] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
[357/2586] Compiling C object lib/librte_reorder.a.p/reorder_rte_reorder.c.o
[358/2586] Compiling C object lib/librte_rib.a.p/rib_rte_rib6.c.o
[359/2586] Compiling C object lib/librte_sched.a.p/sched_rte_sched.c.o
ninja: build stopped
*Build Failed #5:
OS: CENTOS83-64
Target: x86_64-native-linuxapp-gcc+debug
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
gcc -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O2 -g -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c: In function ‘set_freq_internal’:
../lib/power/power_cppc_cpufreq.c:83:2: error: implicit declaration of function ‘POWER_DEBUG_TRACE’ [-Werror=implicit-function-declaration]
POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:83:2: error: nested extern declaration of ‘POWER_DEBUG_TRACE’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_set_governor_userspace’:
../lib/power/power_cppc_cpufreq.c:109:9: error: implicit declaration of function ‘power_set_governor’; did you mean ‘timer_getoverrun’? [-Werror=implicit-function-declaration]
return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
^~~~~~~~~~~~~~~~~~
timer_getoverrun
../lib/power/power_cppc_cpufreq.c:109:9: error: nested extern declaration of ‘power_set_governor’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_check_turbo’:
../lib/power/power_cppc_cpufreq.c:120:2: error: implicit declaration of function ‘open_core_sysfs_file’; did you mean ‘rte_lcore_has_role’? [-Werror=implicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
^~~~~~~~~~~~~~~~~~~~
rte_lcore_has_role
../lib/power/power_cppc_cpufreq.c:120:2: error: nested extern declaration of ‘open_core_sysfs_file’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c:144:8: error: implicit declaration of function ‘read_core_sysfs_u32’ [-Werror=implicit-function-declaration]
ret = read_core_sysfs_u32(f_max, &highest_perf);
^~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:144:8: error: nested extern declaration of ‘read_core_sysfs_u32’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_init_for_setting_freq’:
../lib/power/power_cppc_cpufreq.c:292:8: error: implicit declaration of function ‘read_core_sysfs_s’ [-Werror=implicit-function-declaration]
ret = read_core_sysfs_s(f, buf, sizeof(buf));
^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:292:8: error: nested extern declaration of ‘read_core_sysfs_s’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
[345/2754] Generating symbol file lib/librte_lpm.so.21.3.p/librte_lpm.so.21.3.symbols
[346/2754] Compiling C object lib/librte_sched.a.p/sched_rte_red.c.o
[347/2754] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[348/2754] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
[349/2754] Compiling C object lib/librte_regexdev.a.p/regexdev_rte_regexdev.c.o
[350/2754] Compiling C object lib/librte_rib.a.p/rib_rte_rib.c.o
[351/2754] Compiling C object lib/librte_reorder.a.p/reorder_rte_reorder.c.o
[352/2754] Compiling C object lib/librte_rib.a.p/rib_rte_rib6.c.o
[353/2754] Compiling C object lib/librte_sched.a.p/sched_rte_sched.c.o
ninja: build stopped
*Build Failed #6:
OS: RHEL83-64
Target: x86_64-native-linuxapp-gcc
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
gcc -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c: In function ‘set_freq_internal’:
../lib/power/power_cppc_cpufreq.c:83:2: error: implicit declaration of function ‘POWER_DEBUG_TRACE’ [-Werror=implicit-function-declaration]
POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:83:2: error: nested extern declaration of ‘POWER_DEBUG_TRACE’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_set_governor_userspace’:
../lib/power/power_cppc_cpufreq.c:109:9: error: implicit declaration of function ‘power_set_governor’; did you mean ‘timer_getoverrun’? [-Werror=implicit-function-declaration]
return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
^~~~~~~~~~~~~~~~~~
timer_getoverrun
../lib/power/power_cppc_cpufreq.c:109:9: error: nested extern declaration of ‘power_set_governor’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_check_turbo’:
../lib/power/power_cppc_cpufreq.c:120:2: error: implicit declaration of function ‘open_core_sysfs_file’; did you mean ‘rte_lcore_has_role’? [-Werror=implicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
^~~~~~~~~~~~~~~~~~~~
rte_lcore_has_role
../lib/power/power_cppc_cpufreq.c:120:2: error: nested extern declaration of ‘open_core_sysfs_file’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c:144:8: error: implicit declaration of function ‘read_core_sysfs_u32’ [-Werror=implicit-function-declaration]
ret = read_core_sysfs_u32(f_max, &highest_perf);
^~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:144:8: error: nested extern declaration of ‘read_core_sysfs_u32’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_init_for_setting_freq’:
../lib/power/power_cppc_cpufreq.c:292:8: error: implicit declaration of function ‘read_core_sysfs_s’ [-Werror=implicit-function-declaration]
ret = read_core_sysfs_s(f, buf, sizeof(buf));
^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:292:8: error: nested extern declaration of ‘read_core_sysfs_s’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
[343/2744] Linking target lib/librte_member.so.21.3
[344/2744] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[345/2744] Generating symbol file lib/librte_lpm.so.21.3.p/librte_lpm.so.21.3.symbols
[346/2744] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
[347/2744] Compiling C object lib/librte_regexdev.a.p/regexdev_rte_regexdev.c.o
[348/2744] Compiling C object lib/librte_rib.a.p/rib_rte_rib.c.o
[349/2744] Compiling C object lib/librte_reorder.a.p/reorder_rte_reorder.c.o
[350/2744] Compiling C object lib/librte_rib.a.p/rib_rte_rib6.c.o
[351/2744] Compiling C object lib/librte_sched.a.p/sched_rte_sched.c.o
ninja: build stopped
*Build Failed #7:
OS: SUSE15-64
Target: x86_64-native-linuxapp-clang
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
clang -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c:83:2: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
^
../lib/power/power_cppc_cpufreq.c:109:9: error: implicit declaration of function 'power_set_governor' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
^
../lib/power/power_cppc_cpufreq.c:120:2: error: implicit declaration of function 'open_core_sysfs_file' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
^
../lib/power/power_cppc_cpufreq.c:144:8: error: implicit declaration of function 'read_core_sysfs_u32' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = read_core_sysfs_u32(f_max, &highest_perf);
^
../lib/power/power_cppc_cpufreq.c:173:3: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("Lcore %u can do Turbo Boost! highest perf %u, "
^
../lib/power/power_cppc_cpufreq.c:179:3: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("Lcore %u Turbo not available! highest perf %u, "
^
../lib/power/power_cppc_cpufreq.c:130:6: error: variable 'f_cmax' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_nom == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:189:6: note: uninitialized use occurs here
if (f_cmax != NULL)
^~~~~~
../lib/power/power_cppc_cpufreq.c:130:2: note: remove the 'if' if its condition is always false
if (f_nom == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:122:6: error: variable 'f_cmax' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_max == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:189:6: note: uninitialized use occurs here
if (f_cmax != NULL)
^~~~~~
../lib/power/power_cppc_cpufreq.c:122:2: note: remove the 'if' if its condition is always false
if (f_max == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:116:30: note: initialize the variable 'f_cmax' to silence this warning
FILE *f_nom, *f_max, *f_cmax;
^
= NULL
../lib/power/power_cppc_cpufreq.c:122:6: error: variable 'f_nom' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_max == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:187:6: note: uninitialized use occurs here
if (f_nom != NULL)
^~~~~
../lib/power/power_cppc_cpufreq.c:122:2: note: remove the 'if' if its condition is always false
if (f_max == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:116:13: note: initialize the variable 'f_nom' to silence this warning
FILE *f_nom, *f_max, *f_cmax;
^
= NULL
../lib/power/power_cppc_cpufreq.c:207:2: error: implicit declaration of function 'open_core_sysfs_file' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_SCALING_MAX_FREQ, pi->lcore_id, "r",
^
../lib/power/power_cppc_cpufreq.c:223:8: error: implicit declaration of function 'read_core_sysfs_u32' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = read_core_sysfs_u32(f_max, &scaling_max_freq);
^
../lib/power/power_cppc_cpufreq.c:261:2: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("%d frequency(s) of lcore %u are available\n",
^
../lib/power/power_cppc_cpufreq.c:209:6: error: variable 'f_min' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_max == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:265:6: note: uninitialized use occurs here
if (f_min != NULL)
^~~~~
../lib/power/power_cppc_cpufreq.c:209:2: note: remove the 'if' if its condition is always false
if (f_max == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:202:13: note: initialize the variable 'f_min' to silence this warning
FILE *f_min, *f_max;
^
= NULL
../lib/power/power_cppc_cpufreq.c:284:2: error: implicit declaration of function 'open_core_sysfs_file' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_SETSPEED, pi->lcore_id, "rw+",
^
../lib/power/power_cppc_cpufreq.c:292:8: error: implicit declaration of function 'read_core_sysfs_s' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = read_core_sysfs_s(f, buf, sizeof(buf));
^
../lib/power/power_cppc_cpufreq.c:407:9: error: implicit declaration of function 'power_set_governor' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return power_set_governor(pi->lcore_id, pi->governor_ori, NULL, 0);
^
16 errors generated.
[345/2714] Compiling C object lib/librte_power.a.p/power_rte_power_pmd_mgmt.c.o
[346/2714] Generating symbol file lib/librte_lpm.so.21.3.p/librte_lpm.so.21.3.symbols
[347/2714] Compiling C object lib/librte_rib.a.p/rib_rte_rib.c.o
[348/2714] Compiling C object lib/librte_regexdev.a.p/regexdev_rte_regexdev.c.o
[349/2714] Compiling C object lib/librte_reorder.a.p/reorder_rte_reorder.c.o
[350/2714] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[351/2714] Compiling C object lib/librte_rib.a.p/rib_rte_rib6.c.o
[352/2714] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
[353/2714] Compiling C object lib/librte_sched.a.p/sched_rte_sched.c.o
ninja: build stopped
*Build Failed #8:
OS: SUSE15-64
Target: x86_64-native-linuxapp-gcc
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
gcc -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c: In function ‘set_freq_internal’:
../lib/power/power_cppc_cpufreq.c:83:2: error: implicit declaration of function ‘POWER_DEBUG_TRACE’ [-Werror=implicit-function-declaration]
POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:83:2: error: nested extern declaration of ‘POWER_DEBUG_TRACE’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_set_governor_userspace’:
../lib/power/power_cppc_cpufreq.c:109:9: error: implicit declaration of function ‘power_set_governor’; did you mean ‘timer_getoverrun’? [-Werror=implicit-function-declaration]
return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
^~~~~~~~~~~~~~~~~~
timer_getoverrun
../lib/power/power_cppc_cpufreq.c:109:9: error: nested extern declaration of ‘power_set_governor’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_check_turbo’:
../lib/power/power_cppc_cpufreq.c:120:2: error: implicit declaration of function ‘open_core_sysfs_file’; did you mean ‘rte_lcore_has_role’? [-Werror=implicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
^~~~~~~~~~~~~~~~~~~~
rte_lcore_has_role
../lib/power/power_cppc_cpufreq.c:120:2: error: nested extern declaration of ‘open_core_sysfs_file’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c:144:8: error: implicit declaration of function ‘read_core_sysfs_u32’ [-Werror=implicit-function-declaration]
ret = read_core_sysfs_u32(f_max, &highest_perf);
^~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:144:8: error: nested extern declaration of ‘read_core_sysfs_u32’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_init_for_setting_freq’:
../lib/power/power_cppc_cpufreq.c:292:8: error: implicit declaration of function ‘read_core_sysfs_s’ [-Werror=implicit-function-declaration]
ret = read_core_sysfs_s(f, buf, sizeof(buf));
^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:292:8: error: nested extern declaration of ‘read_core_sysfs_s’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
[342/2683] Compiling C object lib/librte_regexdev.a.p/regexdev_rte_regexdev.c.o
[343/2683] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[344/2683] Compiling C object lib/librte_rib.a.p/rib_rte_rib.c.o
[345/2683] Compiling C object lib/librte_reorder.a.p/reorder_rte_reorder.c.o
[346/2683] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
[347/2683] Compiling C object lib/librte_rib.a.p/rib_rte_rib6.c.o
[348/2683] Compiling C object lib/librte_sched.a.p/sched_rte_sched.c.o
ninja: build stopped
*Build Failed #9:
OS: CentOsStream8-64
Target: x86_64-native-linuxapp-gcc
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
gcc -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c: In function ‘set_freq_internal’:
../lib/power/power_cppc_cpufreq.c:83:2: error: implicit declaration of function ‘POWER_DEBUG_TRACE’ [-Werror=implicit-function-declaration]
POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:83:2: error: nested extern declaration of ‘POWER_DEBUG_TRACE’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_set_governor_userspace’:
../lib/power/power_cppc_cpufreq.c:109:9: error: implicit declaration of function ‘power_set_governor’; did you mean ‘timer_getoverrun’? [-Werror=implicit-function-declaration]
return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
^~~~~~~~~~~~~~~~~~
timer_getoverrun
../lib/power/power_cppc_cpufreq.c:109:9: error: nested extern declaration of ‘power_set_governor’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_check_turbo’:
../lib/power/power_cppc_cpufreq.c:120:2: error: implicit declaration of function ‘open_core_sysfs_file’; did you mean ‘rte_lcore_has_role’? [-Werror=implicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
^~~~~~~~~~~~~~~~~~~~
rte_lcore_has_role
../lib/power/power_cppc_cpufreq.c:120:2: error: nested extern declaration of ‘open_core_sysfs_file’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c:144:8: error: implicit declaration of function ‘read_core_sysfs_u32’ [-Werror=implicit-function-declaration]
ret = read_core_sysfs_u32(f_max, &highest_perf);
^~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:144:8: error: nested extern declaration of ‘read_core_sysfs_u32’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_init_for_setting_freq’:
../lib/power/power_cppc_cpufreq.c:292:8: error: implicit declaration of function ‘read_core_sysfs_s’ [-Werror=implicit-function-declaration]
ret = read_core_sysfs_s(f, buf, sizeof(buf));
^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:292:8: error: nested extern declaration of ‘read_core_sysfs_s’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
[341/2744] Compiling C object lib/librte_sched.a.p/sched_rte_approx.c.o
[342/2744] Compiling C object lib/librte_sched.a.p/sched_rte_red.c.o
[343/2744] Compiling C object lib/librte_member.a.p/member_rte_member_ht.c.o
[344/2744] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[345/2744] Compiling C object lib/librte_regexdev.a.p/regexdev_rte_regexdev.c.o
[346/2744] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
[347/2744] Generating symbol file lib/librte_lpm.so.21.3.p/librte_lpm.so.21.3.symbols
[348/2744] Compiling C object lib/librte_rib.a.p/rib_rte_rib.c.o
[349/2744] Compiling C object lib/librte_rib.a.p/rib_rte_rib6.c.o
[350/2744] Compiling C object lib/librte_reorder.a.p/reorder_rte_reorder.c.o
[351/2744] Compiling C object lib/librte_sched.a.p/sched_rte_sched.c.o
ninja: build stopped
*Build Failed #10:
OS: UB2004-32
Target: i686-native-linuxapp-gcc
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
gcc -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -Wno-pointer-to-int-cast -D_GNU_SOURCE -m32 -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c: In function ‘set_freq_internal’:
../lib/power/power_cppc_cpufreq.c:83:2: error: implicit declaration of function ‘POWER_DEBUG_TRACE’ [-Werror=implicit-function-declaration]
83 | POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
| ^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:83:2: error: nested extern declaration of ‘POWER_DEBUG_TRACE’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_set_governor_userspace’:
../lib/power/power_cppc_cpufreq.c:109:9: error: implicit declaration of function ‘power_set_governor’ [-Werror=implicit-function-declaration]
109 | return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
| ^~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:109:9: error: nested extern declaration of ‘power_set_governor’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_check_turbo’:
../lib/power/power_cppc_cpufreq.c:120:2: error: implicit declaration of function ‘open_core_sysfs_file’ [-Werror=implicit-function-declaration]
120 | open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
| ^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:120:2: error: nested extern declaration of ‘open_core_sysfs_file’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c:144:8: error: implicit declaration of function ‘read_core_sysfs_u32’ [-Werror=implicit-function-declaration]
144 | ret = read_core_sysfs_u32(f_max, &highest_perf);
| ^~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:144:8: error: nested extern declaration of ‘read_core_sysfs_u32’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_init_for_setting_freq’:
../lib/power/power_cppc_cpufreq.c:292:8: error: implicit declaration of function ‘read_core_sysfs_s’ [-Werror=implicit-function-declaration]
292 | ret = read_core_sysfs_s(f, buf, sizeof(buf));
| ^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:292:8: error: nested extern declaration of ‘read_core_sysfs_s’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
[330/2249] Generating rte_reorder_mingw with a custom command
[331/2249] Generating symbol file lib/librte_lpm.so.21.3.p/librte_lpm.so.21.3.symbols
[332/2249] Compiling C object lib/librte_regexdev.a.p/regexdev_rte_regexdev.c.o
[333/2249] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[334/2249] Compiling C object lib/librte_rib.a.p/rib_rte_rib.c.o
[335/2249] Compiling C object lib/librte_reorder.a.p/reorder_rte_reorder.c.o
[336/2249] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
[337/2249] Compiling C object lib/librte_rib.a.p/rib_rte_rib6.c.o
[338/2249] Compiling C object lib/librte_sched.a.p/sched_rte_sched.c.o
ninja: build stopped
*Build Failed #11:
OS: UB2004-64
Target: x86_64-native-linuxapp-clang
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
clang -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c:83:2: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
^
../lib/power/power_cppc_cpufreq.c:109:9: error: implicit declaration of function 'power_set_governor' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
^
../lib/power/power_cppc_cpufreq.c:120:2: error: implicit declaration of function 'open_core_sysfs_file' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
^
../lib/power/power_cppc_cpufreq.c:144:8: error: implicit declaration of function 'read_core_sysfs_u32' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = read_core_sysfs_u32(f_max, &highest_perf);
^
../lib/power/power_cppc_cpufreq.c:173:3: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("Lcore %u can do Turbo Boost! highest perf %u, "
^
../lib/power/power_cppc_cpufreq.c:179:3: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("Lcore %u Turbo not available! highest perf %u, "
^
../lib/power/power_cppc_cpufreq.c:130:6: error: variable 'f_cmax' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_nom == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:189:6: note: uninitialized use occurs here
if (f_cmax != NULL)
^~~~~~
../lib/power/power_cppc_cpufreq.c:130:2: note: remove the 'if' if its condition is always false
if (f_nom == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:122:6: error: variable 'f_cmax' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_max == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:189:6: note: uninitialized use occurs here
if (f_cmax != NULL)
^~~~~~
../lib/power/power_cppc_cpufreq.c:122:2: note: remove the 'if' if its condition is always false
if (f_max == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:116:30: note: initialize the variable 'f_cmax' to silence this warning
FILE *f_nom, *f_max, *f_cmax;
^
= NULL
../lib/power/power_cppc_cpufreq.c:122:6: error: variable 'f_nom' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_max == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:187:6: note: uninitialized use occurs here
if (f_nom != NULL)
^~~~~
../lib/power/power_cppc_cpufreq.c:122:2: note: remove the 'if' if its condition is always false
if (f_max == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:116:13: note: initialize the variable 'f_nom' to silence this warning
FILE *f_nom, *f_max, *f_cmax;
^
= NULL
../lib/power/power_cppc_cpufreq.c:207:2: error: implicit declaration of function 'open_core_sysfs_file' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_SCALING_MAX_FREQ, pi->lcore_id, "r",
^
../lib/power/power_cppc_cpufreq.c:223:8: error: implicit declaration of function 'read_core_sysfs_u32' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = read_core_sysfs_u32(f_max, &scaling_max_freq);
^
../lib/power/power_cppc_cpufreq.c:261:2: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("%d frequency(s) of lcore %u are available\n",
^
../lib/power/power_cppc_cpufreq.c:209:6: error: variable 'f_min' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_max == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:265:6: note: uninitialized use occurs here
if (f_min != NULL)
^~~~~
../lib/power/power_cppc_cpufreq.c:209:2: note: remove the 'if' if its condition is always false
if (f_max == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:202:13: note: initialize the variable 'f_min' to silence this warning
FILE *f_min, *f_max;
^
= NULL
../lib/power/power_cppc_cpufreq.c:284:2: error: implicit declaration of function 'open_core_sysfs_file' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_SETSPEED, pi->lcore_id, "rw+",
^
../lib/power/power_cppc_cpufreq.c:292:8: error: implicit declaration of function 'read_core_sysfs_s' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = read_core_sysfs_s(f, buf, sizeof(buf));
^
../lib/power/power_cppc_cpufreq.c:407:9: error: implicit declaration of function 'power_set_governor' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return power_set_governor(pi->lcore_id, pi->governor_ori, NULL, 0);
^
16 errors generated.
[334/2741] Generating rte_regexdev_mingw with a custom command
[335/2741] Linking target lib/librte_lpm.so.21.3
[336/2741] Generating symbol file lib/librte_kni.so.21.3.p/librte_kni.so.21.3.symbols
[337/2741] Compiling C object lib/librte_power.a.p/power_rte_power_pmd_mgmt.c.o
[338/2741] Compiling C object lib/librte_power.a.p/power_power_pstate_cpufreq.c.o
[339/2741] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[340/2741] Compiling C object lib/librte_regexdev.a.p/regexdev_rte_regexdev.c.o
[341/2741] Compiling C object lib/librte_rib.a.p/rib_rte_rib.c.o
[342/2741] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
ninja: build stopped
*Build Failed #12:
OS: UB2004-64
Target: x86_64-native-linuxapp-gcc
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
gcc -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c: In function ‘set_freq_internal’:
../lib/power/power_cppc_cpufreq.c:83:2: error: implicit declaration of function ‘POWER_DEBUG_TRACE’ [-Werror=implicit-function-declaration]
83 | POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
| ^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:83:2: error: nested extern declaration of ‘POWER_DEBUG_TRACE’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_set_governor_userspace’:
../lib/power/power_cppc_cpufreq.c:109:9: error: implicit declaration of function ‘power_set_governor’ [-Werror=implicit-function-declaration]
109 | return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
| ^~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:109:9: error: nested extern declaration of ‘power_set_governor’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_check_turbo’:
../lib/power/power_cppc_cpufreq.c:120:2: error: implicit declaration of function ‘open_core_sysfs_file’ [-Werror=implicit-function-declaration]
120 | open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
| ^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:120:2: error: nested extern declaration of ‘open_core_sysfs_file’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c:144:8: error: implicit declaration of function ‘read_core_sysfs_u32’ [-Werror=implicit-function-declaration]
144 | ret = read_core_sysfs_u32(f_max, &highest_perf);
| ^~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:144:8: error: nested extern declaration of ‘read_core_sysfs_u32’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_init_for_setting_freq’:
../lib/power/power_cppc_cpufreq.c:292:8: error: implicit declaration of function ‘read_core_sysfs_s’ [-Werror=implicit-function-declaration]
292 | ret = read_core_sysfs_s(f, buf, sizeof(buf));
| ^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:292:8: error: nested extern declaration of ‘read_core_sysfs_s’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
[342/2741] Compiling C object lib/librte_sched.a.p/sched_rte_red.c.o
[343/2741] Compiling C object lib/librte_sched.a.p/sched_rte_approx.c.o
[344/2741] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[345/2741] Compiling C object lib/librte_rib.a.p/rib_rte_rib.c.o
[346/2741] Compiling C object lib/librte_regexdev.a.p/regexdev_rte_regexdev.c.o
[347/2741] Compiling C object lib/librte_reorder.a.p/reorder_rte_reorder.c.o
[348/2741] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
[349/2741] Compiling C object lib/librte_rib.a.p/rib_rte_rib6.c.o
[350/2741] Compiling C object lib/librte_sched.a.p/sched_rte_sched.c.o
ninja: build stopped
*Build Failed #13:
OS: UB2004-64
Target: x86_64-native-linuxapp-icc
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
icc -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -pipe -D_FILE_OFFSET_BITS=64 -Wall -w3 -diag-disable:remark -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -diag-disable=181 -diag-disable=188 -diag-disable=2203 -diag-disable=2279 -diag-disable=2557 -diag-disable=3179 -diag-disable=3656 -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c(83): error #266: function "POWER_DEBUG_TRACE" declared implicitly
POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
^
../lib/power/power_cppc_cpufreq.c(109): error #266: function "power_set_governor" declared implicitly
return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
^
../lib/power/power_cppc_cpufreq.c(120): error #266: function "open_core_sysfs_file" declared implicitly
open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
^
../lib/power/power_cppc_cpufreq.c(144): error #266: function "read_core_sysfs_u32" declared implicitly
ret = read_core_sysfs_u32(f_max, &highest_perf);
^
../lib/power/power_cppc_cpufreq.c(173): error #266: function "POWER_DEBUG_TRACE" declared implicitly
POWER_DEBUG_TRACE("Lcore %u can do Turbo Boost! highest perf %u, "
^
../lib/power/power_cppc_cpufreq.c(179): error #266: function "POWER_DEBUG_TRACE" declared implicitly
POWER_DEBUG_TRACE("Lcore %u Turbo not available! highest perf %u, "
^
../lib/power/power_cppc_cpufreq.c(207): error #266: function "open_core_sysfs_file" declared implicitly
open_core_sysfs_file(POWER_SYSFILE_SCALING_MAX_FREQ, pi->lcore_id, "r",
^
../lib/power/power_cppc_cpufreq.c(223): error #266: function "read_core_sysfs_u32" declared implicitly
ret = read_core_sysfs_u32(f_max, &scaling_max_freq);
^
../lib/power/power_cppc_cpufreq.c(261): error #266: function "POWER_DEBUG_TRACE" declared implicitly
POWER_DEBUG_TRACE("%d frequency(s) of lcore %u are available\n",
^
../lib/power/power_cppc_cpufreq.c(284): error #266: function "open_core_sysfs_file" declared implicitly
open_core_sysfs_file(POWER_SYSFILE_SETSPEED, pi->lcore_id, "rw+",
^
../lib/power/power_cppc_cpufreq.c(292): error #266: function "read_core_sysfs_s" declared implicitly
ret = read_core_sysfs_s(f, buf, sizeof(buf));
^
../lib/power/power_cppc_cpufreq.c(407): error #266: function "power_set_governor" declared implicitly
return power_set_governor(pi->lcore_id, pi->governor_ori, NULL, 0);
^
compilation aborted for ../lib/power/power_cppc_cpufreq.c (code 2)
[310/2694] Compiling C object lib/librte_power.a.p/power_rte_power_empty_poll.c.o
[311/2694] Compiling C object lib/librte_power.a.p/power_power_pstate_cpufreq.c.o
[312/2694] Compiling C object lib/librte_power.a.p/power_rte_power_pmd_mgmt.c.o
[313/2694] Generating symbol file lib/librte_lpm.so.21.3.p/librte_lpm.so.21.3.symbols
[314/2694] Linking target lib/librte_member.so.21.3
[315/2694] Compiling C object lib/librte_kni.a.p/kni_rte_kni.c.o
[316/2694] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[317/2694] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
[318/2694] Compiling C object lib/librte_ethdev.a.p/ethdev_rte_flow.c.o
ninja: build stopped
*Build Failed #14:
OS: UB2104-64
Target: x86_64-native-linuxapp-gcc
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
gcc -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c: In function ‘set_freq_internal’:
../lib/power/power_cppc_cpufreq.c:83:2: error: implicit declaration of function ‘POWER_DEBUG_TRACE’ [-Werror=implicit-function-declaration]
83 | POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
| ^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:83:2: error: nested extern declaration of ‘POWER_DEBUG_TRACE’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_set_governor_userspace’:
../lib/power/power_cppc_cpufreq.c:109:9: error: implicit declaration of function ‘power_set_governor’ [-Werror=implicit-function-declaration]
109 | return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
| ^~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:109:9: error: nested extern declaration of ‘power_set_governor’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_check_turbo’:
../lib/power/power_cppc_cpufreq.c:120:2: error: implicit declaration of function ‘open_core_sysfs_file’ [-Werror=implicit-function-declaration]
120 | open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
| ^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:120:2: error: nested extern declaration of ‘open_core_sysfs_file’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c:144:8: error: implicit declaration of function ‘read_core_sysfs_u32’ [-Werror=implicit-function-declaration]
144 | ret = read_core_sysfs_u32(f_max, &highest_perf);
| ^~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:144:8: error: nested extern declaration of ‘read_core_sysfs_u32’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_init_for_setting_freq’:
../lib/power/power_cppc_cpufreq.c:292:8: error: implicit declaration of function ‘read_core_sysfs_s’ [-Werror=implicit-function-declaration]
292 | ret = read_core_sysfs_s(f, buf, sizeof(buf));
| ^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:292:8: error: nested extern declaration of ‘read_core_sysfs_s’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
[346/2754] Compiling C object lib/librte_sched.a.p/sched_rte_red.c.o
[347/2754] Compiling C object lib/librte_sched.a.p/sched_rte_approx.c.o
[348/2754] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
[349/2754] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[350/2754] Compiling C object lib/librte_regexdev.a.p/regexdev_rte_regexdev.c.o
[351/2754] Compiling C object lib/librte_rib.a.p/rib_rte_rib.c.o
[352/2754] Compiling C object lib/librte_reorder.a.p/reorder_rte_reorder.c.o
[353/2754] Compiling C object lib/librte_rib.a.p/rib_rte_rib6.c.o
[354/2754] Compiling C object lib/librte_sched.a.p/sched_rte_sched.c.o
ninja: build stopped
*Build Failed #15:
OS: UB2004-64
Target: x86_64-native-linuxapp-doc
FAILED: lib/76b5a35@@rte_power@sta/power_power_cppc_cpufreq.c.o
gcc -Ilib/76b5a35@@rte_power@sta -Ilib -I../lib -Ilib/power -I../lib/power -I. -I../ -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/telemetry/../metrics -I../lib/telemetry/../metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ 'lib/76b5a35@@rte_power@sta/power_power_cppc_cpufreq.c.o' -MF 'lib/76b5a35@@rte_power@sta/power_power_cppc_cpufreq.c.o.d' -o 'lib/76b5a35@@rte_power@sta/power_power_cppc_cpufreq.c.o' -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c: In function ‘set_freq_internal’:
../lib/power/power_cppc_cpufreq.c:83:2: error: implicit declaration of function ‘POWER_DEBUG_TRACE’ [-Werror=implicit-function-declaration]
83 | POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
| ^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:83:2: error: nested extern declaration of ‘POWER_DEBUG_TRACE’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_set_governor_userspace’:
../lib/power/power_cppc_cpufreq.c:109:9: error: implicit declaration of function ‘power_set_governor’ [-Werror=implicit-function-declaration]
109 | return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
| ^~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:109:9: error: nested extern declaration of ‘power_set_governor’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_check_turbo’:
../lib/power/power_cppc_cpufreq.c:120:2: error: implicit declaration of function ‘open_core_sysfs_file’ [-Werror=implicit-function-declaration]
120 | open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
| ^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:120:2: error: nested extern declaration of ‘open_core_sysfs_file’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c:144:8: error: implicit declaration of function ‘read_core_sysfs_u32’ [-Werror=implicit-function-declaration]
144 | ret = read_core_sysfs_u32(f_max, &highest_perf);
| ^~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:144:8: error: nested extern declaration of ‘read_core_sysfs_u32’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_init_for_setting_freq’:
../lib/power/power_cppc_cpufreq.c:292:8: error: implicit declaration of function ‘read_core_sysfs_s’ [-Werror=implicit-function-declaration]
292 | ret = read_core_sysfs_s(f, buf, sizeof(buf));
| ^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:292:8: error: nested extern declaration of ‘read_core_sysfs_s’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
[353/2503] Linking static target lib/librte_rawdev.a.
[354/2503] Linking target lib/librte_rawdev.so.21.3.
[355/2503] Compiling C object 'lib/76b5a35@@rte_sched@sta/sched_rte_approx.c.o'.
[356/2503] Compiling C object 'lib/76b5a35@@rte_pdump@sta/pdump_rte_pdump.c.o'.
[357/2503] Compiling C object 'lib/76b5a35@@rte_reorder@sta/reorder_rte_reorder.c.o'.
[358/2503] Compiling C object 'lib/76b5a35@@rte_rib@sta/rib_rte_rib.c.o'.
[359/2503] Compiling C object 'lib/76b5a35@@rte_security@sta/security_rte_security.c.o'.
[360/2503] Compiling C object 'lib/76b5a35@@rte_rib@sta/rib_rte_rib6.c.o'.
[361/2503] Compiling C object 'lib/76b5a35@@rte_sched@sta/sched_rte_sched.c.o'.
ninja: build stopped
*Build Failed #16:
OS: FC34-64
Target: x86_64-native-linuxapp-gcc
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
gcc -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c: In function ‘set_freq_internal’:
../lib/power/power_cppc_cpufreq.c:83:9: error: implicit declaration of function ‘POWER_DEBUG_TRACE’ [-Werror=implicit-function-declaration]
83 | POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
| ^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:83:9: error: nested extern declaration of ‘POWER_DEBUG_TRACE’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_set_governor_userspace’:
../lib/power/power_cppc_cpufreq.c:109:16: error: implicit declaration of function ‘power_set_governor’ [-Werror=implicit-function-declaration]
109 | return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
| ^~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:109:16: error: nested extern declaration of ‘power_set_governor’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_check_turbo’:
../lib/power/power_cppc_cpufreq.c:120:9: error: implicit declaration of function ‘open_core_sysfs_file’ [-Werror=implicit-function-declaration]
120 | open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
| ^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:120:9: error: nested extern declaration of ‘open_core_sysfs_file’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c:144:15: error: implicit declaration of function ‘read_core_sysfs_u32’ [-Werror=implicit-function-declaration]
144 | ret = read_core_sysfs_u32(f_max, &highest_perf);
| ^~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:144:15: error: nested extern declaration of ‘read_core_sysfs_u32’ [-Werror=nested-externs]
../lib/power/power_cppc_cpufreq.c: In function ‘power_init_for_setting_freq’:
../lib/power/power_cppc_cpufreq.c:292:15: error: implicit declaration of function ‘read_core_sysfs_s’ [-Werror=implicit-function-declaration]
292 | ret = read_core_sysfs_s(f, buf, sizeof(buf));
| ^~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:292:15: error: nested extern declaration of ‘read_core_sysfs_s’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
[342/2753] Linking target lib/librte_lpm.so.21.3
[343/2753] Compiling C object lib/librte_sched.a.p/sched_rte_approx.c.o
[344/2753] Generating rte_sched_def with a custom command
[345/2753] Compiling C object lib/librte_member.a.p/member_rte_member_ht.c.o
[346/2753] Compiling C object lib/librte_regexdev.a.p/regexdev_rte_regexdev.c.o
[347/2753] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
[348/2753] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[349/2753] Compiling C object lib/librte_rib.a.p/rib_rte_rib.c.o
[350/2753] Compiling C object lib/librte_reorder.a.p/reorder_rte_reorder.c.o
[351/2753] Compiling C object lib/librte_rib.a.p/rib_rte_rib6.c.o
[352/2753] Compiling C object lib/librte_sched.a.p/sched_rte_sched.c.o
ninja: build stopped
*Build Failed #17:
OS: FC34-64
Target: x86_64-native-linuxapp-clang
FAILED: lib/librte_power.a.p/power_power_cppc_cpufreq.c.o
clang -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=lib.power -MD -MQ lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -MF lib/librte_power.a.p/power_power_cppc_cpufreq.c.o.d -o lib/librte_power.a.p/power_power_cppc_cpufreq.c.o -c ../lib/power/power_cppc_cpufreq.c
../lib/power/power_cppc_cpufreq.c:83:2: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
^
../lib/power/power_cppc_cpufreq.c:109:9: error: implicit declaration of function 'power_set_governor' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
^
../lib/power/power_cppc_cpufreq.c:120:2: error: implicit declaration of function 'open_core_sysfs_file' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_HIGHEST_PERF, pi->lcore_id, "r",
^
../lib/power/power_cppc_cpufreq.c:144:8: error: implicit declaration of function 'read_core_sysfs_u32' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = read_core_sysfs_u32(f_max, &highest_perf);
^
../lib/power/power_cppc_cpufreq.c:173:3: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("Lcore %u can do Turbo Boost! highest perf %u, "
^
../lib/power/power_cppc_cpufreq.c:179:3: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("Lcore %u Turbo not available! highest perf %u, "
^
../lib/power/power_cppc_cpufreq.c:130:6: error: variable 'f_cmax' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_nom == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:189:6: note: uninitialized use occurs here
if (f_cmax != NULL)
^~~~~~
../lib/power/power_cppc_cpufreq.c:130:2: note: remove the 'if' if its condition is always false
if (f_nom == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:122:6: error: variable 'f_cmax' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_max == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:189:6: note: uninitialized use occurs here
if (f_cmax != NULL)
^~~~~~
../lib/power/power_cppc_cpufreq.c:122:2: note: remove the 'if' if its condition is always false
if (f_max == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:116:30: note: initialize the variable 'f_cmax' to silence this warning
FILE *f_nom, *f_max, *f_cmax;
^
= NULL
../lib/power/power_cppc_cpufreq.c:122:6: error: variable 'f_nom' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_max == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:187:6: note: uninitialized use occurs here
if (f_nom != NULL)
^~~~~
../lib/power/power_cppc_cpufreq.c:122:2: note: remove the 'if' if its condition is always false
if (f_max == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:116:13: note: initialize the variable 'f_nom' to silence this warning
FILE *f_nom, *f_max, *f_cmax;
^
= NULL
../lib/power/power_cppc_cpufreq.c:207:2: error: implicit declaration of function 'open_core_sysfs_file' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_SCALING_MAX_FREQ, pi->lcore_id, "r",
^
../lib/power/power_cppc_cpufreq.c:223:8: error: implicit declaration of function 'read_core_sysfs_u32' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = read_core_sysfs_u32(f_max, &scaling_max_freq);
^
../lib/power/power_cppc_cpufreq.c:261:2: error: implicit declaration of function 'POWER_DEBUG_TRACE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
POWER_DEBUG_TRACE("%d frequency(s) of lcore %u are available\n",
^
../lib/power/power_cppc_cpufreq.c:209:6: error: variable 'f_min' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (f_max == NULL) {
^~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:265:6: note: uninitialized use occurs here
if (f_min != NULL)
^~~~~
../lib/power/power_cppc_cpufreq.c:209:2: note: remove the 'if' if its condition is always false
if (f_max == NULL) {
^~~~~~~~~~~~~~~~~~~~
../lib/power/power_cppc_cpufreq.c:202:13: note: initialize the variable 'f_min' to silence this warning
FILE *f_min, *f_max;
^
= NULL
../lib/power/power_cppc_cpufreq.c:284:2: error: implicit declaration of function 'open_core_sysfs_file' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
open_core_sysfs_file(POWER_SYSFILE_SETSPEED, pi->lcore_id, "rw+",
^
../lib/power/power_cppc_cpufreq.c:292:8: error: implicit declaration of function 'read_core_sysfs_s' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = read_core_sysfs_s(f, buf, sizeof(buf));
^
../lib/power/power_cppc_cpufreq.c:407:9: error: implicit declaration of function 'power_set_governor' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return power_set_governor(pi->lcore_id, pi->governor_ori, NULL, 0);
^
16 errors generated.
[345/2753] Generating symbol file lib/librte_lpm.so.21.3.p/librte_lpm.so.21.3.symbols
[346/2753] Compiling C object lib/librte_power.a.p/power_rte_power_pmd_mgmt.c.o
[347/2753] Compiling C object lib/librte_regexdev.a.p/regexdev_rte_regexdev.c.o
[348/2753] Compiling C object lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o
[349/2753] Compiling C object lib/librte_rib.a.p/rib_rte_rib.c.o
[350/2753] Compiling C object lib/librte_rib.a.p/rib_rte_rib6.c.o
[351/2753] Compiling C object lib/librte_reorder.a.p/reorder_rte_reorder.c.o
[352/2753] Compiling C object lib/librte_pdump.a.p/pdump_rte_pdump.c.o
[353/2753] Compiling C object lib/librte_sched.a.p/sched_rte_sched.c.o
ninja: build stopped
DPDK STV team
reply other threads:[~2021-06-25 2:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='f381f8$ehct84@orsmga001-auth.jf.intel.com' \
--to=sys_stv@intel.com \
--cc=test-report@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).