delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/29/10:18:14

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <loom DOT 20070328T052946-753 AT post DOT gmane DOT org> <4609E84F DOT 6DCFD5C2 AT dessent DOT net> <loom DOT 20070328T082044-204 AT post DOT gmane DOT org> <460A15C3 DOT 9D23BA34 AT dessent DOT net> <loom DOT 20070329T170117-327 AT post DOT gmane DOT org>
Subject: RE: Failed building GCC 4.1.2 on Cygwin
Date: Thu, 29 Mar 2007 16:17:31 +0100
Message-ID: <007001c77215$5ec5ced0$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <loom.20070329T170117-327@post.gmane.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 29 March 2007 16:03, wei wrote:

> When building it I found an error in auto-generated file
> /gcc/configargs.h.If having interest,copy the code below and compile it
> with gcc,see what the results will be.
> 
> static const char configuration_arguments[] = "../gcc-4.1.2/configure
> -prefix=/opt/gcc412
> ";

> After appending opt/bin to PATH,g++4.1.2 can work.

  This looks to me like you made a typo on the command line.  You need two
dashes before the --prefix option, not one.  That's why gcc didn't know where
to look for its files.

> It seems include files and library's path have been set automaticly.
> Where are the settings?I typed set to list all environment variables,but I
> didn't see LIBRARY_PATH,C_INCLUDE_PATH and so on.

  They're based on $prefix and compiled directly into the gcc.exe driver
program - hence the problems!

> After building gcc,I wanted to build g++.but I didn't know how to build it
> alone.So after unziping gcc-g++-4.1.2.tar.bz2 I used the configure file in
> gcc-core-4.1.2.tar.bz2.Did the generated makefile rebuild gcc-core?

  Yes, this is fine; you just untar gcc-core plus whatever additional
languages you want into the same place, and the standard configure file from
gcc-core will include all of them in your build.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
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