Microsoft KB Archive/906459

= BUG: You may receive an error message when you try to build the SDK after you successfully build a Windows CE 5.0 run-time image in Platform Builder 5.0 =

Article ID: 906459

Article Last Modified on 10/21/2005

-

APPLIES TO


 * Microsoft Windows CE Platform Builder 5.0

-





SYMPTOMS
After you successfully build a Microsoft Windows CE 5.0 run-time image in Microsoft Platform Builder 5.0, you try to build the software development kit (SDK) by using the SDK Wizard. When you try to build the SDK, you may receive the following error message:

It is recommended that you build a run-time image before building an SDK. Otherwise, the build process for your SDK might not succeed. Do you want to continue?

If you click Yes to continue, you may receive the following error message that is generated by the SDK build:

Rolling sysgen'ed headers and libs

…

Error: This build configuration has not been sysgen'ed

Error adding sysgen'ed headers and libs

Error rolling toolkit-specific files

MSI file construction completed. 3 error(s), 0 warning(s).



CAUSE
This problem occurs because the SDK Wizard determined that the Windows CE 5.0 operating system configurations were not built at least one time by the Sysgen tool. Currently, the SDK Wizard determines whether an operating system configuration was built by the Sysgen tool by verifying that the set of anchored Catalog items and unanchored Catalog items is specified in the SysgenSettings.out file. The SysgenSettings.out file is generated by the operating system build system. The SysgenSettings.out file contains the final resolved set of Sysgen variables. However, sometimes, the operating system build system may legitimately remove an anchored Catalog item during the Sysgen resolution phase.

For example, the operating system design may contain the &quot;English (US) National Language Support only&quot; Catalog item (SYSGEN_LOCUSA) as an anchored Catalog item. However, the operating system build system unsets and removes this Catalog item if you target a non-English locale. In this example, the SDK Wizard detects that the SysgenSettings.out file is missing at least one of the anchored Catalog items. The SDK Wizard treats the operating system configuration as having to be built.



WORKAROUND
To work around this problem, first verify that you have successfully built the operating system at least one time and that you have not modified the operating system design since the last successful build. Then, follow these steps:  In Platform Builder 5.0, select the operating system configuration that you successfully built. To open a build window, click Open Release Directory on the Build OS menu. In the build window, type the following command:

dir %_PROJECTROOT%\SysgenSettings.out

This file confirms that you tried to build the operating system at least one time. In the same build window, type the following command:

set sysgen>anchored.txt

This file contains the set of anchored Catalog items in the operating system design. This file is located in the release directory. Compare the SysgenSettings.out file to the Anchored.txt file. Determine the set of Sysgen variables that are found in the Anchored.txt file that are not found in the SysgenSettings.out file. This set of Sysgen variables will be the set of Catalog items that you have to explicitly unanchor.</li> On the View menu in Platform Builder 5.0, click Workspace.</li> In the Workspace window, click the OSDesignView tab.</li> For each Sysgen variable that you found in step 6, explicitly unanchor the Catalog item. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> On the OSDesignView tab, find the Catalog item.

Note If you need help finding the Catalog item on the OSDesignView tab, follow these steps: <ol> On the View menu in Platform Builder 5.0, click Catalog.</li> Right-click in the Catalog, and then click Find.</li> In the Find what box, type the Sysgen variable name. For example, in the Find what box, type SYSGEN_LOCUSA .</li> Click Find Next. The folder in which you find the Catalog item is the same folder that is used on the OSDesignView tab.</li></ol> </li> Right-click the Catalog item, and then click Remove Item from User-specified Catalog Item(s).

Note The Catalog item displays an unanchored symbol when the Catalog item is unanchored. An unanchored symbol is a green cylinder.</li></ol> </li> On the Platform menu in Platform Builder 5.0, click SDK, and then click Configure SDK. The SDK Wizard starts.</li> Click the CPU tab, and then click to select the check boxes for the CPU families that the SDK will support. Verify that you selected the operating system configuration that you already successfully built.</li> On the Platform menu in Platform Builder 5.0, click SDK, and then click Build SDK.</li></ol>

If the problem still occurs, verify that you successfully built all the operating system configurations that the SDK Wizard identified in the build log.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Keywords: kbprb KB906459

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.