jdk8 link failure - might be due to uninstalling VS2011 Express
Tim Bell
tim.bell at oracle.com
Mon Sep 2 18:01:51 UTC 2013
All-
> LINK : fatal error LNK1123: failure during conversion to COFF: file
> invalid or corrupt
> NMAKE : fatal error U1077: 'C:\progra~2\micros~2.0\vc\bin\link.exe' :
> return code '0x463'
> Stop.
> NMAKE : fatal error U1077: 'cd' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 10.0\VC\BIN\nmake.EXE"' : return code '0x2'
> Stop.
This is a known problem with VS2010 that is related to some other piece
of S/W on your system changing or updating the .NET 4.x libraries.
You need to update your VS install to 2010 service pack 1. We are
headed in that direction for the official JDK 7 and 8 builds.
Refer to this link for more information:
LNK1123 error when bulding VC++ 2010 project after installing Visual
Studio 2012 or .NET Framework 4.5
http://support.microsoft.com/kb/2757355
Here is the text, since this link is out of our control and can be hard
to find later:
> Issue description: When building a VC++ 2010 project, you get
> \u201cLNK1123: failure during conversion to COFF: file invalid or
> corrupt\u201d link error.
>
> This error can appear after installing Visual Studio 2012 side-by-side
> (SXS) with Visual Studio 2010 RTM or after installing .Net Framework
> 4.5 on a machine with Visual Studio 2010.
>
> Cause: The issue is caused by a dependency failure of cvtres.exe on
> msvcr100_clr0400.dll which is shipped with Visual Studio 2010 RTM and
> eventually updated with a new version when Visual Studio 2012 RTM or
> .NET Framework 4.5 is installed.
>
> Resolution: To resolve this link error, upgrade Visual Studio 2010 RTM
> to VS 2010 SP1. Upgrading to VS 2010 SP1 resolves the dependency
> failure and the VC++ 2010 project builds with no LNK1123 error.
Hope this helps-
Tim
On 09/ 1/13 09:29 AM, Ivan Krylov wrote:
> Pete,
> Are you building 32-bit or 64-bit hotspot?
> Can you specify what micros~2.0 actually is?
>
> Ivan
>
> On Sep 1, 2013, at 9:48 AM, Pete Brunet <peter.brunet at oracle.com> wrote:
>
>> My jdk8 build fails in hotspot build. I have VS2010 installed but it's
>> possible this is related to having uninstalled VS2011 Express prior to
>> seeing the failure:
>>
>> LINK : fatal error LNK1123: failure during conversion to COFF: file
>> invalid or corrupt
>> NMAKE : fatal error U1077: 'C:\progra~2\micros~2.0\vc\bin\link.exe' :
>> return code '0x463'
>> Stop.
>> NMAKE : fatal error U1077: 'cd' : return code '0x2'
>> Stop.
>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
>> Studio 10.0\VC\BIN\nmake.EXE"' : return code '0x2'
>> Stop.
>>
>> If at that point I try to invoke the linker I get:
>>
>> $ /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\
>> 10.0/VC/bin/link.exe
>> /cygdrive/c/Program Files (x86)/Microsoft Visual Studio
>> 10.0/VC/bin/link.exe: error while loading shared libraries:
>> mspdb100.dll: cannot open shared object file
>> : No such file or directory
>>
>> That dll is in: c:\Program Files (x86)\Microsoft Visual Studio
>> 10.0\Common7\IDE. I don't see anything in my env vars indicating that.
>>
>> My env variables include:
>> VS100COMNTOOLS which is set to C:\Program Files (x86)\Microsoft Visual
>> Studio 10.0\Common7\Tools\
>>
>> Has anyone else encountered this and fixed it?
>>
>> Pete
>>
>>
More information about the build-dev
mailing list