First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

How to fix "error MSB6006: "cmd.exe" exited with code -1073741819." when building Wireshark? 4 modules failed with the same error ui.vcxproj, dfilter.vcxproj, wiretap.vcxproj and text2pcap.vcxproj

Build FAILED.

   "C:\temp\wireshark\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
   "C:\temp\wireshark\Development\wsbuild64\epan\dfilter\dfilter.vcxproj.metaproj" (default target) (16) ->
   "C:\temp\wireshark\Development\wsbuild64\epan\dfilter\dfilter.vcxproj" (default target) (102) ->
   (CustomBuild target) -> 
     C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code -1073741819. [C:\temp\wireshark\Development\wsbuild64\epan\dfilter\dfilter.vcxproj]


   "C:\temp\wireshark\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
   "C:\temp\wireshark\Development\wsbuild64\ALL_BUILD.vcxproj.metaproj" (default target) (3) ->
   "C:\temp\wireshark\Development\wsbuild64\plugins\epan\stats_tree\stats_tree.vcxproj.metaproj" (default target) (73) ->
   "C:\temp\wireshark\Development\wsbuild64\wiretap\wiretap.vcxproj.metaproj" (default target) (74) ->
   "C:\temp\wireshark\Development\wsbuild64\wiretap\wiretap.vcxproj" (default target) (104) ->
     C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code -1073741819. [C:\temp\wireshark\Development\wsbuild64\wiretap\wiretap.vcxproj]


   "C:\temp\wireshark\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
   "C:\temp\wireshark\Development\wsbuild64\ALL_BUILD.vcxproj.metaproj" (default target) (3) ->
   "C:\temp\wireshark\Development\wsbuild64\text2pcap.vcxproj.metaproj" (default target) (75) ->
   "C:\temp\wireshark\Development\wsbuild64\text2pcap.vcxproj" (default target) (129) ->
     C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code -1073741819. [C:\temp\wireshark\Development\wsbuild64\text2pcap.vcxproj]


   "C:\temp\wireshark\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
   "C:\temp\wireshark\Development\wsbuild64\ALL_BUILD.vcxproj.metaproj" (default target) (3) ->
   "C:\temp\wireshark\Development\wsbuild64\tshark.vcxproj.metaproj" (default target) (82) ->
   "C:\temp\wireshark\Development\wsbuild64\ui\ui.vcxproj.metaproj" (default target) (84) ->
   "C:\temp\wireshark\Development\wsbuild64\ui\ui.vcxproj" (default target) (131) ->
     C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code -1073741819. [C:\temp\wireshark\Development\wsbuild64\ui\ui.vcxproj]

0 Warning(s)
4 Error(s)
rocketv's avatar
3
rocketv
asked 2020-11-18 01:59:25 +0000
edit flag offensive 0 remove flag close merge delete

Comments

Was this working previously? What version of Wireshark are you building?

Chuckc's avatar Chuckc (2020-11-18 03:11:32 +0000) edit

This is the first time I am trying to build it. I am guessing that I may be missing some tools or have the wrong path. I am trying to build Wireshark version 3.4.0 with Visual Studio 2017. Thanks.

rocketv's avatar rocketv (2020-11-18 04:41:52 +0000) edit
add a comment see more comments

1 Answer

0

Note that the "official" builds of 3.4.x are made with VS 2019.

Please run the CMake generation step and the build step again, redirecting the output of each to a text file by appending ... 2>&1 > file.txt to each command and then putting those text files on a public share and posting a link to the files back here.

grahamb's avatar
23.8k
grahamb
answered 2020-11-18 08:28:32 +0000
edit flag offensive 0 remove flag delete link

Comments

I've setup and rerun this again with VS 2019 and it works. Please close this question. Thanks.

rocketv's avatar rocketv (2020-12-01 23:18:01 +0000) edit

@rocketv I've converted my comment to an answer as that seemed to be the suggestion that helped solve your issue.

We don't close answered questions here, instead accept the answer by clicking the checkmark icon to the left of it. This helps others who may have a similar question.

grahamb's avatar grahamb (2020-12-02 11:12:12 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer