OSQA is unmaintained. Help us figure out where to go from here.

I am trying to build Wireshark development code 1.12 (as is) using microsoft VSD Express 10 and am getting 2 fatal errors as below. I found in another FAQ regarding setting the cygwin path prior to nmake to resolve the return code of '0x1' doesn't seem to help in my case. Please suggest. thanks Muriel

sbc.c link /lib /out:codecs.lib codecs.obj G711udecode.obj G711adecode.obj G722decode.obj G726decode.obj sbc.obj /usr/bin/link: extra operand codecs.obj' Try/usr/bin/link --help' for more information. NMAKE : fatal error U1077: 'c:\cygwin\bin\link.EXE' : return code '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop.

asked 02 Sep '14, 09:55

christenmu's gravatar image

accept rate: 50%

From your log output, it seems that your system has a link.exe program in Cygwin installation that is being used instead of the one coming from MSVC2010.

Are you trying to compile from Cygwin shell or from MSVC command prompt (as configured by the vcvarsall.bat script)? You should use the latter and your PATH environment variable should have MSVC2010 bin folder included before Cygwin bin folder.

permanent link

answered 02 Sep '14, 13:19

Pascal%20Quantin's gravatar image

Pascal Quantin
accept rate: 30%

I did my build from windows cmd.exe. But I noticed that when I downloaded the cygwin there's a link.exe in C:\cygwin64\bin. I renamed that link.exe so it won't pick up. But I am now getting these errors. cd zlib.tmp "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" / -f win32/Makefile.msc zlib1.dll AS=ml64 LOC="-DASMV -DASMINF" OBJA="inffasx64.obj gvmat64.obj inffas8664.obj"

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved.

    ml64 -c -coff -Zi -DASMV -DASMINF contrib/masmx64\inffasx64.asm

'ml64' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'ml64' : return code '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop.

(02 Sep '14, 15:46) christenmu

As far as I know, MSVC2010 Express Edition does not come with an x64 compiler out of the box. You need to install the 7.1 SDK (see http://stackoverflow.com/questions/1865069/how-to-compile-a-64-bit-application-using-visual-c-2010-express ) and ensure that it's part of your PATH environement variable.

(02 Sep '14, 22:18) Pascal Quantin

oh ok. thanks, I will install the 7.1 SDK. Earlier I had issue installing this version. Will try again.

(03 Sep '14, 04:57) christenmu

Sorry to keep coming up with new questions. Since I wanted to do the 32 bit build first, I went back to build for win32 and am getting these link errors. I am currently having 7.1 SDK install failures so I thought of doing the 32 first and try for 64 bit later. The errors below are for win32 build.

    link -nologo -debug -incremental:no -opt:ref -def:win32/zlib.def -dll -i

mplib:zdll.lib -out:zlib1.dll -base:0x5A4C0000 adler32.obj compress.obj crc32.o bj deflate.obj gzclose.obj gzlib.obj gzread.obj gzwrite.obj infback.obj inflate .obj inftrees.obj trees.obj uncompr.obj zutil.obj inffas32.obj match686.obj zlib 1.res Creating library zdll.lib and object zdll.exp LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or c orrupt NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\link.EXE"' : return code '0x463' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop.

(03 Sep '14, 07:31) christenmu

Sorry, I just realized that I was using the MSVC2010 for 64 version instead of 32 when I was building. Build successfully now. Thank you again for your help.

(03 Sep '14, 08:41) christenmu
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 02 Sep '14, 09:55

question was seen: 10,624 times

last updated: 03 Sep '14, 08:41

p​o​w​e​r​e​d by O​S​Q​A