Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

error #10037: could not find lib

wen
Beginner
3,452 Views

(I thought I have posted a message similar to the following on the day before yesterday. But I could not find it now.)

I tried to build a library and got the two error messages:

1. error #10037: could not find lib (file: xilib)

2. error spawn_errno_default: spawn(C:\\PROGRA~2\\Intel\\Compiler\\11.1\\067\\bin\\ia32\\xilink.exe) failed, errno=0 (file: Lib)

The command line for Fortran is

/nologo /I"\\CWR\\netCDF\\inc" /module:"Release/" /object:"Release/" /libs:static /threads /libdir:noauto /c, with an additional option of /iface:cvf.

The command line for Librarian is

/OUT:"Release/LibCwrCommon.lib" /NOLOGO.

I searched over the forum and found the issue of error #10037 but that was for could not find link and I still could not figure out how to solve my problem.

Please help.

Wen

0 Kudos
15 Replies
Steven_L_Intel1
Employee
3,452 Views
Are you doing this from inside Visual Studio? Is this a new install of Intel Visual Fortran? Which Visual Studio version are you using?
0 Kudos
wen
Beginner
3,452 Views

The error occurred when I tried to build the library inside Visual Studio.

The procedure has gone through successfully many times before for my code v.1 and its revised v.2. After about three months of not working on this project, I came back, added some write statement for v.1, and found the said error appeared by using Intel Visual Fortran v.11.1.060, update 5, installed on Apr. 1, 2010. Then I installed v.11.1.067, update 7, and the same error remains.

Wen

0 Kudos
Steven_L_Intel1
Employee
3,452 Views
In Visual Studio, select Tools > Options > Intel Visual Fortran > Compilers. Click "Reset All", then OK. Now try a build. What happens? Are you building for 32-bit or 64-bit? Please attach the buildlog.htm from a failed build attempt.
0 Kudos
wen
Beginner
3,452 Views

I am building for 32-bit.

I selected Tools > Options > Intel Visual Fortran > Compilers. Click "Reset All", then OK. I build the code libCwrCommon and got the same error message as before. That code uses the library of netCDF.

For libCwrCommon, the command line for Fortran is

/nologo /I"\CWR\netCDF\inc" /module:"Release/" /object:"Release/" /libs:static /threads /libdir:noauto /c

with

/iface:cvf

as the Additional Options. The command line for Library is

/OUT:"Release/LibCwrCommon.lib" /LIBPATH:"\CWR\netCDF\lib" /NOLOGO \CWR\netCDF\inc

For netCDF, the command line for Fortran is

/nologo /module:"Release\" /object:"Release\" /libs:static /threads /c

The command line for Library is

/OUT:"Release/netCDF.lib" /NOLOGO.

I tried to attach buildlog.htm, but, after I clicked on Reply to your message and clicked Add Files, a small ring from Windows Vista kept on turning for more than five minutes to keep me waiting. I restarted the Internet Explorer and got the same problem. So, Ihave buildlog.htm copied tothe following.

For libCwrCommon, the buildlog.htm shows

Build Log

Build started: Project: LibCwrCommon, Configuration: Release|Win32

Output

Creating library...

Lib /OUT:"Release/LibCwrCommon.lib" /LIBPATH:"\CWR\netCDF\lib" /NOLOGO \CWR\netCDF\inc "Release/ioconsts.obj" "Release/cwrconstants.obj" "Release/lcsimio.obj" "Release/cwrmethods.obj" "Release/cwrtypes.obj" "Release/simulateableclass.obj" "Release/dyresmInflowProc.obj" "Release/cdCfPp.obj" "Release/elcomio.obj" "Release/dyresmConfigPreproc.obj" "Release/dyresmInitProfPreproc.obj" "Release/caedymForcingPreproc.obj" "Release/dyresmWdrProc.obj" "Release/dyresmMetProc.obj" "Release/caedymHW.obj" "Release/dyrimio.obj" "Release/dyresmDestratProc.obj" "Release/caedymConstPreproc.obj" "Release/caedymInitPreproc.obj" "Release/dyresmMorphProc.obj" "Release/dysimio.obj" "Release/caedymCreateNetCDF.obj" "Release/dyresmParamPreproc.obj" "Release/cdsimio.obj" "Release/dyresmCreateNetCDF.obj" "E:\CWR\netCDF\IVF\Release\netCDF.lib"

xilib: executing 'lib'

xilib: error #10037: could not find 'lib'

Lib: error spawn_errno_default: spawn('C:\PROGRA~2\Intel\Compiler\11.1\067\bin\ia32\xilink.exe') failed, errno=0

LibCwrCommon - 2 error(s), 0 warning(s)


For netCDF, the buildolog.htm shows

Build Log

Build started: Project: netCDF, Configuration: Release|Win32

Output

Creating library...

Lib /OUT:"Release/netCDF.lib" /NOLOGO "Release\typeSizes.obj" "Release\netcdf.obj" "Release\netcdf_test.obj"

xilib: executing 'lib'

xilib: error #10037: could not find 'lib'

Lib: error spawn_errno_default: spawn('C:\PROGRA~2\Intel\Compiler\11.1\067\bin\ia32\xilink.exe') failed, errno=0

netCDF - 2 error(s), 0 warning(s)

Wen

0 Kudos
wen
Beginner
3,452 Views

I wrote a super simple test program. When I built it, I got an error message:

rc.exe not found.


In Visual Studio, I selected Tools > Options > Intel Visual Fortran > Compilers and clicked on Reset All. After close and re-open MS Visual Studio 2008, I build the test program again and still get the same error message.

I downloaded w_cprof_p_11.1.048.exe in last October and w_cprof_p_11.1.060_novsshell.exe in April. Visual Fortran worked fine at that time. After a few months of not using the visual Fortran, I tried to build a code, which was slightly revised from one that passed the compilation/link before, and got the error message of

error #10037: could not find lib

Then, I downloaded w_cprof_p_11.1.067_novsshell.exe one week ago. But I still get the same error.

Should I try deleting

Intel Visual Fortran Compiler Professional Edition 11.1.067 Update 7 on Windows

and

Microsoft Visual Studio 2008 shell (integrated mode)

and then install w_cprof_p_11.1.067.exe?

Should I uninstall any other programs before I install w_cprof_p_11.1.067.exe? I have

Intel Visual Fortran Compiler Professional Edition 11.1.046 Update 2 or Windows

in the program list. When I tried to delete it, I got the error message:

ERROR: The installation package is corrupted. SUGGESTION: Download the package, and run the installation again.

I also have the following programs in the system:

Microsoft Visual C++ 2005 ATL Update kb973923 - x86 8.0.50727.4053

Microsoft Visual C++ 2005 Redistributable

Microsoft Visual Studio 2005 64bit Prerequisites (x64) - ENU

Microsoft Visual Studio 2005 Remote Debugger Light (x64) - ENU

Microsoft Visual Studio 2005 Standard Edition - ENU

MSDN Library for Visual Studio 2005.

Should I have them uninstalled?

Wen

0 Kudos
Steven_L_Intel1
Employee
3,452 Views
It sounds as if your Visual Studio install is corrupted. Please look at C:\Program Files\Microsoft Visual Studio 8\VC\bin - you should have lib.exe and rc.exe in that folder. If you don't find them there, uninstall Fortran and Visual Studio, then reinstall Visual Studio and then Fortran.
0 Kudos
wen
Beginner
3,452 Views

Under C:\Program Files\Microsoft Visual Studio 8\VC\bin, I have lib.exe (as well as cl.exe, link.exe, and xdcmake.exe) but not rc.exe.

Under C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin, I have cl.exe and link.exe but neither lib.exe nor rc.exe.

I am going to uninstall Fortran and Visual Studio, then reinstall Visual Studio and then Fortran.

To reinstall Visual Studio and then Fortran, cant I just download and install

Intel Visual Fortran Compiler XE for Windows (incl. Microsoft Visual Studio 2008 Shell and Libraries)

in one shot? If not, how do I reinstall Visual Studio?

Wen

0 Kudos
Steven_L_Intel1
Employee
3,452 Views
If you want to use the Visual Studio 2008 Shell and Libraries, then yes, you can uninstall VS2005 and then run the installer that includes the shell and libraries. You will not have C++ nor the resource editor.

You are on an x64 version of Windows, I see, not that that should make a difference. I suggest you try to fix VS2005 as a first step - maybe just do a "repair" of it from its installer.
0 Kudos
wen
Beginner
3,452 Views

I probably dont have chance to use either C++ or Resource Editor. Therefore, Visual Studio 2008 Shell and Libraries are probably good enough.

Can I keep VS2005 and install VS2008 Shell? Would Visual Fortran get confused?

I am on an x64 Windows Vista. But I normally compile/link 32-bit Fortran programs for my colleagues.

On Oct. 9, 2009, I installed w_cprof_p_11.1.048.exe, which included VS2008 Shell. So I have both VS2005 and VS2008 Shell in the system. Since then, I have been using VS2008 and Visual Fortran worked fine for a long time until recently. All errors I reported were generated by VS2008, not VS2005.

Right now, I have

c:\Program Files\Microsoft Visual Studio 8\

c:\Program Files\Microsoft Visual Studio 9.0\

c:\Program Files (x86)\Microsoft Visual Studio\

c:\Program Files (x86)\Microsoft Visual Studio 8\

c:\Program Files (x86)\Microsoft Visual Studio 9.0\

In the list of programs for Uninstall or change a program inside Control Panel, I have

Intel Visual Fortran Compiler Professional Edition 11.1.046 Update 2 or Windows

Intel Visual Fortran Compiler Professional Edition 11.1.067 Update 7 on Windows

Microsoft Visual C++ 2005 ATL Update kb973923 - x86 8.0.50727.4053

Microsoft Visual C++ 2005 Redistributable

Microsoft Visual Studio 2005 64bit Prerequisites (x64) - ENU

Microsoft Visual Studio 2005 Remote Debugger Light (x64) - ENU

Microsoft Visual Studio 2005 Standard Edition - ENU

MSDN Library for Visual Studio 2005

Microsoft Visual Studio 2008 shell (integrated mode)


Wen

0 Kudos
Steven_L_Intel1
Employee
3,452 Views
If the Fortran installer finds VS2005 on the system, it won't install VS2008 Shell. You can install it manually from the unpacked product folder under C:\Program Files (x86)\Intel\Download\w_cprof_p_11.1.060_ia32\installs\1033 - I forget what the name of the next subdirectory level is, but it probably has vs in the name. There is a setup.exe or install.exe under that.

Did you download VS2008 Shell from Microsoft?
0 Kudos
wen
Beginner
3,452 Views

I did it one year ago and again today. I installed VS2008 shell to the system, which has VS2005 resides. No I did not download VS2008 Shell from Microsoft.

What I did today is:

. Remove IVF Compiler Professional Edition 11.1.067 Update 7 for windows.

. Remove MS VS 2008 . . .

. Remove MS VS 2008 Debugger . . .

. Download and install IVF Composer XE for Windows (incl. MS VS 2008 shell and Libraries)

After the installation, I checked Control Panel > Programs > Programs and Features. I can see

Intel Composer XE 2011 for window,

Microsoft visual Studio 2005 64bit Prerequisites (x64) - ENU

Microsoft visual Studio 2005 Remote Debugger Light (x64) - ENU

Microsoft visual Studio 2005 Standard Edition - ENU

Microsoft visual Studio 2008 Remote Debugger - ENU

Microsoft visual Studio 2008 Shell (Integrated mode) - ENU

I ran Microsoft Visual Studio 2008. Help > About Microsoft Visual Studio shows the Product details as: Intel visual Fortran Composer XE 2011 Integrated for Microsoft Visual Studio 2008, 12.0.3470.2008.

When I re-built my software library, the previous error messages of

error #10037: could not find lib (file: xilib)

(from building a user library) and

rc.exe not found

(from building a super simple code) do not appear anymore.

However, a new error message came out when I build my library program:

fatal error LNK1104: cannot open file Myfolder\inc (from LINK.exe)

Myfolder\inc is listed in Additional Include Directories on the Property Pages for Fortran and in Additional Dependencies on that for Librarian. In windows Explorer, that Myfolder\inc does show up at the location I specified in the Property Pages for Fortran and Librarian. What's happening?

Please help.

Wen

0 Kudos
Steven_L_Intel1
Employee
3,452 Views
Please attach the buildlog.htm and the .vfproj file for your project so I can see what they look like.
0 Kudos
wen
Beginner
3,452 Views
Attached please find the buildlog.htm and the .vfproj file you asked plus dirInc.txt, which shows the existance of the folder \CWR\netCDF\inc\.

The error message is "cannot open file '\CWR\netCDF\inc'." Is the linker looking for a file or a folder?
By the way, I used IE to come to this place. When I clicked on "Add Files," a message "Error on page" appeared on the left lower corner and a small ring of my Windows Vista keep on turning for more than five minutes. I closed the IE, tried again, and got the same results of going nowhere. Then I switched to Safari. When I clicked on "Add Files," the edit window appeared right away.
Wen
0 Kudos
Steven_L_Intel1
Employee
3,452 Views
In the Release configuration for this project, you have \CWR\netCDF\inc listed under "Additional dependencies" for the librarian. Thsi causes the librarian to try to open that as a file. I believe you want to remove that property entirely - and perhaps also the obne for "Additional library directories" as both of these are empty in the Debug configuration. It would be very unusual to use these for a library and if you did, the one for "dependencies" should resolve to a .lib file, not a folder.
0 Kudos
wen
Beginner
3,452 Views
Thank you very much. It works.
I used to use the Debug configuration successfully. I failed to make corresponding debuging to tbe Release configuration and forgot that the Release configuration was not cleared when I built with the Release configuration a few days ago.
Wen
0 Kudos
Reply