Skip to main content

Error while building cldc for wince

3 replies [Last post]
dmazzella
Offline
Joined: 2007-12-28

hi all,
i have a problem while building cldc for wince for arm, use VS2005 on windows xp host, cyg4me and j2sdk1.4.2_16.
I have used the diff files provided by devyp, i have compiled pcsl without errors but when i want to compile cldc.

___________________________________________________________________

call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"

set MEHOME=C:/phoneme_feature
set BUILD_OUTPUT_DIR=C:/phoneme_feature/build_output
set CYG4ME=c:\cyg4me
set JDK_DIR=C:/j2sdk1.4.2_16

set JAVACALL_DIR=%MEHOME%/javacall
set JAVACALL_PROJECT_DIR=%MEHOME%/javacall
set JAVACALL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/javacall

set PCSL_PLATFORM=wince_arm_vc
set PCSL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/pcsl

set JVMWorkSpace=%MEHOME%/cldc
set JVMBuildSpace=%BUILD_OUTPUT_DIR%/cldc
set CLDC_DIST_DIR=%BUILD_OUTPUT_DIR%/cldc/wince_arm/dist

set MIDP_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/midp
set TOOLS_DIR=%MEHOME%/tools

set PATH=%JDK_DIR%/bin;%CYG4ME%\bin;%PATH%
set USE_VS2005=true

set BuildDir=%JVMWorkSpace%/build/wince_arm

make -C %BuildDir% ENABLE_PCSL=true ENABLE_ISOLATES=true
___________________________________________________________________
the error is :

==================================
JVMBuildSpace = C:/phoneme_feature/build_output/cldc
JVMWorkSpace = C:/phoneme_feature/cldc
ROMIZING = true
SHELL = c:/cyg4me/bin/sh.exe
ENABLE_ISOLATES =
ENABLE_MONET =
==================================
==============================
creating build tools...
==============================
make[1]: Entering directory `C:/phoneme_feature/build_output/cldc/wince_arm/tools'
make[1]: Nothing to be done for `default'.
make[1]: Leaving directory `C:/phoneme_feature/build_output/cldc/wince_arm/tools'
done
==============================
creating ASM loop generator in debug mode
build flags: NO_DEBUG_SYMBOLS=true
==============================
make[1]: Entering directory `C:/phoneme_feature/build_output/cldc/wince_arm/loopgen/app'
make[1]: Nothing to be done for `dependencies'.
make[1]: Leaving directory `C:/phoneme_feature/build_output/cldc/wince_arm/loopgen/app'
make[1]: Entering directory `C:/phoneme_feature/build_output/cldc/wince_arm/loopgen/app'
make[1]: Nothing to be done for `default'.
make[1]: Leaving directory `C:/phoneme_feature/build_output/cldc/wince_arm/loopgen/app'
done
==============================
creating ROM generator in debug mode
build flags: NO_DEBUG_SYMBOLS=true
==============================
make[1]: Entering directory `C:/phoneme_feature/build_output/cldc/wince_arm/romgen/app'
make[1]: Nothing to be done for `dependencies'.
make[1]: Leaving directory `C:/phoneme_feature/build_output/cldc/wince_arm/romgen/app'
make[1]: Entering directory `C:/phoneme_feature/build_output/cldc/wince_arm/romgen/app'
make[1]: Nothing to be done for `default'.
make[1]: Leaving directory `C:/phoneme_feature/build_output/cldc/wince_arm/romgen/app'
done
==============================
starting DEBUG build
==============================
make[1]: Entering directory `C:/phoneme_feature/build_output/cldc/wince_arm/target/debug'
make[1]: Nothing to be done for `dependencies'.
make[1]: Leaving directory `C:/phoneme_feature/build_output/cldc/wince_arm/target/debug'
make[1]: Entering directory `C:/phoneme_feature/build_output/cldc/wince_arm/target/debug'
Generating _build_pch_visCPP.obj ...
/cl.exe: not found
make[1]: *** [_build_pch_visCPP.obj] Error 127
make[1]: Leaving directory `C:/phoneme_feature/build_output/cldc/wince_arm/target/debug'
make: *** [_debug] Error 2

C:\phoneme_feature\cldc\build\wince_arm>

Who can help me?
Thanks, Damiano

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
davyp
Offline
Joined: 2007-01-03

I guess the EVC_ARCH_PATH variable is not set (correctly). Somewhere in
the scripts this variable is used to set the path to the compiler, and it
appears that in your case this variable is empty.

> `C:/phoneme_feature/build_output/cldc/wince_arm/target/debug'
> Generating _build_pch_visCPP.obj ...
> /cl.exe: not found

Are you sure you have set all the required variables? The variable is used
in build/share/jvm.make to set the location of the compiler.

CPP := $(EVC_ARCH_PATH)/cl.exe
CC := $(EVC_ARCH_PATH)/cl.exe

And just above in the jvm.make script the content of the EVC_ARCH_PATH
variable is set based on the content of other variables set by the user:

If you use VS2005, the jvm.make script looks for the following variables
EVC_LIB_PATH = $(VS2005_CE_ARM_LIB)
EVC_INCLUDE_PATH= $(VS2005_CE_ARM_INCLUDE)
EVC_ARCH_PATH = $(VS2005_CE_ARM_PATH)

I have set these variables as follows, but you may need to adapt them:

set USE_VS2005=true
set VS2005_ROOT=C:/PROGRA~1/MICROS~2
set VS2005_CE_ARM_LIB=C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i
set VS2005_CE_ARM_INCLUDE=C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/include/armv4i
set VS2005_CE_ARM_PATH=%VS2005_ROOT%/vc/ce/bin/x86_arm
set VS2005_COMMON_PATH=%VS2005_ROOT%/vc/bin

Make sure you use the 8.3 old style names, and replace any long filename
with its corresponding 8.3 abbreviation. If in doubt, use dir /x in a command
prompt to see both the long and abbreviated names of folders.

Davy

dmazzella
Offline
Joined: 2007-12-28

Thanks Devy, now the path is correcty setted, but i have this error

echo "=============================="
==============================
echo "starting DEBUG build"
starting DEBUG build
echo "=============================="
==============================
make -C C:/phoneme_feature/build_output/cldc/wince_arm/target/debug dependencies
make[1]: Entering directory `C:/phoneme_feature/build_output/cldc/wince_arm/target/debug'
make[1]: Nothing to be done for `dependencies'.
make[1]: Leaving directory `C:/phoneme_feature/build_output/cldc/wince_arm/target/debug'
make -C C:/phoneme_feature/build_output/cldc/wince_arm/target/debug
make[1]: Entering directory `C:/phoneme_feature/build_output/cldc/wince_arm/target/debug'
echo Generating _build_pch_visCPP.obj ...
Generating _build_pch_visCPP.obj ...
echo '#include "incls/_precompiled.incl"' > \
../generated/_build_pch_visCPP.cpp
C:/PROGRA~1/MICROS~4/vc/ce/bin/x86_arm/cl.exe /Zi /Od -I"../generated" -I"C:/phoneme_feature/cldc/src/vm/share/compiler" -I"C:/phoneme_feature/
cldc/src/vm/share/debugger" -I"C:/phoneme_feature/cldc/src/vm/share/handles" -I"C:/phoneme_feature/cldc/src/vm/share/memory" -I"C:/phoneme_featu
re/cldc/src/vm/share/interpreter" -I"C:/phoneme_feature/cldc/src/vm/share/isolate" -I"C:/phoneme_feature/cldc/src/vm/share/natives" -I"C:/phonem
e_feature/cldc/src/vm/share/reflection" -I"C:/phoneme_feature/cldc/src/vm/share/runtime" -I"C:/phoneme_feature/cldc/src/vm/share/utilities" -I"C
:/phoneme_feature/cldc/src/vm/share/ROM" -I"C:/phoneme_feature/cldc/src/vm/share/verifier" -I"C:/phoneme_feature/cldc/src/vm/share/float" -I"C:/
phoneme_feature/cldc/src/vm/os/utilities" -I"C:/phoneme_feature/cldc/src/vm/share/memoryprofiler" -I"C:/phoneme_feature/cldc/src/vm/os/wince" -I
"C:/phoneme_feature/cldc/src/midp" -I"C:/phoneme_feature/cldc/src/vm/cpu/arm" -I"C:/phoneme_feature/cldc/src/vm/cpu/c" -I"C:/phoneme_feature/cld
c/src/vm/cpu/i386" -I"C:/phoneme_feature/cldc/src/vm/cpu/sh" -I"C:/phoneme_feature/cldc/src/vm/cpu/thumb" -I"C:/phoneme_feature/cldc/src/vm/cpu/
thumb2" -I"C:/phoneme_feature/cldc/src/anilib/share" -I"C:/phoneme_feature/cldc/src/anilib/wince" -I"C:/phoneme_feature/cldc/src/tools/ads_exten
der" -I"C:/phoneme_feature/build_output/pcsl/wince_arm/inc" -DARM /D "_DEBUG" /D "AZZERT" /D "DEBUG" /X /I"C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.
0PO/include/armv4i" -DREQUIRES_JVMCONFIG_H=1 /W3 -D_WIN32_WCE=0x501 -DARM -D_ARM -D_ARM_ -DUNDER_CE=0x501 -DUNICODE -D_UNICODE /nologo -DHARDWA
RE_LITTLE_ENDIAN=1 -DHOST_LITTLE_ENDIAN=1 -DMSW_FIRST_FOR_DOUBLE=1 /D "ROMIZING" -DJVM_RELEASE_VERSION='"1.1"' -DJVM_BUILD_VERSION='"internal"'
-DJVM_NAME='"phoneME Feature VM"' /Zi /Od /Fp"cldchi.pch" \
/Yc"incls/_precompiled.incl" /c ../generated/_build_pch_visCPP.cpp
cl : Command line error D8038 : invalid argument '../generated -IC:/phoneme_feature/cldc/src/vm/share/compiler -IC:/phoneme_feature/cldc/src/vm/
share/debugger -IC:/phoneme_feature/cldc/src/vm/share/handles -IC:/phoneme_feature/cldc/src/vm/share/memory -IC:/phoneme_feature/cldc/src/vm/sha
re/interpreter -IC:/phoneme_feature/cldc/src/vm/share/isolate -IC:/phoneme_feature/cldc/src/vm/share/natives -IC:/phoneme_feature/cldc/src/vm/sh
are/reflection -IC:/phoneme_feature/cldc/src/vm/share/runtime -IC:/phoneme_feature/cldc/src/vm/share/utilities -IC:/phoneme_feature/cldc/src/vm/
share/ROM -IC:/phoneme_feature/cldc/src/vm/share/verifier -IC:/phoneme_feature/cldc/src/vm/share/float -IC:/phoneme_feature/cldc/src/vm/os/utili
ties -IC:/phoneme_feature/cldc/src/vm/share/memoryprofiler -IC:/phoneme_feature/cldc/src/vm/os/wince -IC:/phoneme_feature/cldc/src/midp -IC:/pho
neme_feature/cldc/src/vm/cpu/arm -IC:/phoneme_feature/cldc/src/vm/cpu/c -IC:/phoneme_feature/cldc/src/vm/cpu/i386 -IC:/phoneme_feature/cldc/src/
vm/cpu/sh -IC:/phoneme_feature/cldc/src/vm/cpu/thumb -IC:/phoneme_feature/cldc/src/vm/cpu/thumb2 -IC:/phoneme_feature/cldc/src/anilib/share -IC:
/phoneme_feature/cldc/src/anilib/wince -IC:/phoneme_feature/cldc/src/tools/ads_extender -IC:/phoneme_feature/build_output/pcsl/wince_arm/inc -DA
RM'
make[1]: *** [_build_pch_visCPP.obj] Error 2
make[1]: Leaving directory `C:/phoneme_feature/build_output/cldc/wince_arm/target/debug'
make: *** [_debug] Error 2
make: Leaving directory `C:/phoneme_feature/cldc/build/wince_arm'

C:\phoneme_feature>

geelpheels
Offline
Joined: 2006-05-05

I met the same error. Perhaps it is due to the cl cannot take so many options at the same time. Because when I cut off some /I options it runs through. I hope to find some way that can make cl take any amount of /I options. If you know please tell me.Thanks.