From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24222 invoked by alias); 13 Apr 2008 16:12:29 -0000 Received: (qmail 24119 invoked by alias); 13 Apr 2008 16:11:44 -0000 Date: Sun, 13 Apr 2008 16:12:00 -0000 Message-ID: <20080413161144.24118.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/35916] problem running gfortran 4.4.0 in Vista In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "DHConsultancy at skynet dot be" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-04/txt/msg00927.txt.bz2 ------- Comment #3 from DHConsultancy at skynet dot be 2008-04-13 16:11 ------- Subject: Re: problem running gfortran 4.4.0 in Vista I used your second option with the batch file as follows: - I renamed gfortran.exe to gfortran4.0.0.exe - I put a one-line batch file gfortran.bat in directory C:\Program Files\gfortran\bin content is: "C:\Program Files\gfortran\bin\gfortran4.4.0" %1 %2 %3 %4 %5 %6 %7 %8 %9 That seems to do the trick for now, and it means I don't have the modify my make files. An obvious limitations is that this allows only for 9 command line parameters. Nevertheless, I think I can live with this for a while until a patch is available, thank you very much. I am very impressed with the bug tracking system, and the team that handles it. I've posted some Vista problems before, which have been dealt with very promptly, resulting in an almost immediate new release. Nevertheless, may I make a few suggestions? - please keep the installers for the previous stable versions available, so that it is possible to regress to a version that worked; on the Wiki pages, only the last version is available, and that usually is an experimental one. Maybe I missed something and older versions are still available somewhere, but then this is not obvious. - Much to my regret and undoubtedly to many others as well, Vista is here to stay; I didn't even have the option to install XP on my new laptop, and XP distribution will cease more or less soon anyway. So I would strongly suggest to perform the same severe testing for Vista as you undoubtedly do for XP. I am trying to convince my international colleagues to switch from g77 to gfortran. Many of them still use g77, even though it is no longer supported or even officially distributed (you wouldn't believe what some of them do to install g77!). However, some large Fortran libraries which were built a decade or so ago for g77, are still very much in use, with very little chance of them ever being updated. I have tried to build one of these from source, with the provided make files, using gfortran, but gave up very quickly after being inundated with errors and warnings. In my experience, one of the main differences is the definition of structures, and the structure syntax (e.g. the use of "%" instead of "."). Is there a way (compiler option or something) to compile old code with old structure definitions, using gfortran, and without replacing them in the source code? Once again, thank you very much for the valuable service you provide, and keep up the good work! Thank you in advance, Daniel Heynderickx brian at dessent dot net wrote: > ------- Comment #2 from brian at dessent dot net 2008-04-13 00:06 ------- > Subject: Re: problem running gfortran 4.4.0 in Vista > > pinskia at gcc dot gnu dot org wrote: > >> IIRC the driver does not relocate correctly under Vista. > > The Vista shell seems to populate argv[0] differently than previous > versions, so the relocate machinery in the driver can't determine > GCC_EXEX_PREFIX. Workarounds are: > > - use a shell other than CMD.EXE > - give the full path to the binary when invoking it from CMD.EXE (even > if its in PATH), or write a .bat/.cmd to do as such > - add $libexec/gcc/$target/$version dir to PATH > > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35916