This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcj compilation


hi all,

I'm trying to compile gcj con a mips patform:
I compileg gcc-3.3.4

../gcc/configure --enable-threads=posix --enable-libgcj 
--prefix=/home/joerg/g\
cc --enable-shared --enable-languages=c++,java

make bootstrap
make

but when I run

gcj --main=Hello -o Hello Hello.java

I get

gcj: libgcj.spec: No such file or directory

As I understand, the libjava is missing: so I did

cd javalib
./configure --enable-threads=posix --prefix=/home/joerg/gcc
--with-system-zlib
make

but the make stos with:

c++ -DHAVE_CONFIG_H -I. -I. -I./include -I./gcj -I. -Iinclude
-I./include -I./.\
./boehm-gc/include -I./libltdl -I./libltdl -I./.././libjava/../gcc
-I./../libff\
i/include -I../libffi/include -fno-rtti -fnon-call-exceptions
-fdollars-in-iden\
tifiers -Wswitch-enum -W -Wall -D_GNU_SOURCE
-DPREFIX=\"/home/joerg/gcc\" -g -O\
2 -Wp,-MD,.deps/prims.pp -c prims.cc  -fPIC -DPIC -o .libs/prims.o
In file included from gcj/cni.h:16,
                 from include/platform.h:40,
                 from prims.cc:12:
java/lang/Object.h:8: error: syntax error before `::' token
java/lang/Object.h:14: error: syntax error before `(' token
java/lang/Object.h:17: error: `jlong' was not declared in this scope


Any idea what's going on? The file Object.h is the following.

Thanks
giammy


// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_lang_Object__
#define __java_lang_Object__

#pragma interface

class ::java::lang::Object
{
public:  // actually protected
  virtual void finalize () { }
public:
  ::java::lang::Class *getClass ();
  virtual jint hashCode ();
  void notify ();
  void notifyAll ();
  void wait (jlong, jint);
  virtual jboolean equals (::java::lang::Object *);
  Object () { }
  virtual ::java::lang::String *toString ();
  void wait ();
  void wait (jlong);
public:  // actually protected
  virtual ::java::lang::Object *clone ();
private:
  void sync_init ();
public:

  static ::java::lang::Class class$;
};

#endif /* __java_lang_Object__ */





--
Gianluca Moro          http://groups.yahoo.com/group/embeddeditalia/
ISCRIVITI alla         Mailing List Italiana su LINUX EMBEDDED
giangiammy@yahoo.com   Visit http://ilpinguino.altervista.org/


	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]