From: "Dave Korn" <dk@artimi.com>
To: "'Fabian Cenedese'" <Cenedese@indel.ch>, <gdb@sources.redhat.com>
Subject: RE: gdb and older cygwins
Date: Thu, 26 Aug 2004 16:10:00 -0000 [thread overview]
Message-ID: <NUTMEGsl3xbYiMCIqtQ00000fb4@NUTMEG.CAM.ARTIMI.COM> (raw)
In-Reply-To: <5.2.0.9.1.20040826163328.01d43c40@NT_SERVER>
> -----Original Message-----
> From: gdb-owner On Behalf Of Fabian Cenedese
> Sent: 26 August 2004 15:58
> >> > PS: The other solution would be to fix the 2.95.3 source
> about this
> >> > CRLF bug. I looked into the gcc list but couldn't find
> >> simple patches,
> >> > I guess it needs a bigger change. If anyone has some hints
> >> about it...
> >
> > My first hint is this: never use WinZIP to unpack a
> tarball in a cygwin
> >environment, because it does the wrong thing with soft-links
> and it mangles
> >all the line endings. Use "tar xfv" instead.
> >
> > [Did I guess correctly how you managed to get your gcc
> sources mangled?]
>
> It depends. I use cygwin only to compile gcc/gdb+co. The
> intended platform
> to use them is Windows with cygwin.dll, not the whole Cygwin
> system. So
> the source files which gcc will need to cope with ARE Windows
> text files.
You have two misunderstandings here:
#1. The cygwin dll is all you need to be using Cygwin; it's the dll that
provides the posix environment, it's the dll that handles
textmode-vs-binmode and line endian-ness issues. Windows-plus-cygwin-dll
equals cygwin equals Unix style line-ends.
#2. It doesn't matter what platform you want to compile on. The gcc
sources come with Unix-style LF line ends. They are NOT Windows text files
unless *you* have altered them. If they now have CRs in them, it was *you*
who put them there, when you didn't need to do so, and if you hadn't done
so, it would have compiled fine under 2.95.3
> The source files for gcc and gdb of course I didn't unpack
> with Winzip,
> and if it's only because it doesn't understand tar/gz/bzip2 :)
It didn't understand bzip2 last time I checked, but it had no trouble
whatsoever with either tar, gz, or .tar.gz. In fact some versions (v8
upward IIRC) even have an option to decide whether to mangle line-ends or
not specifically when unpacking a tar file.
> As I will use gcc and gdb from Windows (and not in Cygwin) I guess
> this is no option for me.
As I point out above, if the cygwin dll is involved, you *are* in Cygwin;
what you are running is *not* a native windows app and will follow Cygwin's
preferences for line-end style.
cheers,
DaveK
--
Can't think of a witty .sigline today....
next prev parent reply other threads:[~2004-08-26 16:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-26 11:10 Fabian Cenedese
2004-08-26 12:53 ` Michael Chastain
2004-08-26 13:23 ` Fabian Cenedese
2004-08-26 14:23 ` Dave Korn
2004-08-26 14:56 ` Fabian Cenedese
2004-08-26 16:10 ` Dave Korn [this message]
2004-08-27 7:28 ` Fabian Cenedese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=NUTMEGsl3xbYiMCIqtQ00000fb4@NUTMEG.CAM.ARTIMI.COM \
--to=dk@artimi.com \
--cc=Cenedese@indel.ch \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox