none
Platform Builder in VS 2008 - Build Error RRS feed

  • Question

  • Experiencing an error on VS 2008 with Platform Builder  (Win Compact 7 - March 2013).  The error is get is NMAKE : fatal error U1077: 'C:\Windows/system32\xcopy.EXE'.  This occurs when when I do a simple test project using the wizard and try and build.

    Platform is Win 8 with VS 2008 on  a Virtual Machine.  Temporarily no other option.  VS has SP1 for 2008 installed.  I keep thinking I am doing something very simple wrong but just missing it.

    The build log is below

    Thanks 

    J Henzel

    BuildLogs: BUILDMSG: Starting: BldDemo1.bat  -q
    BuildLogs: BUILDMSG: Logs at "s:\WINCE700\build.*".

    BLDDEMO: BUILDMSG: BldDemo started at 18:13:46.21 on Sun 06/02/2013
    Environment variable SYSGEN  not defined
    Environment variable SYSGEN  not defined
    Environment variable SYSGEN_  not defined

    BLDDEMO: BUILDMSG: Sysgen or _TGT setting's changed. Setting Clean and CleanPlat options

    BLDDEMO: BUILDMSG: Clean option specified
    BLDDEMO: BUILDMSG: CleanPlat option specified

    CLEANOS.BAT: BUILDMSG: Cleaning platform directory s:\WINCE700\OSDesigns\OSDesign2\OSDesign2\Wince700\EBOX3300_x86_Retail\cesysgen\platform\EBOX3300\target
    CLEANOS.BAT: BUILDMSG: Cleaning platform directory s:\WINCE700\OSDesigns\OSDesign2\OSDesign2\Wince700\EBOX3300_x86_Retail\cesysgen\platform\EBOX3300\lib
    CLEANOS.BAT: BUILDMSG: Removing s:\WINCE700\OSDesigns\OSDesign2\OSDesign2\Wince700\EBOX3300_x86_Retail\cesysgen\platform\*.bif
    CLEANOS.BAT: BUILDMSG: Cleaning platform common directory s:\WINCE700\OSDesigns\OSDesign2\OSDesign2\Wince700\EBOX3300_x86_Retail\cesysgen\platcomm\EBOX3300\target
    CLEANOS.BAT: BUILDMSG: Cleaning platform common directory s:\WINCE700\OSDesigns\OSDesign2\OSDesign2\Wince700\EBOX3300_x86_Retail\cesysgen\platcomm\EBOX3300\lib
    CLEANOS.BAT: BUILDMSG: Removing s:\WINCE700\OSDesigns\OSDesign2\OSDesign2\Wince700\EBOX3300_x86_Retail\cesysgen\platcomm\EBOX3300\*.bif
    CLEANOS.BAT: Cleaning Sysgen directory "s:\WINCE700\OSDesigns\OSDesign2\OSDesign2\Wince700\EBOX3300_x86_Retail\cesysgen"
    Environment variable SYSGEN  not defined
    Environment variable SYSGEN  not defined
    Environment variable SYSGEN_  not defined
    CLEANOS.BAT: BUILDMSG: Cleaning platform directory s:\WINCE700\OSDesigns\OSDesign2\OSDesign2\Wince700\EBOX3300_x86_Retail\cesysgen\platform\EBOX3300\target
    CLEANOS.BAT: BUILDMSG: Cleaning platform directory s:\WINCE700\OSDesigns\OSDesign2\OSDesign2\Wince700\EBOX3300_x86_Retail\cesysgen\platform\EBOX3300\lib
    CLEANOS.BAT: BUILDMSG: Removing s:\WINCE700\OSDesigns\OSDesign2\OSDesign2\Wince700\EBOX3300_x86_Retail\cesysgen\platform\*.bif
    CLEANOS.BAT: BUILDMSG: Cleaning platform common directory s:\WINCE700\OSDesigns\OSDesign2\OSDesign2\Wince700\EBOX3300_x86_Retail\cesysgen\platcomm\EBOX3300\target
    CLEANOS.BAT: BUILDMSG: Cleaning platform common directory s:\WINCE700\OSDesigns\OSDesign2\OSDesign2\Wince700\EBOX3300_x86_Retail\cesysgen\platcomm\EBOX3300\lib
    CLEANOS.BAT: BUILDMSG: Removing s:\WINCE700\OSDesigns\OSDesign2\OSDesign2\Wince700\EBOX3300_x86_Retail\cesysgen\platcomm\EBOX3300\*.bif
    BLDDEMO: BUILDMSG: Generating OS Design Folders
    BLDDEMO: BUILDMSG: Done Generating OS Design Folders
    BLDDEMO: BUILDMSG: Generating OS Design Files to s:\WINCE700\OSDesigns\OSDesign2\OSDesign2\Wince700\EBOX3300_x86_Retail\oak
    BLDDEMO: BUILDMSG: Done Generating OS Design Files
    CEBUILD: BUILDMSG: Skipping directly to SYSGEN phase
    CEBUILD: BUILDMSG: Building dep trees: winceos dcom gdiex ie7 servers shellsdk cellcore netcfv35 sqlcompact ossvcs shell wceshellfe wceappsfe directx msf rdp shellw datasync mediaapps ostest apps CEBASE
    CEBUILD: BUILDMSG: Running sysgen  preproc (for COMMON)
    SYSGEN: BUILDMSG: Starting sysgen phase for project ( common )


    User selected the following SYSGEN variables
    Environment variable SYSGEN not defined


    Checking for uncleared variables
    Done checking for uncleared variables

    Report:
    Environment variable SYSGEN not defined
    Environment variable SYSGEN  not defined
    CE_MODULES=coredll kcoredll nk nkloader oem oalioctl
    _COREDLL_COMPONENTS=showerr corecrt corestrw snotify coregwestub corebuildinfo coreversionstd coreimmstub multiui locmini nostrsafe delayedbootworknoapi
    COREDLL_COMPONENTS=coremain thunks corepolicystub showerr corecrt corestrw snotify coregwestub corebuildinfo coreversionstd coreimmstub multiui locmini nostrsafe delayedbootworknoapi
    KCOREDLL_COMPONENTS=kcoremain kthunks corepolicystub showerr corecrt corestrw snotify coregwestub corebuildinfo coreversionstd coreimmstub multiui locmini nostrsafe delayedbootworknoapi
    NK_COMPONENTS= nknocomp nknotzinit nknomapfile nknomsgq oemstub nklogger
    OEM_COMPONENTS=nkstub oemmain oemmain_statickitl
    CELLCORE_MODULES= toolbox
    OSSVCS_MODULES=  
    APPS_MODULES= 
    SYSGEN: BUILDMSG: Found localized resources for Languages ( 0404 0407 0409 040c 0410 0411 0412 0413 0416 0419 041d 0804 0c0a)

    Microsoft (R) Program Maintenance Utility Version 9.00.30729.199
    Copyright (C) Microsoft Corporation.  All rights reserved.

    makefile.def: Invoked with predefined settings:
    TARGETNAME: dummy
    TARGETTYPE: dummy
    RELEASETYPE: 
    TARGETLIBS: 
    SOURCELIBS: 
    makefile.def: Including s:\WINCE700\public\common\oak\misc\Sources.default
    makefile.def: BUILDROOT is s:\WINCE700\public\common\cesysgen
    makefile.def: Including s:\WINCE700\public\common\cesysgen\sources
    makefile.def: Including s:\WINCE700\public\common\oak\misc\Sources.framework.default
    makefile.def: Including s:\WINCE700\public\common\oak\misc\Sources.CE
    Directory: s:\WINCE700\public\common\cesysgen
    TARGETNAME: dummy
    RELEASETYPE is not defined.  Using DEFAULT.
    makefile.def: Including s:\WINCE700\public\common\oak\misc\sources.ReleaseType_DEFAULT
    Creating appropriate directories and deleting COMMON.LOC
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    Invalid parameter - /system32\xcopy.EXE
    mkdir s:\WINCE700\public\common\oak\lib\x86\retail\0409 > nul 2>&1
    Copying resources to s:\WINCE700\public\common\oak\lib\x86\retail\oak\lib\x86\retail\0409
    xcopy /D /Q s:\WINCE700\public\common\oak\lib\x86\retail\*.res s:\WINCE700\public\common\oak\lib\x86\retail\0409
    Invalid parameter - /system32\xcopy.EXE
    NMAKE : fatal error U1077: 'C:\Windows/system32\xcopy.EXE' : return code '0x4'
    Stop.
    SYSGEN: ERROR: error(s) in sysgen phase ( common )
    Environment variable SYSGEN_  not defined
    CEBUILD: BUILDMSG: There were errors building. Check s:\WINCE700\build.err

    BLDDEMO: ERROR: There were errors building CEBASE.

    BLDDEMO: BUILDMSG: BldDemo ended at 18:13:58.96 on Sun 06/02/2013 (exit code 1)
    BuildLogs: BUILDMSG: Exiting: BldDemo1.bat  -q (result code 1).
    BuildLogs: BUILDMSG: s:\WINCE700\build.log
    BuildLogs: BUILDMSG: s:\WINCE700\build.out
    BuildLogs: BUILDMSG: s:\WINCE700\build.err

    • Moved by Elegentin Xie Tuesday, June 4, 2013 5:32 AM from Visual C++, to a more appropriate forum
    Monday, June 3, 2013 1:16 AM

All replies

  • Thanks. Thought of that. Even did a reinstall to doublecheck. No luck. Same result with a fresh unstall
    Tuesday, June 4, 2013 4:15 AM
  • Hi,

    I will move the thread to  Windows Embedded Compact Platform Development .

    Have a nice day.

    Regards,


    Elegentin Xie
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, June 4, 2013 5:31 AM
  • It looks like a problem with forward slashes and backslashes.

    You've got this in the output

    Invalid parameter - /system32\xcopy.EXE

    followed by

    NMAKE : fatal error U1077: 'C:\Windows/system32\xcopy.EXE' : return code '0x4'

    so check the sources file(s) and your default makefile.   See how there is a folrward slash just before "system32"??

    Tuesday, June 4, 2013 3:42 PM
  • @Precipice Development

    In your message, you said "This occurs when when I do a simple test project using the wizard and try and build."

    Did you create a "simple OS design project"?

    The information in the log file you post indicate you are using the EBOX3300 BSP.  OS design project created with this BSP should be able to complete the build without error.

    It looks like there are some issues with your build environment.

    Using the EBOX3300 BSP to create an OS design project for testing, here is the beginning part of the build log file from my workstation:

    ----------------------------------------------------------------------------

    Wince x86 CEBASE EBOX3300 Development Environment for Samphung

    "C:\Windows\system32\cmd.exe" /d /c "blddemo -q"

    BuildLogs: BUILDMSG: Saving last successful log as "C:\WINCE700\build.lkg.log".

    BuildLogs: BUILDMSG: Starting: BldDemo1.bat  -q

    BuildLogs: BUILDMSG: Logs at "C:\WINCE700\build.*".

    BLDDEMO: BUILDMSG: BldDemo started at 23:18:52.68 on Tue 06/04/2013

    BLDDEMO: BUILDMSG: Sysgen or _TGT setting's changed. Setting Clean and CleanPlat options

    BLDDEMO: BUILDMSG: Clean option specified

    BLDDEMO: BUILDMSG: CleanPlat option specified

    CLEANOS.BAT: BUILDMSG: Cleaning platform directory C:\WINCE700\OSDesigns\OSDesign1\OSDesign1\Wince700\EBOX3300_x86_Retail\cesysgen\platform\EBOX3300\target

    CLEANOS.BAT: BUILDMSG: Cleaning platform directory C:\WINCE700\OSDesigns\OSDesign1\OSDesign1\Wince700\EBOX3300_x86_Retail\cesysgen\platform\EBOX3300\lib

    CLEANOS.BAT: BUILDMSG: Removing C:\WINCE700\OSDesigns\OSDesign1\OSDesign1\Wince700\EBOX3300_x86_Retail\cesysgen\platform\*.bif

    CLEANOS.BAT: BUILDMSG: Cleaning platform common directory C:\WINCE700\OSDesigns\OSDesign1\OSDesign1\Wince700\EBOX3300_x86_Retail\cesysgen\platcomm\EBOX3300\target

    CLEANOS.BAT: BUILDMSG: Cleaning platform common directory C:\WINCE700\OSDesigns\OSDesign1\OSDesign1\Wince700\EBOX3300_x86_Retail\cesysgen\platcomm\EBOX3300\lib

    CLEANOS.BAT: BUILDMSG: Removing C:\WINCE700\OSDesigns\OSDesign1\OSDesign1\Wince700\EBOX3300_x86_Retail\cesysgen\platcomm\EBOX3300\*.bif

    CLEANOS.BAT: BUILDMSG: Cleaning platform directory C:\WINCE700\OSDesigns\OSDesign1\OSDesign1\Wince700\EBOX3300_x86_Retail\cesysgen\platform\EBOX3300\target

    CLEANOS.BAT: BUILDMSG: Cleaning platform directory C:\WINCE700\OSDesigns\OSDesign1\OSDesign1\Wince700\EBOX3300_x86_Retail\cesysgen\platform\EBOX3300\lib

    CLEANOS.BAT: BUILDMSG: Removing C:\WINCE700\OSDesigns\OSDesign1\OSDesign1\Wince700\EBOX3300_x86_Retail\cesysgen\platform\*.bif

    CLEANOS.BAT: BUILDMSG: Cleaning platform common directory C:\WINCE700\OSDesigns\OSDesign1\OSDesign1\Wince700\EBOX3300_x86_Retail\cesysgen\platcomm\EBOX3300\target

    CLEANOS.BAT: BUILDMSG: Cleaning platform common directory C:\WINCE700\OSDesigns\OSDesign1\OSDesign1\Wince700\EBOX3300_x86_Retail\cesysgen\platcomm\EBOX3300\lib

    CLEANOS.BAT: BUILDMSG: Removing C:\WINCE700\OSDesigns\OSDesign1\OSDesign1\Wince700\EBOX3300_x86_Retail\cesysgen\platcomm\EBOX3300\*.bif

    BLDDEMO: BUILDMSG: Generating OS Design Folders

    BLDDEMO: BUILDMSG: Done Generating OS Design Folders

    ----------------------------------------------------------------------------

    Is this a fresh install of Compact 7?

    Have you successfully completed the build process and generate an OS run-time image previously?


    Samuel Phung [eMVP] Blog: http://www.embedded101.com/samuelp101/ Twitter: @Samuelp101

    Wednesday, June 5, 2013 6:53 AM
  • Unfortunately I have not on this machine.  This is a fresh install of Compact 7.  Also a fresh install of VS 2008 and SP1 for 2008.  Everything is running on Win 8.  The only strange thing I remember is when installing VS 2008 on Win 8 I got a message that it was not compatible with Win 8.  It let me go ahead and install anyway and SP 1 did not complain.  I have seen others on various forums mention that they had VS 2008 running on Win 8.  It may be reaching but.....

    Just as a test, I decided to see if I could make a simple Win32 console app and a Win32 GUI project.  In both cases when I try and build I get an error:

    fatal error C1033: cannot open program database ''

    More and more it looks like something got seriously out of whack on here - even after doing an uninstall

    PS -- the start of my log looks like what you posted

    Thursday, June 6, 2013 5:49 AM
  • Just as a follow-up.  I fired up an instance of Windows XP and did a fresh install of VS 2008, SP1 and Compact 7.  Exactly the same disks.  Was able to build without issues.  Not sure what is up with the Win 8 version or how to make it behave
    Thursday, June 6, 2013 11:34 PM