From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14330 invoked by alias); 21 Jun 2006 20:41:33 -0000 Received: (qmail 14319 invoked by uid 22791); 21 Jun 2006 20:41:32 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-send.myrealbox.com (HELO smtp-send.myrealbox.com) (151.155.5.143) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 21 Jun 2006 20:41:29 +0000 Received: from [192.0.3.3] tprince [63.192.140.4] by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision: 1.6 $ on Linux; Wed, 21 Jun 2006 14:41:27 -0600 Message-ID: <4499AEEF.1080809@sbcglobal.net> Date: Wed, 21 Jun 2006 20:41:00 -0000 From: Tim Prince Reply-To: tprince@myrealbox.com User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Alexander Shabanov CC: gcc-help@gcc.gnu.org Subject: Re: xgcc unable to build libgcc under mingw References: <43a7c3700606210206r9910791t33a35f4d7e8a81d6@mail.gmail.com> In-Reply-To: <43a7c3700606210206r9910791t33a35f4d7e8a81d6@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-06/txt/msg00170.txt.bz2 Alexander Shabanov wrote: > Hello! > > As I said in my previous question - I tried to compile gcc under > mingw. If we want to compile gcc under mingw, we must specify path to > `ld', like '../configure --with-ld=/mingw/bin/ld'. Compilers built > fine - we obtain $(MINGW_OBJDIR)/gcc/cc1plus, cc1, xgcc, etc. After > building makefile tried to build libgcc using xgcc, but unable to do > it: > > --------------------- BEGIN > make[3]: Entering directory > `/d/GnuProjects/gcc/gcc-4.1.1/obj_mgw_nostdcpp/gcc' > > /d/GnuProjects/gcc/gcc-4.1.1/obj_mgw_nostdcpp/./gcc/xgcc > -B/d/GnuProjects/gcc/gcc-4.1.1/obj_mgw_nostdcpp/./gcc/ > -B/usr/local/i686-pc-mingw32/bin/ -B/usr/local/i686-pc-mingw32/lib/ > -isystem /usr/local/i686-pc-mingw32/include -isystem > /usr/local/i686-pc-mingw32/sys-include -O2 > -I../../gcc/../winsup/w32api/include -O2 -g -O2 -DIN_GCC -W -Wall > -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes > -Wold-style-definition -isystem ./include -g -DHAVE_GTHR_DEFAULT > -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc > -I../../gcc/. -I../../gcc/../include -I./../intl > -I../../gcc/../libcpp/include -DL_negdi2 -c ../../gcc/libgcc2.c -o > libgcc/./_negdi2.o > In file included from ../../gcc/libgcc2.c:33: > ../../gcc/tsystem.h:90:19: error: stdio.h: No such file or directory > ../../gcc/tsystem.h:93:23: error: sys/types.h: No such file or directory > ../../gcc/tsystem.h:96:19: error: errno.h: No such file or directory > ../../gcc/tsystem.h:103:20: error: string.h: No such file or directory > ../../gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory > ../../gcc/tsystem.h:105:20: error: unistd.h: No such file or directory > In file included from ./include/limits.h:122, > --------------------- END > As I understood, it happens, because makefile script unable to find > correct path to sysincludes headers. > > Please, explain, how can I fix it? > Sometimes, it has been necessary to copy all the include files to the appropriate position in the --prefix directory you specified during configure, prior to building gcc. I can't see whether you did that.