[petsc-users] Petsc configuration failure in windows 7 x64

Matthew Knepley knepley at gmail.com
Sat May 25 08:01:13 CDT 2013


On Sat, May 25, 2013 at 6:27 AM, Agnostic Noname <u1028451 at gmail.com> wrote:

> Hello,
>
> I am trying to setup petsc under windows 7 x64, with VS2012 Win64. For now
> I left Fortran aside (I plan to do it however), so I am trying to build a
> fortran-free version of petsc.
>
> First I installed the latest version of cmake: 2.8.11 to make sure VS2012
> Win64 and fortran XE 2013 are supported.
>
> The steps I follow are:
>  * Open a "Open VS2012 x64 Native Tools Command Prompt"
>  * Run "c:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\vcvarsall.bat" x64
>  * Run cygwin: C:\Cygwin\bin\bash.exe --login
>  * cd /cygdrive/f/users/user1/petsc-3.4.0
>  * Configure with: ./configure --with-debugging=no --with-cc='win32fe cl
> -O2' --with-fc=0 --with-cxx='win32fe cl -O2' --download-f2cblaslapack=1
> --download-blacs=1 --download-mups=1 --with-clanguage=cxx
> --with-scalar-type=complex --with-precision=double
> --with-mpi-dir='/cygdrive/c/Program Files/MPICH2'
>
> After these steps configuration process ends with a status number 256 and
> a message "falling back to legacy build".
>
> Of course I tried to run make, as suggested at the end of the script "make
> PETSC_DIR=/cygdrive/f/users/user1/petsc-3.4.0 PETSC_ARCH=arch-mswin-cxx-opt
> all" but this ended up failing.
>
> Please find attached the configure.log and the make.log files.
>
> Thanks in advance. Keep up the great work!
>

1) Please send messages with logs to petsc-maint at mcs.anl.gov so everyone
does not get huge attachments

2) You have a buggy compiler

libfast in: /cygdrive/f/users/user1/petsc-3.4.0/src/mat/impls/baij/seq
baij.c
baij2.c
baijfact.c
baijfact2.c
f:\users\user1\petsc-3.4.0\src\mat\impls\baij\seq\baijfact2.c(2941) : fatal
error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 211)
 To work around this problem, try simplifying or changing the program near
the locations listed above.
Please choose the Technical Support command on the Visual C++
 Help menu, or open the Technical Support help file for more information
INTERNAL COMPILER ERROR in 'C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\BIN\amd64\cl.exe'
    Please choose the Technical Support command on the Visual C++
    Help menu, or open the Technical Support help file for more information
Microsoft (R) Library Manager Version 11.00.50727.1
Copyright (C) Microsoft Corporation.  All rights reserved.

baijfact2.o : fatal error LNK1136: invalid or corrupt file

I recommend either upgrading to the latest version, or if that does not
work, backing off the
optimization (you have -O2).

  Thanks,

     Matt

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130525/2a0e2af9/attachment.html>


More information about the petsc-users mailing list