Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
27551 Discussions

fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'IA64' NMAKE : fatal error U1077 : error code



I am getting the following errors on 

IA-32 :  fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'IA64' NMAKE : fatal error U1077 : error code

Intel64 : nmake is not recognized as an internal or external command.

Attached is the error screenshot for both.

0 Kudos
3 Replies
Black Belt

You misquoted the first error message -- the mismatch is between X86 and X64 target architectures. You probably have a mix of X86 and X64 modules (and, perhaps, object files) from previous compilations. Simply delete all .OBJ and .MOD files and reissue the NMAKE command.

The second error is of a different type. The fact that NMAKE was found during the X86 build, but not in the X64 build, suggests that there is some problem with the batch file (ifortvars.bat) that was used to start up the X64 command window. You have to identify and fix those problems.

I note that you are using a decade old compiler.

New Contributor II

For future reference, you can copy text from the console to a text file, making it much easier to read.

Right-click in the strip at the top of the console window, choose Edit > Mark to select the text (or Edit > Select All).  Right-click again then Edit > Copy to copy the selected text to the Clipboard.  Then you can open a text file and paste the selected text.

Black Belt

Machine type IA64 is for the old Itanium processor. x64 targets the Intel64 processor types. Somewhere you have specified IA64 for 64-bit programming.

nmake.exe is part of Microsoft Visual Studio ... VC\bin or VC\bin\amd64

The Intel64 configuration does not include the ...\amd64 folder in PATH (or that folder is missing, or nmake.exe is missing from that folder).

Jim Dempsey