Ask Your Question
0

MSBuild build error MSB6006 on latest version

asked 2018-04-10 13:12:27 +0000

tof gravatar image

I'm trying to build the latest version of WireShark on Windows 64. I'm not a specialist, but I followed the steps described on this page. I've installed the cygwin tools as I didn't understand if it is still necessary.

I have the following setup:

  • VS2015
  • Qt5.10.1
  • Cygwin
  • Python3.6.5
  • Git for windows -CMake 3.11.0
  • Asciidoctor, Xsltproc, And DocBook

Everything seems fine until the moment when I'm when running the following command:

msbuild /m /p:Configuration=RelWithDebInfo Wireshark.sln

The I get the following errors:

FinalizeBuildStatus:
  Deleting file "udpdump.dir\RelWithDebInfo\udpdump.tlog\unsuccessfulbuild".
  Touching "udpdump.dir\RelWithDebInfo\udpdump.tlog\udpdump.lastbuildstate".
Done Building Project "C:\tmp\wsbuild64\udpdump.vcxproj" (default targets).

Done Building Project "C:\tmp\wsbuild64\udpdump.vcxproj.metaproj" (default targets).

Done Building Project "C:\tmp\wsbuild64\ALL_BUILD.vcxproj.metaproj" (default targets) -- FAILED.

Done Building Project "C:\tmp\wsbuild64\Wireshark.sln" (default targets) -- FAILED.


Build FAILED.

"C:\tmp\wsbuild64\Wireshark.sln" (default target) (1) ->
"C:\tmp\wsbuild64\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->
"C:\tmp\wsbuild64\androiddump.vcxproj.metaproj" (default target) (4) ->
"C:\tmp\wsbuild64\wiretap\wiretap.vcxproj.metaproj" (default target) (7) ->
"C:\tmp\wsbuild64\version.vcxproj.metaproj" (default target) (8) ->
"C:\tmp\wsbuild64\version.vcxproj" (default target) (9) ->
(CustomBuild target) ->
  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" e
xited with code 9009. [C:\tmp\wsbuild64\version.vcxproj]


"C:\tmp\wsbuild64\Wireshark.sln" (default target) (1) ->
"C:\tmp\wsbuild64\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->
"C:\tmp\wsbuild64\copy_data_files.vcxproj.metaproj" (default target) (24) ->
"C:\tmp\wsbuild64\doc\docs.vcxproj.metaproj" (default target) (25) ->
"C:\tmp\wsbuild64\doc\docs.vcxproj" (default target) (26) ->
  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" e
xited with code 9009. [C:\tmp\wsbuild64\doc\docs.vcxproj]


"C:\tmp\wsbuild64\Wireshark.sln" (default target) (1) ->
"C:\tmp\wsbuild64\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->
"C:\tmp\wsbuild64\copy_data_files.vcxproj.metaproj" (default target) (24) ->
"C:\tmp\wsbuild64\epan\wslua\wsluaauxiliary.vcxproj.metaproj" (default target) (27) ->
"C:\tmp\wsbuild64\epan\wslua\wsluaauxiliary.vcxproj" (default target) (28) ->
  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" e
xited with code 9009. [C:\tmp\wsbuild64\epan\wslua\wsluaauxiliary.vcxproj]


"C:\tmp\wsbuild64\Wireshark.sln" (default target) (1) ->
"C:\tmp\wsbuild64\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->
"C:\tmp\wsbuild64\copy_qt_dlls.vcxproj.metaproj" (default target) (29) ->
"C:\tmp\wsbuild64\wireshark.vcxproj.metaproj" (default target) (30) ->
"C:\tmp\wsbuild64\epan\epan.vcxproj.metaproj" (default target) (31) ->
"C:\tmp\wsbuild64\epan\wslua\wslua.vcxproj.metaproj" (default target) (50) ->
"C:\tmp\wsbuild64\epan\wslua\wslua.vcxproj" (default target) (51) ->
  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2018-04-10 19:17:12 +0000

Pascal Quantin gravatar image

Hi,

Given the following error:

'PERL_EXECUTABLE-NOTFOUND' n'est pas reconnu en tant que commande interne ou externe, un programme ex‚cutable ou un fichier de commandes.

It looks like CMake did not detect your Perl installation. Didi you install the Cygwin interpreters/Perl package?

edit flag offensive delete link more

Comments

Thanks @Pascal, I saw it but didn't take attention to it as it was not in the mandatory Tools list. Indeed it is installed in my cygwin material (I have the package Interpreters, Perl v5.26.1-1) What can be the reason why it's considered as missing?

tof gravatar imagetof ( 2018-04-11 06:43:03 +0000 )edit

Our FindPerl.cmake module looks for Perl in a few places, other than on the path. Note that I don't recommend placing the Cygwin bin directory to the path, let CMake find it:

  • The Cygwin /bin directory (assuming CMake can locate Cygwin).
  • C:\Perl\bin
  • The ActiveState ActivePerl installation directory (from the registry key HKLM:\SOFTWARE\ActiveState\ActivePerl...).

Can you upload the result of the CMake generation step (cmake -G ... 2>&1 > cmake.txt) to OneDrive and provide a link to it?

grahamb gravatar imagegrahamb ( 2018-04-11 08:25:46 +0000 )edit

Ok, finally everything was fine once I "re-CMaked" the project. I think I omitted some package in the cygwin area but don't remember what (seems to be perl?). I mean I installed it later and omitted to relaunch the Cmake step, that's why I still had the trouble...

BTW, the cygwin installation is marked as optionnal, but it seems it is definitely not... Thanks anyway!

tof gravatar imagetof ( 2018-04-11 12:53:31 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2018-04-10 13:12:27 +0000

Seen: 897 times

Last updated: Apr 11 '18