All,
I have been doing internet research all day and I have not been able to resolve an issue. I have a windows 7 64 bit machine with Microsoft Visual Studio 10.0 and a fortran library that I am trying to compile with fortran 2013 sp1. I have OpenSSH installed on the windows machine so I am able to ssh over from a linux machine and compile the library from command line without any problems. The problem occurs when I automate this process in XML using ANT. I run the exact same script via ANT and I get the following 2 errors:
After every file:
[sshexec] 1>realft.f90
[sshexec] 1>error code 23 (returned by OpenValidateX) opening pdb vc100.pdb
and at link:
LINK : fatal error LNK1101: incorrect MSPDB100.DLL version; recheck installation of this product
Again, this works perfectly fine when I ssh manually to the machine and execute the build script, but when automated via ANT it breaks. Here is the XML that builds it where build_geometry.bat is the script that performs the VS build:
<sshexec host="awindev" username="cruise" keyfile="${user.home}/.ssh/id_rsa" command='cd "${projectSourceDirectoryPath}" ; chmod 755 build_geometry.bat ; ./build.bat C:/ccworking/GEO-win32-debug' output="build-errors.txt" failonerror="false" />
I can see it going over to the machine, getting to the correct directory, and executing the build.bat just fine. That script is executing.
And again, when I ssh over and execute the script manually, everything works fine without any errors. I thought it was something about the path, but I have tried adding VS/Common7/IDE to the path, looking for other MSPDB100.dll, etc. What confuses my if there is no difference between the XML SSHing over and myself SSHing over.
Any help or direction would be greatly appreciated. Please excuse any information have left out.