Re: compiling gcc under windows/cygwin

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

 



Sigurd Lerstad wrote:

> : command not foundure: line 2:
> : command not foundure: line 9:
> : command not foundure: line 41:
> : command not foundure: line 75:
> : command not foundure: line 82:
> './gcc-4.1.1/configure: line 85: syntax error near unexpected token 'do
> './gcc-4.1.1/configure: line 85: 'do

You have stumbled into a line-endings problem.  The newer versions of
'bash' packaged with Cygwin no longer unconditionally ignore CR
characters in line endings as previous versions did.  There are several
ways to avoid the problem:

Ensure that the files on disk actually have LF and not CRLF line
endings.  If you used a native windows app like winzip to unpack the
tarball in conjunction with binary-mode mounts then that would cause the
problem; use Cygwin's tar command instead.

OR

Unpack the files into a directory mounted as textmode.

OR

Set the igncr shopt in bash to make it ignore CR characters.

The first of the three is by far the best route, as textmode can cause
all kinds of strange failures, especially on a large and complex build
system like gcc.

See the Cygwin mailing list archives for the extensive and numerous
threads on this topic.

Brian

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

  Powered by Linux