This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Trouble building gcj 4.8.1
- From: Mike Hearn <mike at plan99 dot net>
- To: Andrew Haley <aph at redhat dot com>
- Cc: GCC Java <java at gcc dot gnu dot org>
- Date: Tue, 25 Jun 2013 16:10:10 +0200
- Subject: Re: Trouble building gcj 4.8.1
- References: <CANEZrP3wxTPvx5Ky2O1qds427t9LxtSt0Bm3GntjcN63_0+3rw at mail dot gmail dot com> <CANEZrP0vTN_MAe4jOamUqKnkyXgNYJ-bsUnovANV36evGdJWPA at mail dot gmail dot com> <51C87C22 dot 9030201 at redhat dot com> <CANEZrP2woCNh4P+a-xTWqqz+PKEi01C0PU+D_TVu1jn2CeDaNw at mail dot gmail dot com> <51C88147 dot 8060508 at redhat dot com> <CANEZrP0WwGL40Vguonwb2CLvpvYmCaRTkO+wZqZ6uTGvtGxu0w at mail dot gmail dot com> <51C9A389 dot 6030000 at redhat dot com>
> No, you have to put it in your own path. It does say so in the
> instructions.
Ah. The docs say:
"If this option is given, the âlibjavaâ build will create and install
an ecj1 executable which uses this jar file at runtime. If this
option is not given, but an ecj.jar file is found in the topmost
source tree at configure time, then the âlibgcjâ build will create and
install ecj1, and will also install the discovered ecj.jar into a
suitable place in the install tree."
I interpreted "create and install" to mean it'll be put into bin by
"make install", it might be clearer if it said explicitly that you
have to copy it or put the script there yourself.
My goal with all this is to compile and run a Java program as a MIPS
program that is as small as possible, which I intend to do by:
- Compiling with GCJ, as MIPS supporting Java VMs are rare
- Enabling as many dead code elimination passes as possible,
including LTO with a static libgcj
in the hope that I can get a nice small, self contained binary out of the end.
As a bonus, I'd also like to enable usage of a library that this
program uses from C++ codebases using CNI, although that's secondary
right now.
Could you maybe elaborate on the ninja stuff? Why are there two copies
of these core classes? How much effort is it to fix things up - are we
talking a few days here, a few weeks, a few months?