FIX: "Fatal error U1077" error message when you use Platform Builder to build a Windows Embedded Compact 7 image that includes clone modules

Article ID: 2689819 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario:
  • You have a Windows Embedded Compact 7-based OS design that includes clone modules.
  • You build the OS design in Platform Builder.

In this scenario, the build is broken. Additionally, you receive the following error message:
Unhandled Exception: System.InvalidOperationException: The environment block used to start a process cannot be longer than 65535 bytes. Your environment block is <’nnn’> bytes long. Remove some environment variables and try again. 
at System.Diagnostics.EnvironmentBlock.ToByteArray(StringDictionary sd, Boolean unicode)
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Microsoft.PlatformBuilder.MainClass.Main(String[] args)
NMAKE : fatal error U1077: C:\WINCE700\public\common\oak\bin\i386\SysgenMake.EXE: return code '0xe0434f4d'

CAUSE

When you include clone modules in an OS design, SysgenMake.exe checks the environment block size for all modules. This process occurs when the NMAKE/RES2RES process is called during the OS design build. For some modules, such as the Coredllhs.dll module, the environment block size increases beyond the maximum allowed size (less than 64 KB). This causes the build to break, and then the "fatal error U1077" error message is generated.

RESOLUTION

Software update information

A supported software update that is named "Windows Embedded Compact 7 Monthly Update March 2012" is now available from Microsoft. In the "File information" section, the package file name contains the processor type.

Note This Windows Embedded Compact 7 Monthly Update is available for download from the Microsoft Download Center: 
Windows Embedded Compact 7 Updates

Prerequisites

This update is supported only if all previously issued updates for this product have also been installed.

Restart requirement

After you apply this update, you must perform a clean build of the whole platform. To do this, use one of the following methods:
  • On the Build menu, click Clean Solution, and then click Build Solution.
  • On the Build menu, click Rebuild Solution.
You do not have to restart the computer after you apply this software update.

Update replacement information

This update does not replace any other updates.

File information

The English version of this software update package has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Files that are included in this update package
Collapse this tableExpand this table
File nameFile sizeDateTimePath
Sysgenmake.exe16,24022-Mar-201206:18Public\Common\Oak\Bin\I386

REFERENCES

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 2689819 - Last Review: April 10, 2012 - Revision: 1.0
APPLIES TO
  • Windows Embedded Compact 7
Keywords: 
kbqfe kbfix kbpubtypekc kbexpertiseinter kbsurveynew KB2689819

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com