From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15263 invoked by alias); 20 Dec 2006 04:53:53 -0000 Received: (qmail 15248 invoked by uid 22791); 20 Dec 2006 04:53:52 -0000 X-Spam-Check-By: sourceware.org Received: from eastrmmtao02.cox.net (HELO eastrmmtao02.cox.net) (68.230.240.37) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 20 Dec 2006 04:53:44 +0000 Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao02.cox.net (InterMail vM.6.01.06.03 201-2131-130-104-20060516) with ESMTP id <20061220045342.TMBL9317.eastrmmtao02.cox.net@eastrmimpo01.cox.net>; Tue, 19 Dec 2006 23:53:42 -0500 Received: from black ([70.181.32.198]) by eastrmimpo01.cox.net with bizsmtp id 0ssb1W00J4GV2Jm0000000; Tue, 19 Dec 2006 23:52:35 -0500 Received: from bob by black with local (Exim 4.62) (envelope-from ) id 1GwtSX-00083K-Ee; Tue, 19 Dec 2006 23:53:41 -0500 Date: Wed, 20 Dec 2006 04:53:00 -0000 From: Bob Rossi To: Carlos O'Donell Cc: gcc-help@gcc.gnu.org, mark@codesourcery.com Subject: Re: mingw svn trunk failure Message-ID: <20061220045341.GI3022@cox.net> Mail-Followup-To: Carlos O'Donell , gcc-help@gcc.gnu.org, mark@codesourcery.com References: <20061219155354.GD32464@cox.net> <20061219223224.GA3022@cox.net> <20061220002917.GE3022@cox.net> <20061220014540.GA14845@lios> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: <20061220014540.GA14845@lios> User-Agent: Mutt/1.5.12-2006-07-14 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 X-SW-Source: 2006-12/txt/msg00296.txt.bz2 --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 4192 On Tue, Dec 19, 2006 at 08:45:41PM -0500, Carlos O'Donell wrote: > On Tue, Dec 19, 2006 at 07:29:17PM -0500, Bob Rossi wrote: > > I'm sorry. I've run it 2 ways. With prefix=/c/mingw and with > > prefix=/mingw. prefix=/mingw is the historically correct way to do this > > from what I understand. I only tried it with /c/mingw once as a test to > > see if it would work around the problem I found. > > > > With --prefix=/mingw my configure line was, > > > > mkdir gcc-builddir-0 > > cd gcc-builddir-0 > > ../gcc/configure \ > > --disable-werror \ > > --with-gmp=/home/bobbybrasko/gcc/gmp/gmp \ > > --with-mpfr=/home/bobbybrasko/gcc/mpfr/prefixdir \ > > --host=mingw32 \ > > --target=mingw32 \ > > What does your 'build' default to? I'm not sure what you are asking, sorry. Is this what you want to know? checking host system type... i386-pc-mingw32 checking target system type... i386-pc-mingw32 checking build system type... i386-pc-mingw32 > > --prefix=/mingw \ > > --program-suffix="-4.1" \ > > --with-gcc \ > > --with-gnu-ld \ > > --with-gnu-as \ > > --enable-threads=win32 \ > > --disable-nls \ > > --enable-languages=c,c++ \ > > --disable-win32-registry \ > > --disable-shared \ > > --enable-static \ > > --without-x \ > > --enable-libstdcxx-debug \ > > 2>&1 | tee configure-out.txt > > > > Here was the build line, > > cd gcc-builddir-0 > > make \ > > CFLAGS="-O2 -fomit-frame-pointer" \ > > CXXFLAGS="-mthreads -fno-omit-frame-pointer -O2" \ > > LDFLAGS=-s \ > > bootstrap 2>&1 | tee make-out.txt > > > > And the debug info was found here, > > http://gcc.gnu.org/ml/gcc-patches/2006-12/msg01356.html > > p->fname=/mingw/include cpp_PREFIX=C:/mingw cpp_PREFIX_len=8 > > > > Sorry about the confusion. > > No worries. I'm sorry this broke the bootstrap process. We'll get it > fixed with a little more work :-) > > I have a new patch for you if you want to try. This one is completely > untested, but I think it will do what you need. > > If you can test this I would be *very* grateful, and then I can get this > upstream. Yup, this get's me past the problem that I was having. I still have the same problem I've had all along. Maybe you'll know the solution. If I do a make DESTDIR=/home/bobbybrasko/gcc/svn-trunk-orig/destdir install and then I do $ PATH=/home/bobbybrasko/gcc/svn-trunk-orig/destdir/mingw/bin:$PATH gcc-4.1 -o main main.c I can compile a C hello world program. But if I do, $ PATH=/home/bobbybrasko/gcc/svn-trunk-orig/destdir/mingw/bin:$PATH g++-4.1 -o main main.cpp main.cpp:1:20: error: iostream: No such file or directory main.cpp: In function 'int main(int, char**)': main.cpp:8: error: 'cout' was not declared in this scope main.cpp:8: error: 'endl' was not declared in this scope I can't compile a C++ hello world program. Now, if I do 'tar -cvf mingw.tar mingw' and move it to another windows machine, and then untar binutils, w32api, and mingw-runtime into the directory and run like, set PATH=V:\black\files\gcc\mingw\bin;C:\windows\system32 and then gcc-4.1 -o main main.c it works fine, but g++-4.1 -o main main.cpp gives the error, can not find iostream. I've attached the output of g++-4.1 -v -o main main.cpp. If I move the mingw directory on that machine to C:/mingw, I get the same exact results. Now, unfortunatly, I confiured svn trunk with suffix -4.1. If I actually use the gcc 4.1 release, I can get gcc and g++ to work on another windows machine if it's located in C:/mingw only. Not if it's located in say C:/foo/mingw. So, I think things have gone from good 3.x series (used to be completly relocatable), to bad in 4.1 series (can't relocate to anywhere but C:/mingw or --prefix perhaps) to worse in svn trunk (can't get it to work at all. Now this may be entirely my fault, but at least I can reproduce the differences between gcc-4.1.1 and trunk. Any ideas? If not, do you know where I could send in such a problem? No one seems to be able to help me. Thanks, Bob Rossi --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="main.cpp.txt" Content-length: 1768 Using built-in specs. Target: mingw32 Configured with: ../gcc/configure --disable-werror --with-gmp=/home/bobbybrasko/gcc/gmp/gmp --with-mpfr=/home/bobbybrasko/gcc/mpfr/prefixdir --host=mingw32 --target=mingw32 --prefix=/mingw --program-suffix=-4.1 --with-gcc --with-gnu-ld --with-gnu-as --enable-threads=win32 --disable-nls --enable-languages=c,c++ --disable-win32-registry --disable-shared --enable-static --without-x --enable-libstdcxx-debug Thread model: win32 gcc version 4.3.0 20061220 (experimental) v:/black/files/gcc/mingw/bin/../libexec/gcc/mingw32/4.3.0/cc1plus.exe -quiet -v -iprefix v:\black\files\gcc\mingw\bin\../lib/gcc/mingw32/4.3.0/ main.cpp -quiet -dumpbase main.cpp -mtune=i386 -auxbase main -version -o C:\DOCUME~1\KELLIR~1\LOCALS~1\Temp/ccsobsYK.s ignoring nonexistent directory "v:/black/files/gcc/mingw/bin/../lib/gcc//include/c++/4.3.0" ignoring nonexistent directory "v:/black/files/gcc/mingw/bin/../lib/gcc//include/c++/4.3.0/mingw32" ignoring nonexistent directory "v:/black/files/gcc/mingw/bin/../lib/gcc//include/c++/4.3.0/backward" ignoring nonexistent directory "v:/black/files/gcc/mingw/bin/../lib/gcc//lib/gcc/mingw32/4.3.0/include" ignoring nonexistent directory "v:/black/files/gcc/mingw/bin/../lib/gcc//mingw32/include" #include "..." search starts here: #include <...> search starts here: v:/black/files/gcc/mingw/bin/../lib/gcc/mingw32/4.3.0/include C:/mingw/include /mingw/include /mingw/include End of search list. GNU C++ version 4.3.0 20061220 (experimental) (mingw32) compiled by GNU C version 4.3.0 20061220 (experimental). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: e4ce5a8d1ca57339ac0ea93b5e073770 main.cpp:1:20: error: iostream: No such file or directory --T4sUOijqQbZv57TR--