X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: wei <wei.niu@gmail.com>
Subject:  Re: Failed building GCC 4.1.2 on Cygwin
Date: Thu, 29 Mar 2007 15:02:34 +0000 (UTC)
Lines: 32
Message-ID:  <loom.20070329T170117-327@post.gmane.org>
References:  <loom.20070328T052946-753@post.gmane.org> <4609E84F.6DCFD5C2@dessent.net> <loom.20070328T082044-204@post.gmane.org> <460A15C3.9D23BA34@dessent.net>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Thank you very much!

I've successfully builded gcc-core-4.1.2 and gcc-g++-4.1.2.You are right.The
reason is I used mingw's make, not cygwin's.

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

Unlike gcc when compiling with Vc7 it's OK.If you know why,please tell me.

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

$ gcc -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: ../gcc-4.1.2/configure -prefix=/opt/gcc412
Thread model: single
gcc version 4.1.2

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.

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?



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

