首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用SEM (ns-3模拟执行管理器)运行python代码时,ns3-lte构建失败

使用SEM (ns-3模拟执行管理器)运行python代码时,ns3-lte构建失败
EN

Stack Overflow用户
提问于 2021-06-04 20:10:12
回答 1查看 124关注 0票数 0

我正在尝试使用扫描电镜运行一个python代码,这个代码只在ns3-mmwave-2.0模块中运行,但是在ns3-mmwave构建期间,它显示了一个ns3-lte错误。

可能的原因是什么?,知道我不能使用其他版本的ns3,因为我试图运行的代码只能在这个mmwave模块版本2上运行。

代码语言:javascript
复制
 Building ns-3:  62%|████████████▎       | 1563/2535 [10:29<6:47:36, 25.16s/file]
Traceback (most recent call last):
  File "ns3-mmwave-2.0/thz-sem.py", line 103, in <module>
    campaign = sem.CampaignManager.new(
  File "/home/dang/.local/lib/python3.8/site-packages/sem/manager.py", line 116, in new
    runner = CampaignManager.create_runner(ns_path, script,
  File "/home/dang/.local/lib/python3.8/site-packages/sem/manager.py", line 209, in create_runner
    return locals().get(runner_type,
  File "/home/dang/.local/lib/python3.8/site-packages/sem/runner.py", line 56, in __init__
    self.configure_and_build(path, optimized=optimized)
  File "/home/dang/.local/lib/python3.8/site-packages/sem/runner.py", line 148, in configure_and_build
    for current, total in pbar:
  File "/home/dang/.local/lib/python3.8/site-packages/tqdm/std.py", line 1176, in __iter__
    for obj in iterable:
  File "/home/dang/.local/lib/python3.8/site-packages/sem/runner.py", line 169, in get_build_output
    raise Exception("Compilation ended with an error"
Exception: Compilation ended with an error.
STDERR
b"In file included from ../../src/lte/model/epc-mme-application.cc:30:\n../../src/lte/model/epc-s11-sap.h: In member function \xe2\x80\x98void ns3::EpcMmeApplication::DoInitialUeMessage(uint64_t, uint16_t, uint64_t, uint16_t)\xe2\x80\x99:\n../../src/lte/model/epc-s11-sap.h:183:10: error: \xe2\x80\x98msg.ns3::EpcS11SapSgw::CreateSessionRequestMessage::<anonymous>\xe2\x80\x99 may be used uninitialized in this function [-Werror=maybe-uninitialized]\n  183 |   struct CreateSessionRequestMessage : public GtpcMessage\n      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~\ncc1plus: all warnings being treated as errors\n\nBuild failed\n -> task in 'ns3-lte' failed with exit status 1 (run with -v to display more information)\n"
STDOUT
b''
EN

回答 1

Stack Overflow用户

发布于 2021-06-08 07:32:10

修复需要初始化结构和变量。

更新:显然有一个waf选项可以禁止这些类型的警告被视为错误:--disable-werror

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67836987

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档