Skip to main content

Problems building midp for Windows Mobile 5

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

After seeming to get the foundation profile to compile for win32-arm-wm5, my MIDP build is failing. I've followed the wiki and tried a few variants, but I'm mainly a java guy unfamiliar with C ;-)
Some information below, though I noticed that in the foundation profile build that a number of warnings produce an "Assembler Terminated" message which sounds fatal, but may be innocent... not sure.

Any advice much appreciated!

Microsoft (R) ARM Macro Assembler Version 14.00.50725
Copyright (C) Microsoft Corporation. All rights reserved.

C:\phoneme_advanced_mr2\cdc\build\win32-arm-wm5\ccmcodecachecopy_arch.i(9695) warning : A0274: SWP and SWPB have been deprecated and will be removed from a future version of the ARM architecture
swp a1, a1, [ip]
C:\phoneme_advanced_mr2\cdc\build\win32-arm-wm5\ccmcodecachecopy_arch.i(9886) warning : A0274: SWP and SWPB have been deprecated and will be removed from a future version of the ARM architecture
swp a1, a1, [a4]
C:\phoneme_advanced_mr2\cdc\build\win32-arm-wm5\ccmcodecachecopy_arch.i(10098) warning : A0274: SWP and SWPB have been deprecated and will be removed from a future version of the ARM architecture
swp a1, a1, [a4]
Assembly terminated, errors: 0, warnings: 3
as ../../src/win32-arm/javavm/runtime/atomic.S

Anyway, my build details are as below::

Here's my build output:

#!/bin/bash

export TOP_DIR="/phoneme_advanced_mr2"
make \
J2ME_CLASSLIB=foundation \
CVM_JIT=true \
CVM_DEBUG=true \
CVM_PRELOAD_LIB=true \
PCSL_DIR=$TOP_DIR/pcsl \
TOOLS_DIR=$TOP_DIR/tools \
USE_JPEG=true \
JPEG_DIR=$TOP_DIR/jpeg \
USE_MIDP=true \
MIDP_DIR=$TOP_DIR/midp

and here is the failure...
MAKEFLAGS = MIDP_DIR=/phoneme_advanced_mr2/midp USE_MIDP=true JPEG_DIR=/phoneme_advanced_mr2/jpeg USE_JPEG=true TOOLS_DIR=/phoneme_advanced_mr2/tools PCSL_DIR=/phoneme_advanced_mr2/pcsl CVM_PRELOAD_LIB=true CVM_DEBUG=true CVM_JIT=true J2ME_CLASSLIB=foundation
CVM_HOST = i686-cygwin-win32
CVM_TARGET = win32-arm-wm5
SHELL = bash
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = c:/j2sdk1.4.2_16/bin/java
CVM_JAVAC = c:/j2sdk1.4.2_16/bin/javac
CVM_JAVAH = c:/j2sdk1.4.2_16/bin/javah
CVM_JAR = c:/j2sdk1.4.2_16/bin/jar
TARGET_CC = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x86_arm/CL.EXE
TARGET_CCC = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x86_arm/CL.EXE
TARGET_AS = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x86_arm/ARMASM.EXE
TARGET_LD = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x86_arm/LINK.EXE
TARGET_AR = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x86_arm/LINK.EXE
TARGET_RANLIB = /usr/bin/ranlib
LINKFLAGS = /implib:./bin/cvmi.lib /nologo /map /dll /incremental:yes /debug /subsystem:windowsce,5.01 /base:0x00100000 /entry:_DllMainCRTStartup /export:jio_snprintf /export:CVMexpandStack /export:CVMtimeMillis /export:CVMIDprivate_allocateLocalRootUnsafe /export:CVMglobals /export:CVMsystemPanic /export:CVMcsRendezvous /export:CVMconsolePrintf /export:CVMassertHook /export:CVMdumpStack
LINKLIBS = commctrl.lib coredll.lib corelibc.lib ddraw.lib wininet.lib winsock.lib /LIBPATH:/cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/lib/armv4i /LIBPATH:/cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/atlmfc/lib/armv4i /libpath:C:/phoneme_advanced_mr2/cdc/build/win32-arm-wm5/midp/pcsl_fb/wince_arm/lib /nodefaultlib:libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.lib /nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib /nodefaultlib:oldnames.lib libpcsl_file.lib libpcsl_memory.lib libpcsl_print.lib libpcsl_string.lib libpcsl_network.lib Ws2.lib gx.lib aygshell.lib
ASM_FLAGS = -CPU StrongARM1 -32 -NOTerse -WIdth 132 -list .lst .i
CCCFLAGS =
CCFLAGS_SPEED = /nologo /c /W2 /GS- /Zi /Od -D_DEBUG -DDEBUG
CCFLAGS_SPACE = /nologo /c /W2 /GS- /Zi /Od -D_DEBUG -DDEBUG
CCFLAGS_LOOP = /nologo /c /W2 /GS- /Zi /Od -D_DEBUG -DDEBUG
CCFLAGS_FDLIB = /nologo /c /W2 /GS- /Zi -D_DEBUG -DDEBUG /Od
JAVAC_OPTIONS = -g -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -target 1.4
CVM_DEFINES = -DCVM_DEBUG -DCVM_INSPECTOR -DCVM_DEBUG_CLASSINFO -DCVM_DEBUG_STACKTRACES -DCVM_DEBUG_DUMPSTACK -DCVM_DEBUG_ASSERTS -DCVM_CLASSLOADING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_DUAL_STACK -DCVM_JIT_REGISTER_LOCALS -DCVM_TIMESTAMPING -DCVM_TRACE -DCVM_TRACE_JIT -DCVM_PRELOAD_LIB -DCVM_STATICLINK_LIBS -DJ2ME_CLASSLIB=foundation -DTARGET_CPU_FAMILY=arm -DCVM_TRACE_ENABLED -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -DHAVE_64_BIT_IO -DARM -D_ARM -D__RVCT__ -DWINCE -DWIN32_LEAN_AND_MEAN -DWIN32_PLATFORM_PSPC -DUNICODE -D_UNICODE -DUNDER_CE=500 -D_WIN32_WCE=500 -D_ARM_ -DEDB -DPOCKETPC
host uname = CYGWIN_NT-5.1 dsto-702de55d7a 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin
TARGET_CC version = Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50725 for ARM
HOST_CC version = 3.4.4 i686-pc-cygwin
CVM_JAVA version = java version 1.4.2_16
TOOLS_DIR = /phoneme_advanced_mr2/tools
SDK_DIR = C:/Program Files/Windows CE Tools
VC_PATH = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC
PLATFORM_SDK_DIR = C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK
PLATFORM_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x86_arm
COMMON_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft Visual Studio 8/Common7/Tools/Bin
MIDP_DIR = /phoneme_advanced_mr2/midp
PCSL_DIR = /phoneme_advanced_mr2/pcsl
updating ../../build/win32-arm-wm5/./generated/build_defs.mk ...
====> start pcsl build
generating config file...
building all modules...
cd /phoneme_advanced_mr2/pcsl/types; make all
cd /phoneme_advanced_mr2/pcsl/print; make all
building print module...
cd /phoneme_advanced_mr2/pcsl/file; make all
cd /phoneme_advanced_mr2/pcsl/string; make all
cd /phoneme_advanced_mr2/pcsl/types; make all
building string util...
cd /phoneme_advanced_mr2/pcsl/types; make all
/bin/sh: /clarm.exe: No such file or directory
make[6]: *** [/phoneme_advanced_mr2/cdc/build/win32-arm-wm5/midp/pcsl_fb/wince_arm/obj/utf.o] Error 127
make[5]: *** [all] Error 2
make[4]: *** [string] Error 2
make[3]: *** [file] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [initbuild_profile] Error 2

Reply viewing options

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

The swp warnings are harmless, and are fixed in the latest release on the subversion trunk. I'm not sure about the pcsl build failure, except to say that you haven't specified your tools in a way that allows pcsl to find clarm.exe. I think maybe USE_VS2005=true may fix this, but if so then this should already be in the build instructions. A lot of this build stuff has been cleaned up since the last mr2 release, so you might just want to strart working with the subversion trunk (or a release tag) rather than downloading.

Chris

smagrath
Offline
Joined: 2007-12-12

Thanks guys for the very quick response.

The build is fine now - yes, SVN from the trunk was the fix.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> After seeming to get the foundation profile to compile for win32-arm-wm5, my MIDP build is failing. I've followed the wiki and tried a few variants, but I'm mainly a java guy unfamiliar with C ;-)
> Some information below, though I noticed that in the foundation profile build that a number of warnings produce an "Assembler Terminated" message which sounds fatal, but may be innocent... not sure.
>
> Any advice much appreciated!
>
>

Are you building from the trunk or the pMEA MR2 dev b34 bundle? You
should be building from the trunk by doing "svn checkout" or "svn
update" of all the necessary components to make sure they are the most
up-to-date files from the repository.

The pMEA MR2 dev b34 download bundle needs a special build script with
environment shell variables set that are much more complicated and
involved than the current simplified build script you are using now.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net