Skip to main content

cldc start debug build error occurs

13 replies [Last post]
geelpheels
Offline
Joined: 2006-05-05

cldc start building debug, error reported:

==============================
starting DEBUG build
==============================
make[1]: Entering directory `D:/PHONEM~2/PHONEM~2/build_output/cldc/wince_arm/ta
rget/debug'
generating ../generated/Dependencies ...
reading database: D:/PHONEM~2/PHONEM~2/cldc/src/vm/includeDB
writing individual include files ... done (214 files.)
writing grand include file

writing dependencies file

make[1]: Leaving directory `D:/PHONEM~2/PHONEM~2/build_output/cldc/wince_arm/tar
get/debug'
make[1]: Entering directory `D:/PHONEM~2/PHONEM~2/build_output/cldc/wince_arm/ta
rget/debug'
mkdir -p ../bin
generating ../generated/NativesTable.cpp ...
Generating _build_pch_visCPP.obj ...
D:/MICROS~1.0/EVC/wce420/bin/clarm.exe /Zi /Od /Zm200 -I../generated -ID:/PHONEM
~2/PHONEM~2/cldc/src/vm/share/compiler -ID:/PHONEM~2/PHONEM~2/cldc/src/vm/share/
debugger -ID:/PHONEM~2/PHONEM~2/cldc/src/vm/share/handles -ID:/PHONEM~2/PHONEM~2
/cldc/src/vm/share/memory -ID:/PHONEM~2/PHONEM~2/cldc/src/vm/share/interpreter -
ID:/PHONEM~2/PHONEM~2/cldc/src/vm/share/isolate -ID:/PHONEM~2/PHONEM~2/cldc/src/
vm/share/natives -ID:/PHONEM~2/PHONEM~2/cldc/src/vm/share/reflection -ID:/PHONEM
~2/PHONEM~2/cldc/src/vm/share/runtime -ID:/PHONEM~2/PHONEM~2/cldc/src/vm/share/u
tilities -ID:/PHONEM~2/PHONEM~2/cldc/src/vm/share/ROM -ID:/PHONEM~2/PHONEM~2/cld
c/src/vm/share/verifier -ID:/PHONEM~2/PHONEM~2/cldc/src/vm/share/float -ID:/PHON
EM~2/PHONEM~2/cldc/src/vm/os/utilities -ID:/PHONEM~2/PHONEM~2/cldc/src/vm/share/
memoryprofiler -ID:/PHONEM~2/PHONEM~2/cldc/src/vm/os/wince -ID:/PHONEM~2/PHONEM~
2/cldc/src/midp -ID:/PHONEM~2/PHONEM~2/cldc/src/vm/cpu/arm -ID:/PHONEM~2/PHONEM~
2/cldc/src/vm/cpu/c -ID:/PHONEM~2/PHONEM~2/cldc/src/vm/cpu/i386 -ID:/PHONEM~2/PH
ONEM~2/cldc/src/vm/cpu/sh -ID:/PHONEM~2/PHONEM~2/cldc/src/vm/cpu/thumb -ID:/PHON
EM~2/PHONEM~2/cldc/src/vm/cpu/thumb2 -ID:/PHONEM~2/PHONEM~2/cldc/src/anilib/shar
e -ID:/PHONEM~2/PHONEM~2/cldc/src/anilib/wince -ID:/PHONEM~2/PHONEM~2/cldc/src/t
ools/ads_extender -DARM -ID:/WINDOW~1/wce420/POCKET~1/Include/Armv4 /D _DEBUG /D
AZZERT /D DEBUG /X /ID:/WINDOW~1/wce420/POCKET~1/Include/Armv4 -DREQUIRES_JVMCO
NFIG_H=1 /W3 -D_WIN32_WCE=400 -DARM -D_ARM -D_ARM_ -DUNDER_CE=400 -DUNICODE -D_U
NICODE /nologo -DHARDWARE_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 /Zm200 /Fpcldchi.pch /Ycincls/_precompi
led.incl /c ../generated/_build_pch_visCPP.cpp

make[1]: *** [_build_pch_visCPP.obj] Error 5
make[1]: Leaving directory `D:/PHONEM~2/PHONEM~2/build_output/cldc/wince_arm/tar
get/debug'
make: *** [_debug] Error 2
make: Leaving directory `D:/PHONEM~2/PHONEM~2/cldc/build/wince_arm'
D:\phoneme_feature_mr3\phoneme_feature_wince_arm_evc\cldc\build\wince_arm>

the Italic paragraph displayed command which is made by adding an echo command into the makefile.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
geelpheels
Offline
Joined: 2006-05-05

OK.
Now I found the cause. There is something wrong with the directory of make.
I have to make some changes of the jvm.make.
For example:
$(BUILD_PCH): $(Precompiled_Headers)
$(A)echo Generating $@ ...
$(A)echo '#include "incls/_precompiled.incl"' > \
$(GEN_DIR)/_build_pch_visCPP.cpp
$(A)$(CPP) $(CPP_OPT_FLAGS) $(CPP_FLAGS) /Fp"cldchi.pch" \
/Yc"incls/_precompiled.incl" /c $(GEN_DIR)/_build_pch_visCPP.cpp
$(A)echo ' done'
has been changed to:
$(BUILD_PCH): $(Precompiled_Headers)
$(A)echo Generating $@ ...
$(A)echo '#include "incls/_precompiled.incl"' > \
$(GEN_DIR)/_build_pch_visCPP.cpp
$(A)[b]cd $(THIS_DIR);[/b]$(CPP) $(CPP_OPT_FLAGS) $(CPP_FLAGS) /Fp"cldchi.pch" \
/Yc"incls/_precompiled.incl" /c $(GEN_DIR)/_build_pch_visCPP.cpp
$(A)echo ' done'

Then it works.Others have to be made with the same change.
But it is so troublesome. Is there a way to avoid so many changes by just set some configuration or modify just one place?

geelpheels
Offline
Joined: 2006-05-05

Now it reports the following error:

==============================
starting DEBUG build
==============================
make[1]: Entering directory `F:/p/f/build_output/cldc/wince_arm/target/debug'
make[1]: Nothing to be done for `dependencies'.
make[1]: Leaving directory `F:/p/f/build_output/cldc/wince_arm/target/debug'
make[1]: Entering directory `F:/p/f/build_output/cldc/wince_arm/target/debug'
Generating _build_pch_visCPP.obj ...
_build_pch_visCPP.cpp
f:\p\f\cldc\src\vm\share\natives\kni.h(72) : fatal error C1081: '../generated -I
F:/p/f/cldc/src/vm/share/compiler -IF:/p/f/cldc/src/vm/share/debugger -IF:/p/f/c
ldc/src/vm/share/handles -IF:/p/f/cldc/src/vm/share/memory -IF:/p/f/cldc/src/vm/
share/interpreter -IF:/p/f/cldc/src/vm/share/isolate -IF:/p/f/cldc/src/vm/share/
natives -IF:/p/f/cldc/src/vm/share/reflection -IF:/p/f/cldc/src/vm/share/runtime
-IF:/p/f/cldc/src/vm/share/utilities -IF:/p/f/cldc/src/vm/share/ROM -IF:/p/f/cl
dc/src/vm/share/verifier -IF:/p/f/cldc/src/vm/share/float -IF:/p/f/cldc/src/vm/o
s/utilities -IF:/': file name exceeds 512 bytes in length
make[1]: *** [_build_pch_visCPP.obj] Error 2
make[1]: Leaving directory `F:/p/f/build_output/cldc/wince_arm/target/debug'
make: *** [_debug] Error 2
make: Leaving directory `F:/p/f/cldc/build/wince_arm'

What's up?

davyp
Offline
Joined: 2007-01-03

I think you have some quotes where they shouldn't be. The whole '../generated -I ...
-IF:/p/f/cldc/src/vm/os/utilities -IF:/' is being interpreted as a filename instead of compiler
options.

Davy

geelpheels
Offline
Joined: 2006-05-05

Hi, Davy! There is no error in the output. Do you have any special configuration of your enviroment? Such as the buffer size of command window, maximum length of clarm parameters and the like. Thanks a lot!

geelpheels
Offline
Joined: 2006-05-05

Since the compilation has succeeded, mark this problem as answered. But if you know the answer to the last message. Please advise.

george_ustc
Offline
Joined: 2008-08-26

My way to resolve the problem is to delete quotes. for example change /Fp"incl..." as /Fpincl.... I guess the problem is caused by shell used by make.

davyp
Offline
Joined: 2007-01-03

I don't see anything wrong in your log file. This is what I have when compiling CLDC with
USE_VERBOSE_MAKE=true VERBOSE_BUILD=true:

c:/cyg4me/bin/make.exe -C c:/out/cldc/wince_arm/target/debug
make.exe[1]: Entering directory `c:/out/cldc/wince_arm/target/debug'
mkdir -p ../bin
echo generating ../generated/NativesTable.cpp ...
generating ../generated/NativesTable.cpp ...
c:/j2sdk1.4.2_18/bin/java -jar c:/out/cldc/wince_arm/tools/jcc.jar \
-writer CLDC_HI_Natives -o ../generated/NativesTable.cpp c:/out/cldc/classes.zip
echo Generating _build_pch_visCPP.obj ...
Generating _build_pch_visCPP.obj ...
echo '#include "incls/_precompiled.incl"' > \
../generated/_build_pch_visCPP.cpp
/cygdrive/c/PROGRA~1/MICROS~1.0/EVC/wce420/bin/clarm.exe /Zi /Od /Zm200
-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_feature/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:/phoneme_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/cldc/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_extender"
-DARM /D "_DEBUG" /D "AZZERT" /D "DEBUG" /X
/I"C:/PROGRA~1/WIEB7A~1/wce420/POCKET~1/include/armv4"
-DREQUIRES_JVMCONFIG_H=1 /W3 -D_WIN32_WCE=400 -DARM -D_ARM -D_ARM_
-DUNDER_CE=400 -DUNICODE -D_UNICODE /nologo -DHARDWARE_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 /Zm200 /Fp"cldchi.pch" \
/Yc"incls/_precompiled.incl" /c ../generated/_build_pch_visCPP.cpp
_build_pch_visCPP.cpp
echo ' done'
done

And then it just continues with compiling the other files. The only difference I see with your log
is that I have the sources on the C drive and not on the D drive.

Davy

geelpheels
Offline
Joined: 2006-05-05

Hi! Davy!
Glad to see you care about my problem again.
I found an interesting thing. If I redirect the italic part to a txt file then copy and paste the content of that file to the jvm.make then run, it works. But if I don't redirect the content just let them be where they are, it doesn't work. What can the error be? Is it about character encoding problem?

geelpheels
Offline
Joined: 2006-05-05

You. Do you remember? You helped chenzhp. You can help me. Give me some advice.

geelpheels
Offline
Joined: 2006-05-05

Please do not just look. Try guess. Any idea.

geelpheels
Offline
Joined: 2006-05-05

About 1 year ago, chenzhp posted this problem. Hasn't it been solved even after one year?

geelpheels
Offline
Joined: 2006-05-05

I knew chenzhp met the same problem on last Sept but unsolved. Perhaps who helped him can help me.

geelpheels
Offline
Joined: 2006-05-05

It's a common error. Surely many people encountered it.