building classpath / ecj-initial fails
Hi all,
I ran into problems when bitbaking java-related stuff for the OMAP3-platforms (gumstix-overo, beagleboard)
in the current org.openembedded.dev environment:
I receive the following error at task /recipes/classpath/classpath-native_0.97.2.bb, do_configure
"checking if /media/disk/overo-oe/tmp/staging/i686-linux/usr/bin/ecj-initial works... configure: error: The Java compiler /media/disk/overo-oe/tmp/staging/i686-linux/usr/bin/ecj-initial failed (see config.log, check the CLASSPATH?)"
the problem seems to be that jamvm-initial (which is called by ecj-initial) produces a memory-allocation fault (maybe related to the argument -Xmx1024m ?)
I found similar problems browsing the OE-build stats and the web, but no hints for a solution ..
any help or comments very much apprechiated,
regards,
Chris
Hi,
jamvm 1.5 needs classpath-0.98, we don't use classpath-0.98 yet as default because there were some issues with cacao. So add PREFFERED_VERSION_classpath = "0.98"
to your local.conf and it should work.
Bye Henning
Dear Henning,
thank you for the fast response,
Quoted 4 lines
jamvm 1.5 needs classpath-0.98, we don't use classpath-0.98 yet as default because there were some issues with cacao. So add
PREFFERED_VERSION_classpath= "0.98"
to your local.conf and it should work.
after my first rebuild i did not notice any effect, then i relalized the type in "PREFERRED_VERSION_classpath" ;-)
after that changed, i still got the same error, because the problem happens at the config of classpath_native...
i then deleted my tmp folder and gave it another try, using the settings recommended at http://wiki.openembedded.net/index.php/Java :
PREFERRED_VERSION_jamvm-initial = "1.4.5"
PREFERRED_VERSION_classpath-initial = "0.93"
PREFERRED_VERSION_jamvm-native = "1.5.3"
PREFERRED_VERSION_classpath-native = "0.98"
PREFERRED_VERSION_jamvm = "1.5.2"PREFERRED_VERSION_classpath = "0.98"
PREFERRED_VERSION_libecj-bootstrap = "3.4"
Unfortunately, i ran into a different error using this configuration:
task 1610 of 7888 (ID: 3738, /media/disk/overo-oe/org.openembedded.dev/recipes/classpath/classpath- native_0.98.bb,do_compile)
ERROR: function do_compile failed
/media/disk/overo-oe/tmp/staging/i686-linux/usr/bin/java-initial -classpath antlr.Tool -o ../tools/generated/gnu/classpath/tools/gjdoc/expr/ \
| ./gnu/classpath/tools/gjdoc/expr/java-expression.g
| Unrecognised command line option: -o
any ideas what is going wrong now ?
regards,
chris
Quoted 39 lines · Chris Veigl
Dear Henning,
thank you for the fast response,
Quoted 4 lines
jamvm 1.5 needs classpath-0.98, we don't use classpath-0.98 yet as default because there were some issues with cacao. So add
PREFFERED_VERSION_classpath= "0.98"
to your local.conf and it should work.after my first rebuild i did not notice any effect, then i relalized the type in "
PREFERRED_VERSION_classpath" ;-)after that changed, i still got the same error, because the problem happens at the config of
classpath_native...i then deleted my tmp folder and gave it another try, using the settings recommended at http://wiki.openembedded.net/index.php/Java :
PREFERRED_VERSION_jamvm-initial = "1.4.5"
PREFERRED_VERSION_classpath-initial = "0.93"PREFERRED_VERSION_jamvm-native = "1.5.3"
PREFERRED_VERSION_classpath-native = "0.98"
PREFERRED_VERSION_jamvm= "1.5.2"PREFERRED_VERSION_classpath= "0.98"PREFERRED_VERSION_libecj-bootstrap = "3.4"
Unfortunately, i ran into a different error using this configuration:
task 1610 of 7888 (ID: 3738, /media/disk/overo-oe/org.openembedded.dev/recipes/classpath/classpath- native_0.98.bb,
do_compile)
ERROR: functiondo_compilefailed
Quoted 4 lines
/media/disk/overo-oe/tmp/staging/i686-linux/usr/bin/java-initial -classpath antlr.Tool -o ../tools/generated/gnu/classpath/tools/gjdoc/expr/ \
| ./gnu/classpath/tools/gjdoc/expr/java-expression.g
| Unrecognised command line option: -o
git pull.. se my commit yesterday
Quoted 3 lines
any ideas what is going wrong now ?
regards,
chris
Regards,
Signature · 3 lines
uin:136542059 jid:[email protected] Jansa Martin sip:[email protected] JaMa
Hi Henning,
My approach after many unsuccessful attempts:
- install apt-get install sun-java6-jdk - edit local.conf ASSUME_PROVIDED += " ecj-initial " ASSUME_PROVIDED += " virtual/java-initial " ASSUME_PROVIDED += " virtual/java-native " ASSUME_PROVIDED += " virtual/javac-native " PREFERRED_PROVIDER_classpath = "classpath" PREFERRED_VERSION_classpath = "0.97.2" - bitbake cacao
Could not get jamvm nor classpath 0.98 compiled.
Regards,
Jaap
Quoted 53 lines · Martin Jansa
Quoted 39 lines · Chris Veigl
Dear Henning,
thank you for the fast response,
Quoted 4 lines
jamvm 1.5 needs classpath-0.98, we don't use classpath-0.98 yet as default because there were some issues with cacao. So add
PREFFERED_VERSION_classpath= "0.98"
to your local.conf and it should work.after my first rebuild i did not notice any effect, then i relalized the type in "
PREFERRED_VERSION_classpath" ;-)after that changed, i still got the same error, because the problem happens at the config of
classpath_native...i then deleted my tmp folder and gave it another try, using the settings recommended at http://wiki.openembedded.net/index.php/Java :
PREFERRED_VERSION_jamvm-initial = "1.4.5"
PREFERRED_VERSION_classpath-initial = "0.93"PREFERRED_VERSION_jamvm-native = "1.5.3"
PREFERRED_VERSION_classpath-native = "0.98"
PREFERRED_VERSION_jamvm= "1.5.2"PREFERRED_VERSION_classpath= "0.98"PREFERRED_VERSION_libecj-bootstrap = "3.4"
Unfortunately, i ran into a different error using this configuration:
task 1610 of 7888 (ID: 3738, /media/disk/overo-oe/org.openembedded.dev/recipes/classpath/classpath- native_0.98.bb,
do_compile)
ERROR: functiondo_compilefailedQuoted 4 lines
/media/disk/overo-oe/tmp/staging/i686-linux/usr/bin/java-initial -classpath antlr.Tool -o ../tools/generated/gnu/classpath/tools/gjdoc/expr/ \
| ./gnu/classpath/tools/gjdoc/expr/java-expression.g
| Unrecognised command line option: -ogit pull.. se my commit yesterday
Quoted 3 lines
any ideas what is going wrong now ?
regards,
chrisRegards,
Quoted 15 lines · Jaap de Jong
Hi Henning,
My approach after many unsuccessful attempts:
- install apt-get install sun-java6-jdk - edit local.conf ASSUME_PROVIDED += " ecj-initial " ASSUME_PROVIDED += " virtual/java-initial " ASSUME_PROVIDED += " virtual/java-native " ASSUME_PROVIDED += " virtual/javac-native " PREFERRED_PROVIDER_classpath = "classpath" PREFERRED_VERSION_classpath = "0.97.2" - bitbake cacao
Quoted 4 lines
Could not get jamvm nor classpath 0.98 compiled.
Regards,
Jaap
Could you try changing "-Xmx1024m" to "-Xmx512m" in recipes/ecj/files/ecj.in and I think rebuilding ecj-bootstrap-native and ecj-initial.
It worked for me.
Quoted 51 lines · Martin Jansa
Quoted 48 lines · Chris Veigl
Quoted 36 lines
Dear Henning,
thank you for the fast response,
Quoted 3 lines
jamvm 1.5 needs classpath-0.98, we don't use classpath-0.98 yet as default because there were some issues with cacao. So add
PREFFERED_VERSION_classpath= "0.98" to your local.conf and it should work.after my first rebuild i did not notice any effect, then i relalized the type in "
PREFERRED_VERSION_classpath" ;-)after that changed, i still got the same error, because the problem happens at the config of
classpath_native...i then deleted my tmp folder and gave it another try, using the settings recommended at http://wiki.openembedded.net/index.php/Java :
PREFERRED_VERSION_jamvm-initial = "1.4.5"
PREFERRED_VERSION_classpath-initial = "0.93"PREFERRED_VERSION_jamvm-native = "1.5.3"
PREFERRED_VERSION_classpath-native = "0.98"
PREFERRED_VERSION_jamvm= "1.5.2"PREFERRED_VERSION_classpath= "0.98"PREFERRED_VERSION_libecj-bootstrap = "3.4"
Unfortunately, i ran into a different error using this configuration:
task 1610 of 7888 (ID: 3738, /media/disk/overo-oe/org.openembedded.dev/recipes/classpath/classpath- native_0.98.bb,
do_compile)
ERROR: functiondo_compilefailedQuoted 4 lines
/media/disk/overo-oe/tmp/staging/i686-linux/usr/bin/java-initial -classpath antlr.Tool -o ../tools/generated/gnu/classpath/tools/gjdoc/expr/ \
| ./gnu/classpath/tools/gjdoc/expr/java-expression.g
| Unrecognised command line option: -ogit pull.. se my commit yesterday
Quoted 3 lines
any ideas what is going wrong now ?
regards,
chrisRegards,
Quoted 15 lines · Jaap de Jong
Hi Henning,
My approach after many unsuccessful attempts:
- install apt-get install sun-java6-jdk - edit local.conf ASSUME_PROVIDED += " ecj-initial " ASSUME_PROVIDED += " virtual/java-initial " ASSUME_PROVIDED += " virtual/java-native " ASSUME_PROVIDED += " virtual/javac-native " PREFERRED_PROVIDER_classpath = "classpath" PREFERRED_VERSION_classpath = "0.97.2" - bitbake cacao
Quoted 4 lines
Could not get jamvm nor classpath 0.98 compiled.
Regards,
Jaap
Not sure if this is the right answer, but I also could not build ecj-initial until I changed "-Xmx1024m" to "-Xmx512m" in recipes/ecj/files/ecj.in and I think rebuilding ecj-bootstrap-native and ecj-initial worked for me.
Quoted 51 lines · Martin Jansa
Quoted 48 lines · Chris Veigl
Quoted 36 lines
Dear Henning,
thank you for the fast response,
Quoted 3 lines
jamvm 1.5 needs classpath-0.98, we don't use classpath-0.98 yet as default because there were some issues with cacao. So add
PREFFERED_VERSION_classpath= "0.98" to your local.conf and it should work.after my first rebuild i did not notice any effect, then i relalized the type in "
PREFERRED_VERSION_classpath" ;-)after that changed, i still got the same error, because the problem happens at the config of
classpath_native...i then deleted my tmp folder and gave it another try, using the settings recommended at http://wiki.openembedded.net/index.php/Java :
PREFERRED_VERSION_jamvm-initial = "1.4.5"
PREFERRED_VERSION_classpath-initial = "0.93"PREFERRED_VERSION_jamvm-native = "1.5.3"
PREFERRED_VERSION_classpath-native = "0.98"
PREFERRED_VERSION_jamvm= "1.5.2"PREFERRED_VERSION_classpath= "0.98"PREFERRED_VERSION_libecj-bootstrap = "3.4"
Unfortunately, i ran into a different error using this configuration:
task 1610 of 7888 (ID: 3738, /media/disk/overo-oe/org.openembedded.dev/recipes/classpath/classpath- native_0.98.bb,
do_compile)
ERROR: functiondo_compilefailedQuoted 4 lines
/media/disk/overo-oe/tmp/staging/i686-linux/usr/bin/java-initial -classpath antlr.Tool -o ../tools/generated/gnu/classpath/tools/gjdoc/expr/ \
| ./gnu/classpath/tools/gjdoc/expr/java-expression.g
| Unrecognised command line option: -ogit pull.. se my commit yesterday
Quoted 3 lines
any ideas what is going wrong now ?
regards,
chrisRegards,
Quoted 6 lines · Dallas Foley <dfoley <at> techsol.ca> writes:
Quoted 4 lines · Jaap de Jong
Hi Henning,
My approach after many unsuccessful attempts:
Quoted 11 lines
Quoted 11 lines
- install apt-get install sun-java6-jdk - edit local.conf ASSUME_PROVIDED += " ecj-initial " ASSUME_PROVIDED += " virtual/java-initial " ASSUME_PROVIDED += " virtual/java-native " ASSUME_PROVIDED += " virtual/javac-native " PREFERRED_PROVIDER_classpath = "classpath" PREFERRED_VERSION_classpath = "0.97.2" - bitbake cacao
thank you for the hint - i will try this next
Quoted 1 line
Quoted 1 line
Could not get jamvm nor classpath 0.98 compiled.
what problems did arise ?
Quoted 5 lines
Not sure if this is the right answer, but I also could not build ecj-initial until I changed "-Xmx1024m" to "-Xmx512m" in recipes/ecj/files/ecj.in and I think rebuilding ecj-bootstrap-native and ecj-initial worked for me.
I suppose this solves the memory error in the "classpath - configure" - task. which setup (in terms of PREFERRED_PROVIDER, PREFERRED_VERSION, ASSUME_PROVIDED) did you use ? - and: could you build jamvm and classpath successfully ?
Using the OE-wiki setup, I got problems with the "compile" task (jamvm does not recognize option "-o"), which do not relate to the above memory problems.
regards,
chris.
Quoted 4 lines · Martin Jansa <martin.jansa <at> gmail.com> writes:
Quoted 2 lines
ERROR: function
do_compilefailedgit pull.. se my commit yesterday
I did a git pull, cleared the tmp folder and let bitbake run during the night, but get the same error:
tmp/staging/i686-linux/usr/bin/java-initial -classpath antlr.Tool -o \
../tools/generated/gnu/classpath/tools/gjdoc/expr/ \
./gnu/classpath/tools/gjdoc/expr/java-expression.g
Unrecognised command line option: -omust be something different ...
seems like jamvm version 1.4.5 does not have the "-o" switch !?
I currently use
PREFERRED_VERSION_jamvm-initial = "1.4.5"
PREFERRED_VERSION_classpath-initial = "0.93"
PREFERRED_VERSION_jamvm-native = "1.5.3"
PREFERRED_VERSION_classpath-native = "0.98"
PREFERRED_VERSION_jamvm = "1.5.2"
PREFERRED_VERSION_classpath = "0.98"
PREFERRED_VERSION_libecj-bootstrap = "3.4"
as recommended in the openembedded wiki ...
regards,
chris.
Quoted 7 lines · Chris Veigl
Quoted 4 lines · Martin Jansa <martin.jansa <at> gmail.com> writes:
Quoted 2 lines
ERROR: function
do_compilefailedgit pull.. se my commit yesterday
Quoted 7 lines
I did a git pull, cleared the tmp folder and let bitbake run during the night, but get the same error:
tmp/staging/i686-linux/usr/bin/java-initial -classpath antlr.Tool -o \ ../tools/generated/gnu/classpath/tools/gjdoc/expr/ \ ./gnu/classpath/tools/gjdoc/expr/java-expression.g Unrecognised command line option: -o
Strange because this should be built only with gjdoc enabled, which I disabled, because I had exactly the same problem (it worked only on system with antlr installed also outside OE staging).
I did it only for classpath-native, maybe you need similar workaround for classpath (if you don't need to build gjdoc).
# SHR distro.. We had only this P_Vs now..:
# We need this for jamvmPREFERRED_VERSION_classpath = "0.98"
PREFERRED_VERSION_classpath-native = "0.98"
And all PREFERRED_PROVIDERs set by compatibility-providers.conf
Regards,
Quoted 27 lines
must be something different ...
seems like jamvm version 1.4.5 does not have the "-o" switch !?I currently use
PREFERRED_VERSION_jamvm-initial = "1.4.5"
PREFERRED_VERSION_classpath-initial = "0.93"PREFERRED_VERSION_jamvm-native = "1.5.3"
PREFERRED_VERSION_classpath-native = "0.98"
PREFERRED_VERSION_jamvm= "1.5.2"
PREFERRED_VERSION_classpath= "0.98"PREFERRED_VERSION_libecj-bootstrap = "3.4"
as recommended in the openembedded wiki ...
regards,
chris._______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 3 lines
uin:136542059 jid:[email protected] Jansa Martin sip:[email protected] JaMa
Quoted 10 lines · Martin Jansa <martin.jansa <at> gmail.com> writes:
Quoted 4 lines
I did a git pull, cleared the tmp folder and let bitbake run during the night, but get the same error:
Unrecognised command line option: -o
Strange because this should be built only with gjdoc enabled, which I disabled, because I had exactly the same problem (it worked only on system with antlr installed also outside OE staging).
thanks for the patch,
i use the angström distro, machine=beagleboard
and applied the patch manually.
my most recent build, uses the original setup (no P_Vs defines) and the adjustment of the memory option suggested by Dallas ("-Xmx512m" in recipes/ecj/files/ecj.in)
this try showed success: configure and compile of classpath-initial worked, but I got another error at:
task 2434 of 7953 (ID: 3753, /media/disk/overo-oe/org.openembedded.dev/recipes/antlr/antlr-native_2.7.7.bb, do_compile)
ERROR: function do_compile failed
ERROR: log data follows (/media/disk/overo-oe/tmp/work/i686-linux/ \
antlr-native-2.7.7-r0/temp/log.do_compile.11606)
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse
/jdt/internal/compiler/batch/Main
Caused by: java.lang.ClassNotFoundException:
org.eclipse.jdt.internal.compiler.batch.Main not found in java.lang.ClassLoader
Quoted 11 lines
I did it only for classpath-native, maybe you need similar workaround for classpath (if you don't need to build gjdoc).
# SHR distro.. We had only this
P_Vsnow..:# We need this for jamvm
PREFERRED_VERSION_classpath= "0.98"
PREFERRED_VERSION_classpath-native = "0.98"And all
PREFERRED_PROVIDERsset by compatibility-providers.conf
OK. i will try that next...
thank you,
regards,
chris
Quoted 7 lines · Martin Jansa <martin.jansa <at> gmail.com> writes:
Quoted 1 line · Chris Veigl
Martin Jansa <martin.jansa <at> gmail.com> writes:
I did it only for classpath-native, maybe you need similar workaround for classpath (if you don't need to build gjdoc).
Quoted 7 lines
# SHR distro.. We had only this
P_Vsnow..:# We need this for jamvm
PREFERRED_VERSION_classpath= "0.98"
PREFERRED_VERSION_classpath-native = "0.98"And all
PREFERRED_PROVIDERsset by compatibility-providers.conf
I disabled gjdoc as suggested and used 0.98 for classpath and classpath-native, now i get lots of compilation-errors at
task 4127 of 7953 (ID: 2078, /media/disk/overo-oe/org.openembedded.dev/recipes /maemo4/libhildonfm_1.9.46.bb, do_compile)
ERROR: function do_compile failed
(in files hildon-file-system-model.h, hildon-file-common-private.h,
hildon-file-selection.c, errors seem to be gtk - related...)
regards,
chris
Quoted 5 lines
Quoted 4 lines
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel <at> lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel