From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1626 invoked by alias); 31 Jan 2006 09:53:59 -0000 Received: (qmail 1617 invoked by uid 22791); 31 Jan 2006 09:53:58 -0000 X-Spam-Check-By: sourceware.org Received: from dessent.net (HELO dessent.net) (69.60.119.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 31 Jan 2006 09:53:54 +0000 Received: from localhost ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.60) (envelope-from ) id 1F3sCu-0004S9-DS for gcc-help@gcc.gnu.org; Tue, 31 Jan 2006 09:53:52 +0000 Message-ID: <43DF33B0.2F561C7F@dessent.net> Date: Tue, 31 Jan 2006 09:53:00 -0000 From: Brian Dessent MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: compilation problem References: <43DF30F1.90304@st.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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-01/txt/msg00260.txt.bz2 James HAUXWELL wrote: > $ ./configure '--enable-languages=c' --enable-threads=posix You're building inside the source directory. That's not supported and may break in strange ways. You should build in a completely separate build directory that is not a subdirectory of the source tree. And give the full path to configure when configuring. This is explained in the installation directions. > $ gcc pestoes.c -mno-cygwin -v pestoes.exe You built a Cygwin compiler but now you're asking it to use the mingw compiler... > gcc: error trying to exec 'cc1': execvp: No such file or directory ...which does not exist. If you want to use a mingw compiler you will have to build one (--target=mingw32). If you want a Cygwin compiler that has a working -mno-cygwin you will have to build both a Cygwin gcc and a mingw gcc and install them in the same tree. You may have to tweak the specs file as well. If your end goal is a mingw compiler then just build one and call it directly, instead of trying to use -mno-cygwin. Brian