public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* Testing GCJ in Linux RedHat!
@ 2000-04-01  0:00 Oscar Martinez de la Torre
  2000-04-01  0:00 ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: Oscar Martinez de la Torre @ 2000-04-01  0:00 UTC (permalink / raw)
  To: Java GCJ Mail List, RTEMS-LIST; +Cc: Jiri Gaisler, Stig Mejnertsen

[-- 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-04-01  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-01  0:00 Testing GCJ in Linux RedHat! Oscar Martinez de la Torre
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

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).