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

>>>>> "Oscar" == Oscar Martinez de la Torre <omt@wm.estec.esa.nl> writes:

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

As far as I know libgcj has not been ported to RTEMS.

Oscar> /opt/rtems/bin/sparc-rtems-gcj HelloWorldApp.java

From the messages it looks like you don't have libgcj (of course), and
so you can't link.  libgcj is required to link a gcj-compiled program.

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

I cross compile it routinely.
I've ported it, too.  It isn't trivial, but it is possible.
There is some help available on the web page.  Did you look there?

I doubt I'll be doing an RTEMS port unless somebody hires us to do
one.  We rely on volunteer effort for things like this.

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

Try gcj --main=HelloWorldApp HelloWorldApp.java

This is documented on our web pages:

http://sourceware.cygnus.com/java/

Tom

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

* Re: Testing GCJ in Linux RedHat!
       [not found]   ` <38B5D6A5.F5B09896@connecttel.com>
@ 2000-04-01  0:00     ` Tom Tromey
  2000-04-01  0:00     ` Joel Sherrill
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Tromey @ 2000-04-01  0:00 UTC (permalink / raw)
  To: Rosimildo da Silva
  Cc: Tom Tromey, Oscar Martinez de la Torre, Java GCJ Mail List,
	RTEMS-LIST, Jiri Gaisler, Stig Mejnertsen

>>>>> "Rosimildo" == Rosimildo da Silva <rdasilva@connecttel.com> writes:

>>  As far as I know libgcj has not been ported to RTEMS.

Rosimildo> As far I can tell from the messages posted to the
Rosimildo> RTEMS-list recently, the port is done. The team that did
Rosimildo> it, is packaging things together and writing some web-pages
Rosimildo> to help the others.

Any chance of having this code contributed back to the core?  I can
provide information on what needs to be done to make this happen (from
our side).

Tom

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

* 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

* Re: Testing GCJ in Linux RedHat!
       [not found]   ` <38B5D6A5.F5B09896@connecttel.com>
  2000-04-01  0:00     ` Tom Tromey
@ 2000-04-01  0:00     ` Joel Sherrill
  1 sibling, 0 replies; 4+ messages in thread
From: Joel Sherrill @ 2000-04-01  0:00 UTC (permalink / raw)
  To: Rosimildo da Silva
  Cc: Tom Tromey, Oscar Martinez de la Torre, Java GCJ Mail List,
	RTEMS-LIST, Jiri Gaisler, Stig Mejnertsen

Rosimildo da Silva wrote:
> 
> >
> > As far as I know libgcj has not been ported to RTEMS.
> >
> 
> As far I can tell from the messages posted to the
> RTEMS-list recently, the port is done. The team
> that did it, is packaging things together and
> writing some web-pages to help the others.

What was required?  We have been packaging RPMs for the
tools.  I would like to add libgjc to the list of things
included.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985

^ 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     ` Tom Tromey
2000-04-01  0:00     ` Joel Sherrill

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