Error MSB6006: "cmd.exe" exited with code 5 - File: Microsoft.CppCommon.targets

2,051 views
Skip to first unread message

Hicham Seffendji

unread,
Nov 7, 2013, 5:35:19 AM11/7/13
to firebre...@googlegroups.com
Hi everyone,

I am trying to build a plugin project using VS 2010 on Win 7 32 bit with Firebreath 1.7

I am getting the following error after the build fails (release or debug mode, same result)

Error MSB6006: "cmd.exe" exited with code 5 - File: Microsoft.CppCommon.targets

<CustomBuild  <---- Error occurs here
      Sources                     ="@(CustomBuild)"
      BuildSuffix                 ="$(BuildSuffix)"

      TrackerLogDirectory         ="%(CustomBuild.TrackerLogDirectory)"
      MinimalRebuildFromTracking  ="%(CustomBuild.MinimalRebuildFromTracking)"

      TLogReadFiles               ="@(CustomBuildTLogReadFiles)"
      TLogWriteFiles              ="@(CustomBuildTLogWriteFiles)"
      TrackFileAccess             ="$(TrackFileAccess)"
      ToolArchitecture            ="$(CustomBuildToolArchitecture)"
      TrackerFrameworkPath        ="$(CustomBuildTrackerFrameworkPath)"
      TrackerSdkPath              ="$(CustomBuildTrackerSdkPath)"

      AcceptableNonZeroExitCodes  ="%(CustomBuild.AcceptableNonZeroExitCodes)"
      >
</CustomBuild>


Also, when I look into the build output I can see there is a pdb file that cannot be found !

Build Output

Error copying file "C:/dev/firebreath/build/bin/proj/Release/proj.pdb" to "C:/dev/firebreath/build/bin/proj/Release/Rootfs/".
20>  No pdb
20>  Generating ../../bin/proj/Release/proj-0.0.2.10-Win32-unsigned.xpi
20>  Access is denied.
20>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 5.
20>Done executing task "CustomBuild" -- FAILED.
20>Done building target "CustomBuild" in project "proj_XPI.vcxproj" -- FAILED.
20>
20>Build FAILED.


I am following exactly the same steps and instructions in the project readme and firebreath tutorial though !

Any help would be appreciated !

Thanks in advance.

Hicham Seffendji

unread,
Nov 7, 2013, 11:01:09 AM11/7/13
to firebre...@googlegroups.com
Hi again,

Just an update - the error could be the next line (not the pdb file): 

20>  Generating ../../bin/proj/Release/proj-0.0.2.10-Win32-unsigned.xpi

20>  Access is denied.

It seems the newly generated unsigned xpi file cannot be accessed (or perhaps has not been generated !)..

Any help would be appreciated guys ! :)

Thanks.

Richard Bateman

unread,
Nov 7, 2013, 11:46:37 AM11/7/13
to FireBreath Dev Group

It looks like the error is with the XPI creation; you should be able to comment out the lines in your projectDef.cmake file that create an XPI and I suspect it will then work.

Richard

--
 
---
You received this message because you are subscribed to the Google Groups "firebreath-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebreath-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hicham Seffendji

unread,
Nov 8, 2013, 10:30:10 AM11/8/13
to firebre...@googlegroups.com
Thanks for your help Richard. Unfortunately, it did not work. I removed the XPI section in projecteDef.cmake but got the same error - when building - but with .crx !

Any ideas please ?

Thanks.

Richard Bateman

unread,
Nov 8, 2013, 1:25:44 PM11/8/13
to FireBreath Dev Group

Remove the entries for chrome extension creation (.crx)

Richard

Hicham Seffendji

unread,
Dec 2, 2013, 9:17:45 AM12/2/13
to firebre...@googlegroups.com
Thanks for your reply Richard and sorry for the delay (was out of office).

Should I remove the XPI and CRX entries from the PluginConfig.cmake too (in addition to projectDef.cmake) ?

Thanks.

Richard Bateman

unread,
Dec 2, 2013, 11:55:45 AM12/2/13
to FireBreath Dev Group

Those are just configuration, so it shouldn’t matter.

Richard

Hicham Seffendji

unread,
Dec 3, 2013, 8:51:29 AM12/3/13
to firebre...@googlegroups.com
Ok, thanks Richard.

It actually worked so now I do not have XPI or CRX errors... However I have one last error which I am pulling my hair out about. I do not know if it is more related to 7Zip or if it is a problem that may happen in a Firebreath-generated solution when trying to build in VS 2010.


5>------ Rebuild All started: Project: web_CoreRootFS, Configuration: Release Win32 ------

5>Build started 02/12/2013 15:11:00.

5>InitializeBuildStatus:

5>  Creating "Win32\Release\web_CoreRootFS\web_CoreRootFS.unsuccessfulbuild" because "AlwaysCreate" was specified.

5>CustomBuild:

5>  Building Custom Rule C:/Users/me/firebreath/projects/web-plugin/CMakeLists.txt

5>  CMake does not need to re-run because C:\Users\me\firebreath\build\projects\web\CMakeFiles\generate.stamp is up-to-date.

5>  Generating ../../bin/web/Rootfs.VERSION

5>  7-Zip 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18

5>  Processing archive: C:\Users\me\firebreath\build\bin\web\web-core-rootfs.tar.gz

5>  Extracting  web-core-rootfs.tar

5>  Everything is Ok

5>  Size:       61265920

5>  Compressed: 17837270

5>  7-Zip 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18

5>  Processing archive: C:\Users\me\firebreath\build\bin\web\web-core-rootfs.tar

5>  Extracting  .

5>  file C:/Users/me/firebreath/projects/web-plugin/Rootfs\VERSION

5>  already exists. Overwrite with

5>  .\VERSION?

5>  (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit?

5>CUSTOMBUILD : error : Can't allocate required memory!

5>Build FAILED.


If that was something related to Firebreath I would be happy to get some hints :)

Thanks in advance.
Reply all
Reply to author
Forward
0 new messages