[petsc-users] 答复: 转发: PETsc problem

余浩 hao.yu at peraglobal.com
Fri May 10 02:08:41 CDT 2013


it shows that 'win32fe cl' does not work.  I dont' know what the problem is.

________________________________________
发件人: Satish Balay [balay at mcs.anl.gov]
发送时间: 2013年5月9日 23:28
收件人: 余浩
抄送: petsc-users at mcs.anl.gov
主题: Re: [petsc-users] 转发: PETsc problem

On Thu, 9 May 2013, 余浩 wrote:

>
> Thanks!
>
> so what can I do to compile if I want to use PETsc in VS2010?

You compile PETSc with MS C/C++ compiler [not gcc/g++]. Check the installation
instructions https://www.mcs.anl.gov/petsc/documentation/installation.html#windows

Notice: --with-cc='win32fe cl' etc..

Satish

>
> I have tried using g++:
>
> ./configure --with-cxx=g++ --with-fc=0 --download-f2blaslapck --download-mpich
>
> then
>
> make PETSC_ARCH=arch-mswin-cxx-debug all
> make PETSC_ARCH=arch-mswin-cxx-debug test
>
> it shows:
>
> Using PETSC_DIR=/petsc-3.3-p6 and PETSC_ARCH=arch-mswin-cxx-debug
> /usr/bin/sh: line 20: 10916 Segmentation fault  " some path here"(I omitted)
> Possible error running C/C++ src/snes/examples/tutorials/ex19 with 1 MPI process
>
> See http://www.mcs.anlgov/petsc/documentation/faq.html
> /usr/bin/sh: line 20: 11780 Segmentation fault    "some path here"(I omitted)
> Possible error running C/C++ src/snes/examples/tutorials/ex19 with 2 MPI processes
> See http://www.mcs.anl.gov/petsc/documentation/faq.html
> Completed test examples
>
> Hao
> ________________________________________
> 发件人: Jed Brown [five9a2 at gmail.com] 代表 Jed Brown [jedbrown at mcs.anl.gov]
> 发送时间: 2013年5月9日 21:15
> 收件人: 余浩
> 主题: Re: PETsc problem
>
> 余浩 <hao.yu at peraglobal.com> writes:
>
> > Dear Jed Brown,
> >
> > I am sorry to trouble you! I am a PhD in math dept. at U of Minnesota,
> > currently using PETsc. I have a problem , it can't successfully
> > compile in VS2010 after installation. Because I am using Windows, so
> > under cygwin, I use:
> >
> > ./configure --with-cc=gcc -with-fc=0 --download-f2blaslapck
> > --download-mpich make all test
>
> You can't mix gcc here and VS2010 later because they are not compatible.
>
> > then it completes, but after I include , for example, "petscksp.h",
> > the error message after compling:
> >
> > Error 4 error C3861: '__builtin_expect': identifier not found
> > e:\cygwin\home\petsc-3.3-p6\include\petsclog.h 332 1 HelloFluids2
>
> Configure tests whether the compiler supports __builtin_expect.  There
> are probably many other incompatibilities.
>
> If you have any further questions, please send email to either
> petsc-users at mcs.anl.gov or petsc-maint at mcs.anl.gov.
>


More information about the petsc-users mailing list