Skip to main content

CDC + N800

24 replies [Last post]
mfabiop
Offline
Joined: 2005-03-06
Points: 0

Hi All,

I'm trying to compile CDC to N800 (Linux/ARM) "linux-arm-generic", but i get the following error at the initial steps. Someone could help me? I've tried the http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms... site.

Checking for build-time classes to compile...
make: *** No rule to make target ../../build/linux-arm-generic/./.btclasses, needed by '/pmea/cdc/trunk/build/linux-arm-generic/btclasses.zip'

Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
efebo_abel
Offline
Joined: 2004-06-11
Points: 0

even making the make clean on the /pmea/cdc/build/linux-arm-generic i got this

#define CVM_PROP_JAVA_SPEC_VENDOR "Sun Microsystems Inc."
#define CVM_PROP_JAVA_CLASS_VERSION "47.0"
#define CVM_PROP_JAVA_VM_NAME "CVM"
#define CVM_PROP_JAVA_VM_VERSION "phoneme_advanced_mr2-b79"
#define CVM_PROP_SUN_MISC_PRODUCT "phoneME Advanced"
#define CVM_PROP_JAVA_VM_INFO "mixed mode"
#define CVM_PROP_JAVA_VM_VENDOR "Sun Microsystems Inc."
#define CVM_PROP_JAVA_VM_SPEC_NAME "Java Virtual Machine Specification"
#define CVM_PROP_JAVA_VM_SPEC_VERSION "1.0"
#define CVM_PROP_JAVA_VM_SPEC_VENDOR "Sun Microsystems Inc."
#define CVM_CLASSLIB_JAR_NAME "foundation.jar"
#define CVM_JARFILES CVM_CLASSLIB_JAR_NAME,

#endif /* _BUILD_DEFS_H */

updating /pmea/cdc/build/linux-arm-generic/./generated/build_defs.mk ...
... mkdir obj
... mkdir /pmea/cdc/build/linux-arm-generic/./bin
... mkdir /pmea/cdc/build/linux-arm-generic/./generated/javavm/runtime/opcodeconsts
... mkdir /pmea/cdc/build/linux-arm-generic/./generated/classes/sun/misc
... mkdir /pmea/cdc/build/linux-arm-generic/./generated/jni
... mkdir /pmea/cdc/build/linux-arm-generic/./generated/cni
... mkdir /pmea/cdc/build/linux-arm-generic/./generated/offsets
... mkdir /pmea/cdc/build/linux-arm-generic/./btclasses
... mkdir /pmea/cdc/build/linux-arm-generic/./testclasses
... mkdir /pmea/cdc/build/linux-arm-generic/./democlasses
... mkdir /pmea/cdc/build/linux-arm-generic/./lib
... mkdir /pmea/cdc/build/linux-arm-generic/./lib/security
... mkdir /pmea/cdc/build/linux-arm-generic/./classes.tools
... mkdir /pmea/cdc/build/linux-arm-generic/./foundation_classes
... mkdir /pmea/cdc/build/linux-arm-generic/./generated/javavm/include/jit
... mkdir /pmea/cdc/build/linux-arm-generic/./jcs
... mkdir /pmea/cdc/build/linux-arm-generic/./generated/classes/java/util
... mkdir /pmea/cdc/build/linux-arm-generic/./classes.jcc
Checking for build-time classes to compile ...
... generating BuildFlags.java
... /pmea/cdc/build/linux-arm-generic/./generated/classes/sun/misc/BuildFlags.java
... generating sun.misc.DefaultLocaleList.java
... /pmea/cdc/build/linux-arm-generic/./generated/classes/sun/misc/DefaultLocaleList.java
... /pmea/tools/output/Configurator.manifest
... building CodeTransformer
... /pmea/tools/output/Configurator.jar
... generating PackageManager.java
Compiling build-time classes...
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
... /pmea/cdc/build/linux-arm-generic/btclasses.zip
Checking for phoneME Advanced classes to compile ...
... generating CurrencyData.java
Compiling phoneME Advanced classes...
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
... /pmea/cdc/build/linux-arm-generic/lib/foundation.jar
Checking for test classes to compile ...
Compiling test classes...
... /pmea/cdc/build/linux-arm-generic/testclasses.zip
Checking for demo classes to compile ...
Compiling demo classes...
... /pmea/cdc/build/linux-arm-generic/democlasses.jar
... generating jni class headers
... /pmea/cdc/build/linux-arm-generic/./classes.jcc/GenOpcodes.class
Note: /pmea/cdc/src/share/javavm/jcc/util/BufferedPrintStream.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
... /pmea/cdc/src/share/javavm/include/opcodes.list
... /pmea/cdc/build/linux-arm-generic/./classes.jcc/JavaCodeCompact.class
Note: /pmea/cdc/src/share/javavm/jcc/util/LinkerUtil.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
jcc romjava.c files
965 Total Classes
... of which 196 classes have static initializers
(9368/13685 quickening sites)
8744 method blocks
... of which 8744 blocks are writable
... for 863 classes
... of which 2935 have checkinit opcodes in the code
435906 bytes of Java code
1575 catch frames
3890 field blocks
953 inner class attribute entries
11389 constant pool entries
3729 Java strings
... /pmea/cdc/build/linux-arm-generic/./generated/javavm/runtime/system_properties.c
cc /pmea/cdc/src/share/javavm/runtime/gc/generational/gen_semispace.c
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
make: *** [obj/gen_semispace.o] Error 127

I'm doomed dont you think?, BTW i forgot to mention that the scratchbox is the maemo diablo, the very last one

Message was edited by: efebo_abel

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> even making the make clean on the /pmea/cdc/build/linux-arm-generic i got this
> ...
> ... /pmea/cdc/build/linux-arm-generic/./generated/javavm/runtime/system_properties.c
> cc /pmea/cdc/src/share/javavm/runtime/gc/generational/gen_semispace.c
> Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
> make: *** [obj/gen_semispace.o] Error 127
>
> I'm doomed dont you think

Sorry. It's not a good sign. :-(

Please try asking for help with the Nokia N800 developers:

http://www.internettablettalk.com/forums/showthread.php?t=3858

Let us know what you find out.

Thanks,

Hinkmond

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

efebo_abel
Offline
Joined: 2004-06-11
Points: 0

This is more like a question.

This GTK-AWT migration thing is pretty difficult?, is there somebody actually working on this?, it requires a great amount of C/C++ knowledge?

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> This is more like a question.
>
> This GTK-AWT migration thing is pretty difficult?, is there somebody actually working on this?, it requires a great amount of C/C++ knowledge

Good question. I'm not sure if Ken Gilmer from Buglabs is sponsoring an
effort like this or not, but I have not seen much progress on porting
phoneME Advanced Personal Profile to GTK.

So, it might need a jump-start from those of you developers out there
who interested in it.

Hinkmond

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

Davy Preuveneers

On Monday 07 July 2008, Hinkmond Wong wrote:
> phonemeadvanced@mobileandembedded.org wrote:
> > This is more like a question.
> >
> > This GTK-AWT migration thing is pretty difficult?, is there somebody
> > actually working on this?, it requires a great amount of C/C++ knowledge
>
> Good question. I'm not sure if Ken Gilmer from Buglabs is sponsoring an
> effort like this or not, but I have not seen much progress on porting
> phoneME Advanced Personal Profile to GTK.
>
> So, it might need a jump-start from those of you developers out there
> who interested in it.
>
>
> Hinkmond

I made a patch a while ago that enables me to compile Personal Profile for Gtk
1.2 on Linux/x86, but several things aren't working propertly yet. Ken asked
if I could share this patch, and I posted a link to my website, but I haven't
heard back from him.

http://forums.java.net/jive/thread.jspa?messageID=275587&#275587

For those who are willing to try it out, it is included in attach.

Davy
[Gtk.rev12181.diff]
---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

Hinkmond Wong

Davy Preuveneers wrote:
> I made a patch a while ago that enables me to compile Personal Profile for Gtk
> 1.2 on Linux/x86, but several things aren't working propertly yet. Ken asked
> if I could share this patch, and I posted a link to my website, but I haven't
> heard back from him.
>
> http://forums.java.net/jive/thread.jspa?messageID=275587&#275587
>
> For those who are willing to try it out, it is included in attach.
>

Thanks, Davy! This is a very good start if others would like to help.

Hinkmond

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

cjplummer
Offline
Joined: 2006-10-16
Points: 0

> 3. Try setting CVM_COMPILER_INCOMPATIBLE=false in
> your make command
> line, since you are using the cross-compiler gcc in
> the
> linux-arm-generic build subdirectory (which do not
> match with each other).
>

Finally catching up on this thread...

I have yet to see a case where setting CVM_COMPILER_INCOMPATIBLE=false is the right thing to do. When the long winded warning about the compiler not being compatible comes up, setting CVM_COMPILER_INCOMPATIBLE=false just hides this fact and sends you down the wrong path. If you see the warning, you either have the wrong compiler, or don't even have TARGET_CC set to a valid path for a compiler.

Chris

efebo_abel
Offline
Joined: 2004-06-11
Points: 0

How did you do it? i have been unable to do this JavaPhoneME porting, can you list every step? i am lost, can you draft a detail list of the steps you followed

cjplummer
Offline
Joined: 2006-10-16
Points: 0

The N800 port? If so, did you follow the instructions given by the URL at the top of this thread:

http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms...

Chris

efebo_abel
Offline
Joined: 2004-06-11
Points: 0

I cant make this bloody thing work, first of all i got ubuntu to access the svn repostories, anyway, is feasible to make a deb file to install on the nokia n800? another question pops up, with this implementation of jvm, GUI's can be made and used with this JVM?

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> I cant make this bloody thing work, first of all i got ubuntu to access the svn repostories, anyway, is feasible to make a deb file to install on the nokia n800? another question pops up, with this implementation of jvm, GUI's can be made and used with this JVM?
>

Hi efebo_abel,

What type of problem are you seeing? What command line are you trying
to run on your N800 and what is the error message you are seeing?

If you or anyone else on the forum would like to help and create a
process to generate a deb file to make it easier to install phoneME
Advanced on an N800 please feel free to do so. This is a community
effort, not just one company providing all the help. So, your help
would be appreciated.

GUI support for phoneME Advanced on the N800 can be accomplished if you
or someone on this forum can help port Java ME Personal Profile or
Personal Basis Profile to the N800 platform. For more info, see:

http://forums.java.net/jive/thread.jspa?messageID=253537

Marcos Fabio (one of our phoneME Advanced community developers is the
closest in porting Java ME PP to the Nokia N800 using phoneME Advanced)
so far:

http://forums.java.net/jive/message.jspa?messageID=255319#255319

You might want to contact Marcos for questions on using a GUI with
phoneME Advanced on a Nokia N800/N810.

Thanks,

Hinkmond

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

efebo_abel
Offline
Joined: 2004-06-11
Points: 0

i got this error messages, i tried to point the TOOL_DIR to TOOLS_DIR=/pmea/tools/tags/tools-feature-mr2-promo-b26, but all i got is /pmea/tools/ and no tag subdirectory,

Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
MAKEFLAGS = J2ME_CLASSLIB=foundation USE_AAPCS=true CVM_TARGET_TOOLS_PREFIX=/scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/arm-linux-
CVM_HOST = i686-Ubuntu-linux
CVM_TARGET = linux-arm-generic
SHELL = sh -e
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = /usr/java/jdk1.6.0_06/bin/java
CVM_JAVAC = /usr/java/jdk1.6.0_06/bin/javac
CVM_JAVAH = /usr/java/jdk1.6.0_06/bin/javah
CVM_JAR = /usr/java/jdk1.6.0_06/bin/jar
TARGET_CC = /scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/arm-linux-gcc
TARGET_CCC = /scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/arm-linux-g++
TARGET_AS = /scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/arm-linux-gcc
TARGET_LD = /scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/arm-linux-gcc
TARGET_AR = /scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/arm-linux-ar
TARGET_RANLIB = /scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/arm-linux-ranlib
LINKFLAGS = -g -Wl,-export-dynamic
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -c -fno-common -traditional
CCCFLAGS = -fno-rtti
CCFLAGS_SPEED = -c -fno-common -Wall -W -Wno-unused-parameter -Wno-sign-compare -fno-strict-aliasing -O4
CCFLAGS_SPACE = -c -fno-common -Wall -W -Wno-unused-parameter -Wno-sign-compare -fno-strict-aliasing -O2
CCFLAGS_LOOP = -c -fno-common -Wall -W -Wno-unused-parameter -Wno-sign-compare -fno-strict-aliasing -O4
CCFLAGS_FDLIB = -c -fno-common -Wall -W -Wno-unused-parameter -Wno-sign-compare -fno-strict-aliasing -O4
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -target 1.4
CVM_DEFINES = -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOADING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_JIT_REGISTER_LOCALS -DCVM_TIMESTAMPING -DJ2ME_CLASSLIB=foundation -DTARGET_CPU_FAMILY=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -D_GNU_SOURCE -DCVM_IAI_OPT_ALL -DAAPCS
host uname = Linux leomare 2.6.24-19-generic #1 SMP Wed Jun 18 14:43:41 UTC 2008 i686 GNU/Linux
TARGET_CC version =
HOST_CC version = 4.2.3 i486-linux-gnu
CVM_JAVA version = java version 1.6.0_06
TOOLS_DIR = /pmea/tools
Target tools not properly specified. The gcc -dumpmachine
output does not agree with CVM_TARGET. The OS and CPU portions
must match for compatibility. If this is a cross compile, you
probably forgot to set CVM_TARGET_TOOLS_PREFIX. If you want to
to turn off this check, set CVM_COMPILER_INCOMPATIBLE=false
on the make command line or in the GNUmakefile
CVM_TARGET: linux-arm-generic
compiler target:
exit 2
make: *** [checkconfig] Error 2

Mmmmmmmmmmmmm, woud i have AWT if i get this right?

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> i got this error messages, i tried to point the TOOL_DIR to TOOLS_DIR=/pmea/tools/tags/tools-feature-mr2-promo-b26, but all i got is /pmea/tools/ and no tag subdirectory,
>
>
> Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
> Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
> MAKEFLAGS = J2ME_CLASSLIB=foundation USE_AAPCS=true CVM_TARGET_TOOLS_PREFIX=/scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/arm-linux-
> ...
> Mmmmmmmmmmmmm, woud i have AWT if i get this right?
>

Hi efebo_abel,

There are several problems that you might be having:

1. There is currently no AWT port of pMEA for the Nokia N800. So, even
if you tried to do a J2ME_CLASSLIB=personal build, it will not work
until you have done the non-trivial porting of AWT to GTK.

2. You should not use the tag tools-feature-mr2-promo-b26 with phoneME
Advanced. That tag is for building phoneME Feature (which is why you
see the name "-feature-" in the tag), not for phoneME Advanced. Try
using the tools trunk from the SVN repo instead.

3. Try setting CVM_COMPILER_INCOMPATIBLE=false in your make command
line, since you are using the cross-compiler gcc in the
linux-arm-generic build subdirectory (which do not match with each other).

Hinkmond

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

efebo_abel
Offline
Joined: 2004-06-11
Points: 0

i switch the CVM_COMPILER_INCOMPATIBLE=FALSE, and all i got is this

... /pmea/cdc/build/linux-arm-generic/./generated/classes/sun/misc/BuildFlags.java
... generating sun.misc.DefaultLocaleList.java
... /pmea/cdc/build/linux-arm-generic/./generated/classes/sun/misc/DefaultLocaleList.java
... /pmea/tools/output/Configurator.manifest
... building CodeTransformer
... /pmea/tools/output/Configurator.jar
... generating PackageManager.java
Compiling build-time classes...
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
... /pmea/cdc/build/linux-arm-generic/btclasses.zip
Checking for phoneME Advanced classes to compile ...
... generating CurrencyData.java
Compiling phoneME Advanced classes...
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
... /pmea/cdc/build/linux-arm-generic/lib/foundation.jar
Checking for test classes to compile ...
Compiling test classes...
... /pmea/cdc/build/linux-arm-generic/testclasses.zip
Checking for demo classes to compile ...
Compiling demo classes...
... /pmea/cdc/build/linux-arm-generic/democlasses.jar
... generating jni class headers
... /pmea/cdc/build/linux-arm-generic/./classes.jcc/GenOpcodes.class
Note: /pmea/cdc/src/share/javavm/jcc/util/BufferedPrintStream.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
... /pmea/cdc/src/share/javavm/include/opcodes.list
... /pmea/cdc/build/linux-arm-generic/./classes.jcc/JavaCodeCompact.class
Note: /pmea/cdc/src/share/javavm/jcc/util/LinkerUtil.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
jcc romjava.c files
965 Total Classes
... of which 196 classes have static initializers
(9368/13685 quickening sites)
8744 method blocks
... of which 8744 blocks are writable
... for 863 classes
... of which 2935 have checkinit opcodes in the code
435906 bytes of Java code
1575 catch frames
3890 field blocks
953 inner class attribute entries
11389 constant pool entries
3729 Java strings
... /pmea/cdc/build/linux-arm-generic/./generated/javavm/runtime/system_properties.c
cc /pmea/cdc/src/share/javavm/runtime/gc/generational/gen_semispace.c
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
make: *** [obj/gen_semispace.o] Error 127

orodriguez@leomare:/pmea/cdc/build/linux-arm-generic$ TOOLS_DIR=/pmea/tools/
When i try to set TOOL_DIR variable, this is all i got under the directory
checkreports/ jpp/ output/ .svn/ tools.gmk
configurator/ makefiles/ projects/ svntools/ ui-generator/

There is no /tags/tools-feature-mr2-promo-b26 subdirectory, cjplummer made this previously on this thread, and i thought that this was related to my problem, this is the subdirectoy structure i got from using svn (under /pmea/tools/), apologies for being so annoying regarding the AWT-GUI stuff on the nokia n800, but i'm trying to refuse the use of jalimo as JVM on my nokia n800, for me use SWT for GUI's it's not java natural thing, sorry for being fanatical but so be it. and i dont wanna use the maemo plattform for building apps

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> i switch the CVM_COMPILER_INCOMPATIBLE=FALSE, and all i got is this
>
>

That part looks good now.

> orodriguez@leomare:/pmea/cdc/build/linux-arm-generic$ TOOLS_DIR=/pmea/tools/
> When i try to set TOOL_DIR variable, this is all i got under the directory
> checkreports/ jpp/ output/ .svn/ tools.gmk
> configurator/ makefiles/ projects/ svntools/ ui-generator/
>
> There is no /tags/tools-feature-mr2-promo-b26 subdirectory, cjplummer made this previously on this thread, and i thought that this was related to my problem, this is the subdirectoy structure i got from using svn (under /pmea/tools/), apologies for being so annoying regarding the AWT-GUI stuff on the nokia n800, but i'm trying to refuse the use of jalimo as JVM on my nokia n800, for me use SWT for GUI's it's not java natural thing, sorry for being fanatical but so be it. and i dont wanna use the maemo plattform for building apps
>

No problem. Try this instead:

cd /pmea
mv tools tools-feature-mr2-promo-b26
svn co https://phoneme.dev.java.net/svn/phoneme/components/tools/trunk tools

Then, rebuild again the way you were building (w/
CVM_COMPILER_INCOMPATIBLE=FALSE). If that still does not work, do this:

svn info /pmea/cdc

And, send us the output.

Hinkmond

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

efebo_abel
Offline
Joined: 2004-06-11
Points: 0

Hi i got the same error 127, this is the output from my last attempt

orodriguez@leomare:/pmea/cdc/build/linux-arm-generic$ svn info /pmea/cdc
Path: /pmea/cdc
URL: https://phoneme.dev.java.net/svn/phoneme/components/cdc/trunk
Repository Root: https://phoneme.dev.java.net/svn/phoneme
Repository UUID: 6dfe35fe-931f-0410-af5f-a91b034811cd
Revision: 12204
Node Kind: directory
Schedule: normal
Last Changed Author: amy_wang
Last Changed Rev: 12182
Last Changed Date: 2008-07-03 05:05:40 -0600 (Thu, 03 Jul 2008)

Message was edited by: efebo_abel

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi i got the sam error 127, this is the output from my last attempt
>

Taking a closer look at your error message:

...
/pmea/cdc/build/linux-arm-generic/./generated/javavm/runtime/system_properties.c
cc /pmea/cdc/src/share/javavm/runtime/gc/generational/gen_semispace.c
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void
*) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
make: *** [obj/gen_semispace.o] Error 127

I'm not sure if that is because of your leftover files. Try doing a
make clean first before rebuilding again:

make clean

(Make sure all the build files are not in your build directory anymore.
You should just see the GNUmakefile and a few *.mk files and nothing else)

If a make clean first before you build still doesn't work, check that
your gcc is working correctly:

/scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/arm-linux-gcc -v

Send us the output of the above.

I think it is very likely that your arm-linux-gcc is at fault and cannot
run on Windows cygwin, but was probably built to run on Linux/x86 or on
some other Linux kernel.

See:
https://launchpad.net/ubuntu/+source/linux-source-2.6.20/+bug/86457

Or something similar:
http://sources.redhat.com/ml/libc-alpha/2004-08/msg00134.html

So, you might have a bigger problem with your arm-linux-gcc which has
nothing to do with pMEA.

Hinkmond

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

efebo_abel
Offline
Joined: 2004-06-11
Points: 0

this is the output i got running the instruction that you gave me

orodriguez@leomare:~$ /scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/arm-linux-gcc -v
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!

I'm running this on ubuntu 8.04 hardy

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> this is the output i got running the instruction that you gave me
>
> orodriguez@leomare:~$ /scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/arm-linux-gcc -v
> Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
>
> I'm running this on ubuntu 8.04 hardy
>

Hi efebo_abel,

This is a bad sign. The above problem has nothing to do with phoneME
Advanced or Java. You have a broken arm-linux-gcc and you need to
figure out how to fix it.

You might want to start by asking your question over at the Nokia N800
forum group:

http://www.internettablettalk.com/forums/showthread.php?t=3858

Good luck!

Hinkmond

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

cjplummer
Offline
Joined: 2006-10-16
Points: 0

What does your make command line look like? Also, please include any make output that comes before this error.

Chris

mfabiop
Offline
Joined: 2005-03-06
Points: 0

Hi Cris,

This is the output before the error.

... mkdir ../../build/linux-arm-generic/./generated/javavm/runtime
... mkdir ../../build/linux-arm-generic/./generated/javavm/runtime/jit
... mkdir ../../build/linux-arm-generic/./generated/classes
touch ../../build/linux-arm-generic/./generated/empty.mk
MAKEFLAGS = J2ME_CLASSLIB=foundation USE_AAPCS=true CVM_TARGET_TOOLS_PREFIX=/scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux- TOOLS_DIR=/pmea/tools/tags/tools-feature-mr2-promo-b26
CVM_HOST = i686-Ubuntu-linux
CVM_TARGET = linux-arm-generic
SHELL = bash -e
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = /java/bin/java
CVM_JAVAC = /java/bin/javac
CVM_JAVAH = /java/bin/javah
CVM_JAR = /java/bin/jar
TARGET_CC = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-gcc
TARGET_CCC = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-g++
TARGET_AS = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-gcc
TARGET_LD = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-gcc
TARGET_AR = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-ar
TARGET_RANLIB = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-ranlib
LINKFLAGS = -g -Wl,-export-dynamic
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -c -fno-common -traditional
CCCFLAGS = -fno-rtti
CCFLAGS_SPEED = -c -fno-common -Wall -fno-strict-aliasing -O4
CCFLAGS_SPACE = -c -fno-common -Wall -fno-strict-aliasing -O2
CCFLAGS_LOOP = -c -fno-common -Wall -fno-strict-aliasing -O4
CCFLAGS_FDLIB = -c -fno-common -Wall -fno-strict-aliasing -O4
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -target 1.4
CVM_DEFINES = -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOADING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_JIT_REGISTER_LOCALS -DCVM_TIMESTAMPING -DJ2ME_CLASSLIB=foundation -DTARGET_CPU_FAMILY=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -D_GNU_SOURCE -DCVM_IAI_OPT_ALL -DAAPCS
host uname = Linux PATOLINO 2.6.20-16-generic #2 SMP Sun Sep 23 19:50:39 UTC 2007 i686 GNU/Linux
TARGET_CC version = 3.4.4 arm-none-linux-gnueabi
HOST_CC version = 4.1.2 i486-linux-gnu
CVM_JAVA version = java version 1.4.2_16
TOOLS_DIR = /pmea/tools/tags/tools-feature-mr2-promo-b26
... mkdir ../../build/linux-arm-generic/./generated/flags
Flag CVM_AGENTLIB changed. Cleaning up.
Flag CVM_AOT changed. Cleaning up.
Flag CVM_CCM_COLLECT_STATS changed. Cleaning up.
Flag CVM_CLASSLIB_JCOV changed. Cleaning up.
Flag CVM_CLASSLOADING changed. Cleaning up.
Flag CVM_CSTACKANALYSIS changed. Cleaning up.
Flag CVM_DEBUG changed. Cleaning up.
Flag CVM_DEBUG_ASSERTS changed. Cleaning up.
Flag CVM_DEBUG_CLASSINFO changed. Cleaning up.
Flag CVM_DEBUG_DUMPSTACK changed. Cleaning up.
Flag CVM_DEBUG_STACKTRACES changed. Cleaning up.
Flag CVM_DUAL_STACK changed. Cleaning up.
Flag CVM_DYNAMIC_LINKING changed. Cleaning up.
Flag CVM_EMBEDDED_HOOK changed. Cleaning up.
Flag CVM_FORCE_HARD_FLOAT changed. Cleaning up.
Flag CVM_GCCHOICE changed. Cleaning up.
Flag CVM_GCOV changed. Cleaning up.
Flag CVM_GPROF changed. Cleaning up.
Flag CVM_GPROF_NO_CALLGRAPH changed. Cleaning up.
Flag CVM_HOST changed. Cleaning up.
Flag CVM_IAI_OPT_ALL changed. Cleaning up.
Flag CVM_INCLUDE_COMMCONNECTION changed. Cleaning up.
Flag CVM_INSPECTOR changed. Cleaning up.
Flag CVM_INSTRUCTION_COUNTING changed. Cleaning up.
Flag CVM_INTERPRETER_LOOP changed. Cleaning up.
Flag CVM_JAVAC_DEBUG changed. Cleaning up.
Flag CVM_JIT changed. Cleaning up.
Flag CVM_JIT_CODE_SCHED changed. Cleaning up.
Flag CVM_JIT_COLLECT_STATS changed. Cleaning up.
Flag CVM_JIT_COPY_CCMCODE_TO_CODECACHE changed. Cleaning up.
Flag CVM_JIT_DEBUG changed. Cleaning up.
Flag CVM_JIT_ESTIMATE_COMPILATION_SPEED changed. Cleaning up.
Flag CVM_JIT_PATCHED_METHOD_INVOCATIONS changed. Cleaning up.
Flag CVM_JIT_PROFILE changed. Cleaning up.
Flag CVM_JIT_REGISTER_LOCALS changed. Cleaning up.
Flag CVM_JIT_USE_FP_HARDWARE changed. Cleaning up.
Flag CVM_JVMPI changed. Cleaning up.
Flag CVM_JVMPI_TRACE_INSTRUCTION changed. Cleaning up.
Flag CVM_JVMTI changed. Cleaning up.
Flag CVM_JVMTI_ROM changed. Cleaning up.
Flag CVM_KNI changed. Cleaning up.
Flag CVM_LVM changed. Cleaning up.
Flag CVM_MP_SAFE changed. Cleaning up.
Flag CVM_MTASK changed. Cleaning up.
Flag CVM_NO_CODE_COMPACTION changed. Cleaning up.
Flag CVM_NO_LOSSY_OPCODES changed. Cleaning up.
Flag CVM_OPTIMIZED changed. Cleaning up.
Flag CVM_PRELOAD_LIB changed. Cleaning up.
Flag CVM_PRELOAD_TEST changed. Cleaning up.
Flag CVM_PRODUCT changed. Cleaning up.
Flag CVM_REFLECT changed. Cleaning up.
Flag CVM_SERIALIZATION changed. Cleaning up.
Flag CVM_SPLIT_VERIFY changed. Cleaning up.
Flag CVM_STATICLINK_LIBS changed. Cleaning up.
Flag CVM_SYMBOLS changed. Cleaning up.
Flag CVM_TEST_GC changed. Cleaning up.
Flag CVM_TEST_GENERATION_GC changed. Cleaning up.
Flag CVM_THREAD_SUSPENSION changed. Cleaning up.
Flag CVM_TIMESTAMPING changed. Cleaning up.
Flag CVM_TRACE changed. Cleaning up.
Flag CVM_TRACE_JIT changed. Cleaning up.
Flag CVM_USE_CVM_MEMALIGN changed. Cleaning up.
Flag CVM_USE_MEM_MGR changed. Cleaning up.
Flag CVM_USE_NATIVE_TOOLS changed. Cleaning up.
Flag CVM_VERIFY_HEAP changed. Cleaning up.
Flag CVM_XRUN changed. Cleaning up.
Flag J2ME_CLASSLIB changed. Cleaning up.
Flag OPT_PKGS changed. Cleaning up.
Flag USE_AAPCS changed. Cleaning up.
Flag USE_GCI changed. Cleaning up.
Flag USE_JUMP changed. Cleaning up.
Flag USE_MIDP changed. Cleaning up.
... generating ../../build/linux-arm-generic/./generated/javavm/include/build_defs.h

/*** Definitions generated at build time ***/
#ifndef _BUILD_DEFS_H
#define _BUILD_DEFS_H

#define CVM_BUILD_OPTIONS \
"CVM_AGENTLIB=false\n" \
"CVM_AOT=false\n" \
"CVM_CCM_COLLECT_STATS=false\n" \
"CVM_CLASSLIB_JCOV=false\n" \
"CVM_CLASSLOADING=true\n" \
"CVM_CSTACKANALYSIS=false\n" \
"CVM_DEBUG=false\n" \
"CVM_DEBUG_ASSERTS=false\n" \
"CVM_DEBUG_CLASSINFO=false\n" \
"CVM_DEBUG_DUMPSTACK=false\n" \
"CVM_DEBUG_STACKTRACES=true\n" \
"CVM_DUAL_STACK=false\n" \
"CVM_DYNAMIC_LINKING=true\n" \
"CVM_EMBEDDED_HOOK=false\n" \
"CVM_FORCE_HARD_FLOAT=false\n" \
"CVM_GCCHOICE=generational\n" \
"CVM_GCOV=false\n" \
"CVM_GPROF=false\n" \
"CVM_GPROF_NO_CALLGRAPH=true\n" \
"CVM_HOST=i686-Ubuntu-linux\n" \
"CVM_IAI_OPT_ALL=true\n" \
"CVM_INCLUDE_COMMCONNECTION=false\n" \
"CVM_INSPECTOR=false\n" \
"CVM_INSTRUCTION_COUNTING=false\n" \
"CVM_INTERPRETER_LOOP=Standard\n" \
"CVM_JAVAC_DEBUG=false\n" \
"CVM_JIT=true\n" \
"CVM_JIT_CODE_SCHED=false\n" \
"CVM_JIT_COLLECT_STATS=\n" \
"CVM_JIT_COPY_CCMCODE_TO_CODECACHE=true\n" \
"CVM_JIT_DEBUG=false\n" \
"CVM_JIT_ESTIMATE_COMPILATION_SPEED=false\n" \
"CVM_JIT_PATCHED_METHOD_INVOCATIONS=false\n" \
"CVM_JIT_PROFILE=false\n" \
"CVM_JIT_REGISTER_LOCALS=true\n" \
"CVM_JIT_USE_FP_HARDWARE=false\n" \
"CVM_JVMPI=false\n" \
"CVM_JVMPI_TRACE_INSTRUCTION=false\n" \
"CVM_JVMTI=false\n" \
"CVM_JVMTI_ROM=false\n" \
"CVM_KNI=false\n" \
"CVM_LVM=false\n" \
"CVM_MP_SAFE=false\n" \
"CVM_MTASK=false\n" \
"CVM_NO_CODE_COMPACTION=false\n" \
"CVM_NO_LOSSY_OPCODES=false\n" \
"CVM_OPTIMIZED=true\n" \
"CVM_PRELOAD_LIB=false\n" \
"CVM_PRELOAD_TEST=false\n" \
"CVM_PRODUCT=premium\n" \
"CVM_REFLECT=true\n" \
"CVM_SERIALIZATION=true\n" \
"CVM_SPLIT_VERIFY=false\n" \
"CVM_STATICLINK_LIBS=false\n" \
"CVM_SYMBOLS=false\n" \
"CVM_TEST_GC=false\n" \
"CVM_TEST_GENERATION_GC=false\n" \
"CVM_THREAD_SUSPENSION=false\n" \
"CVM_TIMESTAMPING=true\n" \
"CVM_TRACE=false\n" \
"CVM_TRACE_JIT=false\n" \
"CVM_USE_CVM_MEMALIGN=false\n" \
"CVM_USE_MEM_MGR=false\n" \
"CVM_USE_NATIVE_TOOLS=false\n" \
"CVM_VERIFY_HEAP=false\n" \
"CVM_XRUN=false\n" \
"J2ME_CLASSLIB=foundation\n" \
"OPT_PKGS=\n" \
"USE_AAPCS=true\n" \
"USE_GCI=false\n" \
"USE_JUMP=false\n" \
"USE_MIDP=false\n" \

#define CVM_PROP_JAVA_VERSION "phoneme_advanced_mr2-b49"
#define CVM_PROP_JAVA_VENDOR "Sun Microsystems Inc."
#define CVM_PROP_JAVA_VENDOR_URL "http://java.sun.com/"
#define CVM_PROP_JAVA_VENDOR_URL_BUG "http://java.sun.com/cgi-bin/bugreport.cgi"
#define CVM_PROP_JAVA_SPEC_NAME "Foundation Profile Specification"
#define CVM_PROP_JAVA_SPEC_VERSION "1.1"
#define CVM_PROP_JAVA_SPEC_VENDOR "Sun Microsystems Inc."
#define CVM_PROP_JAVA_CLASS_VERSION "47.0"
#define CVM_PROP_JAVA_VM_NAME "CVM"
#define CVM_PROP_JAVA_VM_VERSION "phoneme_advanced_mr2-b49"
#define CVM_PROP_SUN_MISC_PRODUCT "phoneME Advanced"
#define CVM_PROP_JAVA_VM_INFO "mixed mode"
#define CVM_PROP_JAVA_VM_VENDOR "Sun Microsystems Inc."
#define CVM_PROP_JAVA_VM_SPEC_NAME "Java Virtual Machine Specification"
#define CVM_PROP_JAVA_VM_SPEC_VERSION "1.0"
#define CVM_PROP_JAVA_VM_SPEC_VENDOR "Sun Microsystems Inc."
#define CVM_CLASSLIB_JAR_NAME "foundation.jar"
#define CVM_JARFILES CVM_CLASSLIB_JAR_NAME

#endif /* _BUILD_DEFS_H */

updating ../../build/linux-arm-generic/./generated/build_defs.mk ...
... mkdir ../../build/linux-arm-generic/./obj
... mkdir ../../build/linux-arm-generic/./bin
... mkdir ../../build/linux-arm-generic/./generated/javavm/runtime/opcodeconsts
... mkdir ../../build/linux-arm-generic/./generated/classes/sun/misc
... mkdir ../../build/linux-arm-generic/./generated/jni
... mkdir ../../build/linux-arm-generic/./generated/cni
... mkdir ../../build/linux-arm-generic/./generated/offsets
... mkdir ../../build/linux-arm-generic/./btclasses
... mkdir ../../build/linux-arm-generic/./testclasses
... mkdir ../../build/linux-arm-generic/./democlasses
... mkdir ../../build/linux-arm-generic/./lib
... mkdir ../../build/linux-arm-generic/./lib/security
... mkdir ../../build/linux-arm-generic/./classes.tools
... mkdir ../../build/linux-arm-generic/./foundation_classes
... mkdir ../../build/linux-arm-generic/./generated/javavm/include/jit
... mkdir ../../build/linux-arm-generic/./jcs
... mkdir ../../build/linux-arm-generic/./generated/classes/java/util
... mkdir ../../build/linux-arm-generic/./classes.jcc
Checking for build-time classes to compile ...
... generating BuildFlags.java
... ../../build/linux-arm-generic/./generated/classes/sun/misc/BuildFlags.java
... generating sun.misc.DefaultLocaleList.java
... ../../build/linux-arm-generic/./generated/classes/sun/misc/DefaultLocaleList.java
... generating PackageManager.java

And the line that i used to generate it

make CVM_TARGET_TOOLS_PREFIX=/scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux- \
USE_AAPCS=true J2ME_CLASSLIB=foundation TOOLS_DIR=/pmea/tools/tags/tools-feature-mr2-promo-b26

Marcos

cjplummer
Offline
Joined: 2006-10-16
Points: 0

You are building CDC off of the trunk, but you are also setting the following:

TOOLS_DIR=/pmea/tools/tags/tools-feature-mr2-promo-b26

TOOLS_DIR must be set to the tools component that is also on the trunk. This looks like it is the tools component from an older phoneME feature release.

Chris

Message was edited by: cjplummer

mfabiop
Offline
Joined: 2005-03-06
Points: 0

Very Thanks Chris!!!

Now it is working!!

Do you know how i can do Remote Procedure Calls on CDC? I'm trying with XML-RPC but there's no sax package. Is there RMI? Is it a good choice?

Thanks in advance! again... :)

cjplummer
Offline
Joined: 2006-10-16
Points: 0

RMI is available. See the following twiki for download and build instructions.

http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedBuildingJ...

good luck,

Chris