This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Error While compiling GCJ 4.1
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: csplrj at yahoo dot co dot in
- Cc: java at gcc dot gnu dot org
- Date: Fri, 02 Jun 2006 12:35:33 +0530
- Subject: Re: Error While compiling GCJ 4.1
- Openpgp: url=http://rmathew.com/aa_6C114B8F.txt
- References: <20060601132717.72724.qmail@web8514.mail.in.yahoo.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Chirag wrote:
>
> I had downloaded gcc-4.1.1.tar.bz2 and am trying to
> compile at mingw with the help of
> http://rmathew.com/articles/gcj/bldgcj.html Tutorial
These are instructions for compiling GCJ/MinGW *on Linux*
(or a UNIX system - I had once repeated the process as-is
on a Solaris 8 box using GNU GCC/binutils/bash, but I don't
know if this is still valid). I don't know if this would
work with Cygwin/MSYS on Windows.
> sed -f /binutsrc/binutils-2.16.1/bfd/targmatch.sed <
> /binutsrc/binutils-2.16.1/bfd/config.bfd >
> targmatch.new
> sed: file /binutsrc/binutils-2.16.1/bfd/targmatch.sed
> line 1: Extra characters after command
If you're building on a Linux box, check if this file
(targmatch.sed) has CRLF endings (in vi/vim, you'd see
^M at the end of every line). If it doesn't, you probably
have an old version of sed and you might want to upgrade
it. If it does, remove the binutils source folder and
extract it afresh from the original FSF tarballs on Linux
itself.
As I said before, if you're on MSYS/Cygwin, I don't know
if the process given in the article works well or not. Try
a search on Google to see if others have faced this issue
or not.
HTH,
Ranjit.
- --
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://rmathew.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEf+M9Yb1hx2wRS48RAoL3AJsEoWhWjvJHUOQZIAneb+n87YYGIgCdFcMN
0aHq3QOTTR1dEMRxCJ0N62E=
=hdWY
-----END PGP SIGNATURE-----