From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32705 invoked by alias); 15 Jun 2013 13:18:23 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 32694 invoked by uid 89); 15 Jun 2013 13:18:22 -0000 X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS,TW_CX,TW_DC,TW_GW,TW_JL,URI_HEX autolearn=no version=3.3.1 Received: from mail-bk0-f48.google.com (HELO mail-bk0-f48.google.com) (209.85.214.48) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 15 Jun 2013 13:18:21 +0000 Received: by mail-bk0-f48.google.com with SMTP id jf17so614514bkc.7 for ; Sat, 15 Jun 2013 06:18:19 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.204.202.79 with SMTP id fd15mr927236bkb.88.1371302299106; Sat, 15 Jun 2013 06:18:19 -0700 (PDT) Received: by 10.204.188.208 with HTTP; Sat, 15 Jun 2013 06:18:19 -0700 (PDT) In-Reply-To: References: Date: Sat, 15 Jun 2013 13:18:00 -0000 Message-ID: Subject: Re: GCC 4.8.1 building fails From: Ignas To: Jonathan Wakely , David Kredba Cc: gcc-help Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-06/txt/msg00111.txt.bz2 Thank you both help. I'll use mingwbilds for now, I didn't knew about them, and thought that GCC 4.6 is the latest version available, which is pretty old. I also thought, that from all the ways to use gcc on windows, MinGW would work the best. Now I'm wondering, what is the most supported and reasonable way to compile gcc on windows? without any sdk's, consoles, editors, etc. just plain good gcc and its components what would produce native windows binaries what do not require some special dlls like cygwin does. On Sat, Jun 15, 2013 at 2:53 PM, Jonathan Wakely wrote: > On 15 June 2013 09:44, Ignas wrote: >> I uninstalled MinGW and installed it again with all the latest stuff. >> I tried to compile gcc 2 more times, without any luck. I defined >> constants with paths to MinGW's include and lib folder, I tried to use >> configure closely resembling the one used to compile gcc what came >> with MinGW: >> configure --disable-sjlj-exceptions --enable-shared --enable-libgomp >> --disable-win32-registry --enable-lib-stdcxx-debug >> --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw >> It always fails when it gets to a part of making things inside a build >> folder, previously it was [objdir]/i686-pc-mingw32, this time it was >> [objdir]/mingw32. Second time, I've tried to compile with binutils >> source inside [srcdir]. >> >> >> Based on all that, I conclude, that it is a bug with gcc in area >> related to Windows, MinGW, or compiling itself. >> As I've said in my first email, gcc configures and makes all >> libraries(gmp, mpfr, mpc, etc.) successfully, I've checked >> [objdir]/[library name], they have .a, .o, etc. sometimes .exe and >> .dll files, indicating what my MinGW installation is working fine, I'm >> pretty sure it would have never compiled all that successfully if it >> was broken. I've also checked [objdir]/gcc , it was also compiled >> successfully. >> Problem always starts somewhere when it tries to make the >> [objdir]/[build folder], it appears to me, that at this point, gcc is >> using its own compiled binaries to compile further, and that's when it >> crashes. > > When I tried to build MinGW the only way I could make it work was > using an "identity mount", I don't know why that's necessary. The > whole experience of trying to build MinGW was extremely annoying and > painful. Quoting from > http://mingw-users.1079350.n2.nabble.com/How-to-build-GCC-on-MinGW-MSYS-td5868612.html: > > > These days, I make a point of building GCC in "identity" mounts, where > the Unixy path ("/mingw") directly corresponds to the underlying Windows > path ("C:\mingw"). This shouldn't be strictly necessary, but I suspect > there are some gotchas that can be avoided that way. To change your > /mingw to an identity mount, move E:\Temp\mingw\msys\1.0\mingw to > E:\mingw, and edit your E:\Temp\mingw\msys\1.0\etc\fstab accordingly.