[petsc-dev] [petsc-users] make test failed

Barry Smith bsmith at mcs.anl.gov
Tue Jun 19 13:39:43 CDT 2012


On Jun 19, 2012, at 1:27 PM, Satish Balay wrote:

> 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.

   Satish,

  Ok, how do we prevent this from ever happening again? 

   When ./configure is run it should first check if the scripts are corrupted from a Windows tool and stop with a nice error message telling the user to use cygwin tar to process the tar file.

    Please figure out how to make this a patch for 3.3

    Thanks

    Barry


   

> 
>>>>>>>> 
> 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-dev mailing list