Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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'

↑ Back to the top


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.

↑ Back to the top


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: 

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
File nameFile sizeDateTimePath
Sysgenmake.exe16,24022-Mar-201206:18Public\Common\Oak\Bin\I386

↑ Back to the top


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

↑ Back to the top


Keywords: kbqfe, kbfix, kbnotautohotfix, kbpubtypekc, kbexpertiseinter, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 2689819
Revision : 1
Created on : 1/7/2017
Published on : 4/10/2012
Exists online : False
Views : 243