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

fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

awa5114
Beginner
1,571 Views

I am getting this error

fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt 

when attempting to build a Visual Studio solution. I understand from some other threads like https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/518082 that the solution to this might be installing SP1 or copying some executables from Microsoft.NET into the VC folder. I can do neither above because I have insufficient permissions on my company computer.

I currently only have installed Intel Fortran Composer 2013 and the built-in Visual Studio that comes with it. Technically I could go ahead and install a full version of Visual Studio 2010 or 2012 which we both have licenses for. However I do not wish to use the command line compiler functionality and as previously discussed here https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/720567 (see last two posts), having full versions of VS will do just that.

Is there an administrator-free workaround which would enable me to compile the solution without installing a full version of Visual Studio? I'm prepared to mess with the solution itself if need be...

0 Kudos
2 Replies
mecej4
Honored Contributor III
1,571 Views

Before spending substantial amounts of time attempting old solutions for similar-sounding problems, and that with the handicap of not having administrative access, it would be wise to make a more firm diagnosis of the problem.

Please post the .OBJ or .LIB file(s) that is responsible for the "failure during conversion to COFF" error message. You will need to create a Zip file with the offending file(s) and attach the zip to your reply. Some forensic analysis of the OBJ file may yield clues as to its origin and why it found a place in your project files, and the remedy could depend on those details.

0 Kudos
awa5114
Beginner
1,571 Views

Hello @mecej4. Thank you for your reply. It turns out I got one of the administrators to help me proceed with the solution found in https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/518082.

This allows me to compile VS solutions without the COFF file issue. It also allows me to preserve the ability to compile using ifort from the command line. I am good for now.

Thanks for your help.

0 Kudos
Reply