[petsc-users] make test failed
Satish Balay
balay at mcs.anl.gov
Tue Jun 19 13:27:16 CDT 2012
Ok - I think the sources were extracted with a windows tool - and not
cygwin 'tar' - so the scripts [which got extracted in dos format] are
misbehaving.
>>>>>>>
sbalay at ps3 ~/petsc33/src/ksp/ksp/examples/tutorials
$ unix2dos.exe /home/sbalay/petsc33/bin/mpiexec.uni
unix2dos: converting file /home/sbalay/petsc33/bin/mpiexec.uni to DOS format ...
sbalay at ps3 ~/petsc33/src/ksp/ksp/examples/tutorials
$ /home/sbalay/petsc33/bin/mpiexec.uni -n 1 ./ex2
/home/sbalay/petsc33/bin/mpiexec.uni: line 4: syntax error near unexpected token `elif'
'home/sbalay/petsc33/bin/mpiexec.uni: line 4: `elif [ $2 = "1" ]; then
sbalay at ps3 ~/petsc33/src/ksp/ksp/examples/tutorials
$ dos2unix.exe /home/sbalay/petsc33/bin/mpiexec.uni
dos2unix: converting file /home/sbalay/petsc33/bin/mpiexec.uni to Unix format ...
sbalay at ps3 ~/petsc33/src/ksp/ksp/examples/tutorials
$ /home/sbalay/petsc33/bin/mpiexec.uni -n 1 ./ex2
Norm of error 0.000156044 iterations 6
<<<<<<<
Satish
On Tue, 19 Jun 2012, Barry Smith wrote:
>
> Please run
>
> /bin/sh --version
>
> and send the output
>
>
> On Jun 18, 2012, at 5:21 PM, Yifei Li wrote:
>
> > Hi all,
> >
> > I got the following error when running 'make test':
> >
> > Using PETSC_DIR=/home/liyi0000/petsc-3.3-p1 and PETSC_ARCH=arch-mswin-c-debug
> > Possible error running C/C++ src/snes/examples/tutorials/ex19 with 1 MPI process
> >
> > See http://www.mcs.anl.gov/petsc/documentation/faq.html
> > /home/liyi0000/petsc-3.3-p1/bin/mpiexec.uni: line 4: syntax error near unexpected token 'elif'
> > 'home/liyi0000/petsc-3.3-p1/bin/mpiexec.uni: line 4: 'elif [ $2 = "1" ]; then
> >
> >
> > Can someone help me with this? Thanks
> >
> > Yifei
>
>
More information about the petsc-users
mailing list