Build hotspot only in IcedTea after a complete build.

Andrew John Hughes gnu_andrew at member.fsf.org
Fri Aug 21 06:31:41 PDT 2009


2009/8/21 Gary Benson <gbenson at redhat.com>:
> Nagy Mostafa wrote:
>> I am having trouble compiling hotspot only in IcedTea6. I build
>> IcedTea with Zero as follows:
>>
>> ./configure --enable-zero; make;
>>
>
>> Now, I want to modify the bytecode interpreter.  What is the
>> simplest way to compile hotspot only without compiling all of
>> IcedTea.  I tried "make hotspot", but sometimes it doesn't detect
>> my code changes and even worse the build breaks occasionally.
>
> IcedTea has a two stage build when you configure it that way.  The
> first stage is a bootstrap: it builds OpenJDK using GCJ and ECJ.
> The bootstrapped OpenJDK lives in "openjdk-ecj".  The second stage
> builds OpenJDK with the bootstrapped OpenJDK.  This final OpenJDK
> lives in "openjdk".
>
> The "make hotspot" rule in IcedTea rebuilds the HotSpot in the
> bootstrap VM in "openjdk-ecj".  So, to use "make hotspot" you
> need to do an initial build like this:
>
>  ./configure --enable-zero
>  make icedtea-against-ecj
>
> This will build the bootstrap VM only.  Now you can edit the code
> in "openjdk-ecj" and rebuild like this:
>
>  make hotspot
>

Doesn't this mean that 'make hotspot' is broken when you perform a
--with-icedtea build?  If so, that's a bug.  Not sure how to solve it
offhand though.

>> Also, how can you do a "make clean" for hotspot only.
>
> The easiest way is this:
>
>  rm -Rf openjdk-ecj/build/*/hotspot
>
> ...and then do "make hotspot" again.
>

hotspot seems to be about the only thing we don't have a clean-* rule for :)

> Cheers,
> Gary
>
> --
> http://gbenson.net/
>



-- 
Andrew :-)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8


More information about the hotspot-dev mailing list