Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during trex ./b build - Ubuntu 20.04 #1140

Open
mtedge04 opened this issue Jul 30, 2024 · 1 comment
Open

Error during trex ./b build - Ubuntu 20.04 #1140

mtedge04 opened this issue Jul 30, 2024 · 1 comment

Comments

@mtedge04
Copy link

mtedge04 commented Jul 30, 2024

compiling from trex_core/linux

ham/trex-core/linux/build/src/gtest/bp_tunnel_topo_gtest.cpp.4.o']
In file included from ../../src/gtest/../tuple_gen.h:40,
from ../../src/gtest/../bp_sim.h:53,
from ../../src/gtest/client_cfg_test.cpp:23:
In member function ‘ClientCfgDirExt& ClientCfgDirExt::operator=(const ClientCfgDirExt&)’,
inlined from ‘ClientCfgExt& ClientCfgExt::operator=(const ClientCfgExt&)’ at ../../src/gtest/../trex_client_config.h:245:7,
inlined from ‘void ClientCfgEntry::set_cfg(const ClientCfgExt&)’ at ../../src/gtest/../trex_client_config.h:344:17,
inlined from ‘virtual void basic_client_cfg_test1_Test::TestBody()’ at ../../src/gtest/client_cfg_test.cpp:88:20:
../../src/gtest/../trex_client_config.h:125:7: error: ‘cfg_ext.ClientCfgExt::m_initiator.ClientCfgDirExt::m_src_ip’ may be used uninitialized [-Werror=maybe-uninitialized]
125 | class ClientCfgDirExt : public ClientCfgDirBase {
| ^~~~~~~~~~~~~~~
../../src/gtest/client_cfg_test.cpp: In member function ‘virtual void basic_client_cfg_test1_Test::TestBody()’:
../../src/gtest/client_cfg_test.cpp:59:18: note: ‘cfg_ext’ declared here
59 | ClientCfgExt cfg_ext;
| ^~~~~~~
In file included from ../../src/gtest/../tuple_gen.h:40,
from ../../src/gtest/../bp_sim.h:53,
from ../../src/gtest/client_cfg_test.cpp:23:
In member function ‘ClientCfgDirExt& ClientCfgDirExt::operator=(const ClientCfgDirExt&)’,
inlined from ‘ClientCfgExt& ClientCfgExt::operator=(const ClientCfgExt&)’ at ../../src/gtest/../trex_client_config.h:245:7,
inlined from ‘void ClientCfgEntry::set_cfg(const ClientCfgExt&)’ at ../../src/gtest/../trex_client_config.h:344:17,
inlined from ‘virtual void basic_client_cfg_test1_Test::TestBody()’ at ../../src/gtest/client_cfg_test.cpp:88:20:
../../src/gtest/../trex_client_config.h:125:7: error: ‘cfg_ext.ClientCfgExt::m_responder.ClientCfgDirExt::m_src_ip’ may be used uninitialized [-Werror=maybe-uninitialized]
125 | class ClientCfgDirExt : public ClientCfgDirBase {
| ^~~~~~~~~~~~~~~
../../src/gtest/client_cfg_test.cpp: In member function ‘virtual void basic_client_cfg_test1_Test::TestBody()’:
../../src/gtest/client_cfg_test.cpp:59:18: note: ‘cfg_ext’ declared here
59 | ClientCfgExt cfg_ext;
| ^~~~~~~
cc1plus: all warnings being treated as errors

../../src/gtest/tuple_gen_test.cpp: In member function ‘virtual void tuple_gen_template2_Test::TestBody()’:
../../src/gtest/tuple_gen_test.cpp:432:34: error: ‘template_1.CTupleTemplateGeneratorSmart::m_cache_server_idx’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
432 | CTupleTemplateGeneratorSmart template_1;
| ^~~~~~~~~~
../../src/gtest/tuple_gen_test.cpp:432:34: error: ‘template_1.CTupleTemplateGeneratorSmart::m_cache_server_ip’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
../../src/gtest/tuple_gen_test.cpp: In member function ‘virtual void tuple_gen_2_template2_Test::TestBody()’:
../../src/gtest/tuple_gen_test.cpp:598:34: error: ‘template_1.CTupleTemplateGeneratorSmart::m_cache_server_idx’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
598 | CTupleTemplateGeneratorSmart template_1;
| ^~~~~~~~~~
../../src/gtest/tuple_gen_test.cpp:598:34: error: ‘template_1.CTupleTemplateGeneratorSmart::m_cache_server_ip’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
cc1plus: all warnings being treated as errors

Waf: Leaving directory `/home/egraham/trex-core/linux/build'
Build failed
-> task in 'bp-sim-64' failed with exit status 1:
{task 140224689981024: cxx client_cfg_test.cpp -> client_cfg_test.cpp.4.o}
['/usr/bin/g++', '-DWIN_UCODE_SIM', '-DTREX_SIM', '-D_BYTE_ORDER', '-D_LITTLE_ENDIAN', '-DLINUX', '-D__STDC_LIMIT_MACROS', '-D__STDC_FORMAT_MACROS', '-g', '-Wno-deprecated-declarations', '-Wno-error=uninitialized', '-std=c++0x', '-Wno-sign-compare', '-Wno-strict-aliasing', '-Wno-address-of-packed-member', '-m64', '-O3', '-Wall', '-Werror', '-Wno-sign-compare', '-Wno-strict-aliasing', '-std=gnu++11', '-Isrc/pal/linux', '-I../../src/pal/linux', '-Isrc/pal/common', '-I../../src/pal/common', '-Isrc', '-I../../src', '-Isrc/utils', '-I../../src/utils', '-Isrc/rpc-server', '-I../../src/rpc-server', '-Isrc/hdrh', '-I../../src/hdrh', '-Isrc/stx', '-I../../src/stx', '-Isrc/stx/common', '-I../../src/stx/common', '-Isrc/stx/common/rx', '-I../../src/stx/common/rx', '-Iexternal_libs/json', '-I../../external_libs/json', '-Iexternal_libs/md5', '-I../../external_libs/md5', '-Iexternal_libs/zmq/x86_64/include', '-I../../external_libs/zmq/x86_64/include', '-Iexternal_libs/yaml-cpp/include', '-I../../external_libs/yaml-cpp/include', '-Iexternal_libs/bpf', '-I../../external_libs/bpf', '-Iexternal_libs/valijson/include', '-I../../external_libs/valijson/include', '-Isrc/44bsd/netinet', '-I../../src/44bsd/netinet', '../../src/gtest/client_cfg_test.cpp', '-c', '-o/home/egraham/trex-core/linux/build/src/gtest/client_cfg_test.cpp.4.o']
-> task in 'bp-sim-64' failed with exit status 1:
{task 140224689980912: cxx tuple_gen_test.cpp -> tuple_gen_test.cpp.4.o}
['/usr/bin/g++', '-DWIN_UCODE_SIM', '-DTREX_SIM', '-D_BYTE_ORDER', '-D_LITTLE_ENDIAN', '-DLINUX', '-D__STDC_LIMIT_MACROS', '-D__STDC_FORMAT_MACROS', '-g', '-Wno-deprecated-declarations', '-Wno-error=uninitialized', '-std=c++0x', '-Wno-sign-compare', '-Wno-strict-aliasing', '-Wno-address-of-packed-member', '-m64', '-O3', '-Wall', '-Werror', '-Wno-sign-compare', '-Wno-strict-aliasing', '-std=gnu++11', '-Isrc/pal/linux', '-I../../src/pal/linux', '-Isrc/pal/common', '-I../../src/pal/common', '-Isrc', '-I../../src', '-Isrc/utils', '-I../../src/utils', '-Isrc/rpc-server', '-I../../src/rpc-server', '-Isrc/hdrh', '-I../../src/hdrh', '-Isrc/stx', '-I../../src/stx', '-Isrc/stx/common', '-I../../src/stx/common', '-Isrc/stx/common/rx', '-I../../src/stx/common/rx', '-Iexternal_libs/json', '-I../../external_libs/json', '-Iexternal_libs/md5', '-I../../external_libs/md5', '-Iexternal_libs/zmq/x86_64/include', '-I../../external_libs/zmq/x86_64/include', '-Iexternal_libs/yaml-cpp/include', '-I../../external_libs/yaml-cpp/include', '-Iexternal_libs/bpf', '-I../../external_libs/bpf', '-Iexternal_libs/valijson/include', '-I../../external_libs/valijson/include', '-Isrc/44bsd/netinet', '-I../../src/44bsd/netinet', '../../src/gtest/tuple_gen_test.cpp', '-c', '-o/home/egraham/trex-core/linux/build/src/gtest/tuple_gen_test.cpp.4.o']

@sebastianw
Copy link

I have the same error on Debian 12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants