2015-11-02 31 views
0

更新我的NS-3版本(包括私有模塊)的最後一個版本和編譯時,這是所產生的錯誤:錯誤編譯NS-3 WAF(無法加載WAF工具「clang_compilation_database)

[email protected]:~/ns3-mmwave$ ./waf configure 
Setting top to       : /home/mattia/ns3-mmwave 
Setting out to       : /home/mattia/ns3-mmwave/build 
Checking for 'gcc' (C compiler)   : /usr/bin/gcc 
Checking for cc version     : 4.8.4 
Checking for 'g++' (C++ compiler)  : /usr/bin/g++ 
Could not load the Waf tool 'clang_compilation_database' from ['/home/mattia/ns3-mmwave/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7', '/home/mattia/ns3-mmwave', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client'] 
No module named clang_compilation_database 
(complete log in /home/mattia/ns3-mmwave/build/config.log) 

有人對我失蹤的事有個想法嗎?

[編輯:添加的config.log文件]

Checking for 'clang++' (C++ compiler) 
find program=['clang++'] paths=['/Library/Frameworks/Python.framework/Versions/3.4/bin', '/Library/Frameworks/Python.framework/Versions/3.4/bin', '/opt/local/bin', '/opt/local/sbin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/sbin', '/sbin', '/opt/X11/bin', '/Library/TeX/texbin'] var='CXX' -> ['/usr/bin/clang++'] 
(tool ar is already loaded, skipping) 
/usr/bin/clang++ 
from /Users/mattia/ns3-mmwave: Could not load the Waf tool 'clang_compilation_database' from ['/Users/mattia/ns3-mmwave/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7', '/Users/mattia/ns3-mmwave/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib', '/Users/mattia/ns3-mmwave', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages'] 
No module named clang_compilation_database 

回答

2

儘量去除生成文件夾或者手動(RM -f生成)或與./waf distclean命令和重新配置。

+0

嗨Konstantinos,我嘗試了你的建議,但仍然無法正常工作。不管怎麼說,還是要謝謝你。 – Mattia

+0

您正在使用哪個ns-3版本以及哪個操作系統?你是否檢查了[NS-3.24]上的勘誤表(https://www.nsnam.org/wiki/Ns-3.24-errata)? 您還可以提供具有完整錯誤日誌的完整日誌/home/mattia/ns3-mmwave/build/config.log嗎? – Konstantinos

+0

我解決了,謝謝你的支持。 – Mattia