Re: [petsc-users] Error in configuring PETSc with Cygwin on Windows by using Intel MPI
You can check the build was successful manually. cd src/snes/tutorials make ex19 mpiexec -n 1 ./ex19 -snes_monitor
On Nov 14, 2023, at 11:46 AM, 程奔 <[email protected]> wrote:
Hi Barry,
Thanks for the suggestion. It seems good after I change complier to english.Then I begin to configure and make it. But unfortunate, when I try to make PETSC_DIR=/cygdrive/g/mypetsc/petsc-3.19.2 PETSC_ARCH=arch-mswin-c-debug check It just happen to an error: Running check examples to verify correct installation Using PETSC_DIR=/cygdrive/g/mypetsc/petsc-3.19.2 and PETSC_ARCH=arch-mswin-c-debug /usr/bin/bash: -c: line 9: unexpected EOF while looking for matching `"' make[1]: *** [makefile:123: check] Error 2 make: *** [GNUmakefile:17: check] Error 2
So I send email to look for you help, and configure.log is attached.
sinserely, Cheng.
-----原始邮件----- 发件人: "Barry Smith" <[email protected] <mailto:[email protected]>> 发送时间: 2023-11-13 11:19:23 (星期一) 收件人: 程奔 <[email protected] <mailto:[email protected]>> 抄送: petsc-users <[email protected] <mailto:[email protected]>> 主题: Re: [petsc-users] Error in configuring PETSc with Cygwin on Windows by using Intel MPI
The configure is failing while testing the Intel Fortran compiler
Executing: /cygdrive/g/mypetsc/petsc-3.19.2/lib/petsc/bin/win32fe/win_ifort -c -o /tmp/petsc-61cxbt4e/config.setCompilers/conftest.o -I/tmp/petsc-61cxbt4e/config.compilers -I/tmp/petsc-61cxbt4e/config.setCompilers -MT -Z7 -Od /tmp/petsc-61cxbt4e/config.setCompilers/conftest.F90 Successful compile: Source: program main
end
Executing: /cygdrive/g/mypetsc/petsc-3.19.2/lib/petsc/bin/win32fe/win_ifort -o /tmp/petsc-61cxbt4e/config.setCompilers/conftest.exe -MT -Z7 -Od /tmp/petsc-61cxbt4e/config.setCompilers/conftest.o stdout: LINK : û���ҵ� G:\cygwin\tmp\PE9718~1\CONFIG~1.SET\conftest.exe ����һ����������û��������������ִ����ȫ���� Linker output before filtering: LINK : û���ҵ� G:\cygwin\tmp\PE9718~1\CONFIG~1.SET\conftest.exe ����һ����������û��������������ִ����ȫ���� Linker output after filtering: LINK : û���ҵ� G:\cygwin\tmp\PE9718~1\CONFIG~1.SET\conftest.exe ����һ����������û��������������ִ����ȫ����
Can you please try changing the compiler to print its messages in English and then attempt to compile the trivial program above as indicated and send all the output.
Barry
On Nov 12, 2023, at 9:02 PM, 程奔 <[email protected] <mailto:[email protected]>> wrote:
Sorry for replying to your email so late, and I find configure.log
-----原始邮件----- 发件人: "Barry Smith" <[email protected] <mailto:[email protected]>> 发送时间: 2023-11-08 23:42:30 (星期三) 收件人: 程奔 <[email protected] <mailto:[email protected]>> 抄送: [email protected] <mailto:[email protected]> 主题: Re: [petsc-users] Error in configuring PETSc with Cygwin on Windows by using Intel MPI
Send the file $PETSC_ARCH/lib/petsc/conf/configure.log
On Nov 8, 2023, at 12:20 AM, 程奔 <[email protected] <mailto:[email protected]>> wrote:
Hello, Recently I try to install PETSc with Cygwin since I'd like to use PETSc with Visual Studio on Windows10 plateform.For the sake of clarity, I firstly list the softwares/packages used below: 1. PETSc: version 3.19.2 2. VS: version 2022 3. Intel MPI: download Intel oneAPI Base Toolkit and HPC Toolkit 4. Cygwin: see the picture attatched (see picture cygwin)
And the compiler option in configuration is: ./configure --prefix=/cygdrive/g/mypetsc/petsc2023 --with-cc='win32fe cl' --with-fc='win32fe ifort' --with-cxx='win32fe cl' --with-shared-libraries=0 --with-mpi-include=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/include --with-mpi-lib=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/libTherefore, I write this e-mail to look for your help. /release/impi.lib --with-mpiexec=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/bin/mpiexec -localonly
but there return an error: ********************************************************************************************* OSError while running ./configure --------------------------------------------------------------------------------------------- Cannot run executables created with FC. If this machine uses a batch system to submit jobs you will need to configure using ./configure with the additional option --with-batch. Otherwise there is problem with the compilers. Can you compile and run code with your compiler '/cygdrive/g/mypetsc/petsc-3.19.2/lib/petsc/bin/win32fe/win32fe ifort'? See https://petsc.org/release/faq/#error-libimf *********************************************************************************************
Then I try to open configure.log in petsc, but there turnout an error that I can't open it.(see picture 1)
And then I right click on properties and click safety,it just turnout "The permissions on test directory are incorrectly ordered.which may cause some entries to be ineffective." (see picture 2)
And it also likely seen “NULL SID” as the top entry in permission lists.(see picture 3)
Then i follow this blog(https://blog.dhampir.no/content/forcing-cygwin-to-create-sane-permissions-on...) to edit /etc/fstab in Cygwin, and add “noacl” to the mount options for /cygdrive.
But it's not working.
So I can't sent configure.log to you guys, it seems cygwin that installed in my computer happened to some problem.
Mayebe the error happened in the configure on petsc just because of this reason.
So I wrrit this email to report my problem and ask for your help.
Looking forward your reply!
sinserely, Cheng. <cygwin.png><picture1.jpg><picture2.png><picture3.jpg>

participants (1)
-
Barry Smith