This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Errors issued while building GCC
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Ankur Gupta'" <ankur17 at gmail dot com>, <gcc at gcc dot gnu dot org>
- Cc: "'Ankur Gupta'" <ankurgupta at acmet dot com>
- Date: Wed, 28 Nov 2007 13:05:51 -0000
- Subject: RE: Errors issued while building GCC
- References: <200711281033.lASAXq903808@alice.acmet.com> <abcfa5120711280226j26aa7e76we694c8fe17e37f5d@mail.gmail.com> <abcfa5120711280229v71bcf659qffcc2b1862010fac@mail.gmail.com>
On 28 November 2007 10:29, Ankur Gupta wrote:
> Hello,
>
> I am newly assigned to GNU CC work. I am using Win-xp-sp2 and Cygwin to
> build GCC. I have successfully installed the 'binutils', but while building
> GCC below errors are being issued:
These kinds of minor issues in building or using the compiler really belong
on the gcc-help list; this list is intended for ongoing development work on
the internals of the compiler itself. However, since you're here...
> --cut--
> ../.././gcc/config/mips/mips.md:3318:5: missing terminating " character
> ../.././gcc/config/mips/mips.md:3319: error: stray '\' in program
> ../.././gcc/config/mips/mips.md:3319: error: syntax error before "n"
> ../.././gcc/config/mips/mips.md:3321: error: stray '\' in program
I believe you have got stray CR-LF line endings on your source code; this is
a fairly common problem on Cygwin if you use a non-Cygwin gui program such as
WinZIP etc. to unpack the GCC source archive. If that's what you did, don't:
windows GUIs tend to want to convert LF line endings to CR-LF. Use Cygwin's
'tar' utility to unpack the archive instead, like so
tar xvjf gcc-${ver}.tar.bz2
(or use 'tar xvzf' if you are unpacking a .tar.gz file instead).
If it's not because you used a gui to unpack the tarball, it's probably
because you're using text-mode mountpoints; come and discuss it on the cygwin
list if so.
cheers,
DaveK
--
Can't think of a witty .sigline today....