delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/21/18:09:14

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Lee Rhodes <lee AT rhoba DOT com>
Subject: Help compiling gcc 4.2.0
Date: Thu, 21 Jun 2007 20:46:36 +0000 (UTC)
Lines: 42
Message-ID: <loom.20070621T223937-435@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hello,

  I have not been able to find g++ 4.2.0 binaries for Windows/XP on line,
so I am trying to compile g++ from source (groan!).  

My steps so far:
1.  I have installed Cygwin also checking that the following were included:
    - bash (3.2.17-15)
    - binutils (20060817-1)
    - gcc / gcc-core / g++ (3.4.4-3)
    - make (3.81-1)
    For the testsuite:
    - dejagnu (20021217-2)
    - tar (1.16.1-1)
    - expect (20030128-1)
    - tcltk (20060202-1)

2. I have downloaded the following tars into my cygwin/home/src/gcc-4.2.0 
directory:
    - gcc-core-4.2.0.tar
    - gcc-g++-4.2.0.tar
    - gcc-testsuite-4.2.0.tar

3. I have set up separate build and target directories:
    - Build:  ~/src/gcc-obj
    - Target: /usr/local/gcc-4.2.0

I am struggling with the infamous unix/dos end-of-line '\r\n' vs '\n'
incompatibilities.  It seems that no matter what shell I use (bash, sh, 
Cygwin, rxvt, dos) that the gnu make utility throws errors when it sees the 
'\r' CR character.  

  Do I have to convert ALL the downloaded files into the unix format 
(dos2unix)? (Yikes!) or is there a global setting that I can use so that 
I don't have to do that.

  I have William von Hagen's book "The Definitive Guide to GCC" and have 
studied the Cygwin and GCC docs but I haven't found a good solution (yet).

  Any help would be appreciated.

Lee.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019