public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: Oscar Martinez de la Torre <omt@wm.estec.esa.nl>
To: Java GCJ Mail List <java-discuss@sourceware.cygnus.com>,
	RTEMS-LIST <rtems-users@oarcorp.com>
Cc: Jiri Gaisler <jgais@ws.estec.esa.nl>,
	Stig Mejnertsen <smejnert@estec.esa.nl>
Subject: Testing GCJ in Linux RedHat!
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <38B56728.F7F4F78C@wm.estec.esa.nl> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3285 bytes --]

Hello!

	I'm trying to run JAVA in ERC32 (a space microprocessor like "sparc")
	I'm trying Kaffe + RTEMS (A RTOS which works on ERC32)
	But as I'm finding lots of problems in it (any suggestions is welcome)
	I'm also trying GCJ approach!

	There is a RPM with gcj but no libgcj:
	sparc-rtems-gcj-gcc2.95.2newlib1.8.2-2.i386.rpm
	
	But what I have got is this:
/opt/rtems/bin/sparc-rtems-gcj HelloWorldApp.java
/opt/rtems/sparc-rtems/bin/ld: warning: cannot find entry symbol _start;
defaulting to 00010094
/tmp/ccAPF0Ls.o: In function `HelloWorldApp::HelloWorldApp(void)':
/home/omt/GCJ/HelloWorldApp.java(.text+0x10): undefined reference to
`java::lang::Object::Object(void)'
/tmp/ccAPF0Ls.o: In function
`HelloWorldApp::main(JArray<java::lang::String *> *)':
/home/omt/GCJ/HelloWorldApp.java:2: undefined reference to
`_Jv_InitClass'
/home/omt/GCJ/HelloWorldApp.java:3: undefined reference to
`_CL_Q34java4lang6System'
/home/omt/GCJ/HelloWorldApp.java:3: undefined reference to
`_CL_Q34java4lang6System'
/home/omt/GCJ/HelloWorldApp.java:3: undefined reference to
`_Jv_InitClass'
/home/omt/GCJ/HelloWorldApp.java:3: undefined reference to
`java::lang::System::out'
/home/omt/GCJ/HelloWorldApp.java:3: undefined reference to
`java::lang::System::out'
/tmp/ccAPF0Ls.o: In function `global constructors keyed to
HelloWorldApp::HelloWorldApp(void)':
/home/omt/GCJ/HelloWorldApp.java(.text+0x90): undefined reference to
`_Jv_RegisterClass'
/tmp/ccAPF0Ls.o: In function
`HelloWorldApp::main(JArray<java::lang::String *> *)':
/home/omt/GCJ/HelloWorldApp.java:2: undefined reference to
`java::lang::Object::clone(void)'
/home/omt/GCJ/HelloWorldApp.java:2: undefined reference to
`java::lang::Object::equals(java::lang::Object *)'
/home/omt/GCJ/HelloWorldApp.java:2: undefined reference to
`java::lang::Object::finalize(void)'
/home/omt/GCJ/HelloWorldApp.java:2: undefined reference to
`java::lang::Object::hashCode(void)'
/home/omt/GCJ/HelloWorldApp.java:3: undefined reference to
`java::lang::Object::toString(void)'
/home/omt/GCJ/HelloWorldApp.java:3: undefined reference to
`java::lang::Class virtual table'
/home/omt/GCJ/HelloWorldApp.java:3: undefined reference to
`_CL_Q34java4lang6Object'
collect2: ld returned 1 exit status

	Also, it seems that libgcj is no so easy to port and crosscompile!

	I have also tried GCJ in a RedHat Linux i386 machine by converting deb
to rpm with alien!

gcj-2.95.2-7.i386.rpm  gcj_2.95.2-6.deb libgcj0-2.95.1-4.i386.rpm 
libgcj0_2.95.1-3.deb

	Also I had to set a suitable location for some libraries and files...

	At the end, I have got this:

gcj HelloWorldApp.java  
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
/usr/lib/gcc-lib/i386-linux/2.95.2/libgcj.so: undefined reference to
`__rethrow'
/usr/lib/gcc-lib/i386-linux/2.95.2/libgcj.so: undefined reference to
`__start_cp_handler'

	
	Any suggestions, experiences using GCJ / libgcj or
	also running Java on RTEMS will be welcome!

Thanks,
									Oscar

- 
Óscar Martínez de la Torre -  Office Phone: +31-(0)71.565.5844
Telecommunication Engineer at Universidad Politécnica de Madrid 
European Space Agency ESTEC/TOS/EMS Erasmus Building Office Nb212 
Keplerlaan,1 - NL 2201 AZ - Noordwijk ZH - The Netherlands
Mail: omt@wm.estec.esa.nl - Personal Mail: omt@etsit.upm.es

             reply	other threads:[~2000-04-01  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-01  0:00 Oscar Martinez de la Torre [this message]
2000-04-01  0:00 ` Tom Tromey
     [not found]   ` <38B5D6A5.F5B09896@connecttel.com>
2000-04-01  0:00     ` Joel Sherrill
2000-04-01  0:00     ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=38B56728.F7F4F78C@wm.estec.esa.nl \
    --to=omt@wm.estec.esa.nl \
    --cc=java-discuss@sourceware.cygnus.com \
    --cc=jgais@ws.estec.esa.nl \
    --cc=rtems-users@oarcorp.com \
    --cc=smejnert@estec.esa.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).