Re: GCJ building

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Wed, 2012-03-14 at 09:13 +0000, David Paterson wrote:
> Sorry, but you obviously haven't followed the step-by-step
> instructions.  You may think you are, but you appear to be building in
> the wrong directory - there's no sign of a "compiler" directory name
> in the error messages, and the build should not be happening in the
> source tree.  This appears to be just a copy and paste of messages
> from previous emails.
> 
> We've asked you several times to paste in the commands you're using,
> but you haven't done that.  I have no idea what you're doing, but it
> certainly isn't what everyone keeps telling you to do.

Here is a list of instructions that even my cat could follow:

1. Open a MinGW shell.
2. Type: rm -rf /g; mkdir /g
3. Download the following files from
ftp://gcc.gnu.org/pub/gcc/infrastructure/ :
  gmp-4.3.2.tar.bz2
  mpfr-2.4.2.tar.bz2
  mpc-0.8.1.tar.gz
4. Place these files in the g directory you just created. If you just
accepted all the defaults that the MinGW installer supplied, this will
be at C:\MinGW\msys\1.0\g .
5. Download the following files from
ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.6.3/ :
  gcc-4.6.3.tar.bz2
  gcc-java-4.6.3.tar.bz2
6. Place these files in the g directory you created.
7. Go back to the MinGW shell window.
8. Type the following:
  cd /g
  tar jxf gmp-4.3.2.tar.bz2
  cd gmp-4.3.2
  ./configure --prefix=/mingw
  make && make install
  cd /g
  tar jxf mpfr-2.4.2.tar.bz2
  cd mpfr-2.4.2
  ./configure --prefix=/mingw
  make && make install
  cd /g
  tar zxf mpc-0.8.1.tar.gz
  cd mpc-0.8.1
  ./configure --prefix=/mingw
  make && make install
  cd /g
  tar jxf gcc-4.6.3.tar.bz2
  tar jxf gcc-java-4.6.3.tar.bz2
  mkdir build
  cd build
  ../gcc-4.6.3/configure --prefix=/mingw --enable-java
  make && make install

If this doesn't work, you sodded something up: either you typed
something wrong, or you did something else not described here. Start
again from step 1. If it still doesn't work, you probably broke your
MinGW installation. Uninstall it and reinstall it using the defaults,
then start again from step 1.

This results in a working gcj on a clean Windows XP SP3 for me.



[Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

Add to Google