Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8043492

ad_x86_64_misc.obj : error LNK2011: precompiled object not linked in; image may not run

XMLWordPrintable

    • b22
    • x86_64
    • windows_2012

      When building hotspot on Windows 2012 using Visual Studio 2013, the build issues warnings (that is the subject of JDK-8043491) and then throws a hard error:

      C:\progra~2\micros~1.0\vc\bin\amd64\cl.exe /nologo /W3 /WX /Zi /D "_LP64" /D "AMD64" /D "WIN32" /D "_WINDOWS" /D "VM_LITTLE_ENDIAN" /D TARGET_OS_FAMILY_windows /D TARGET_ARCH_x86 /D TARGET_ARCH_MODEL_x86_64 /D TARGET_OS_ARCH_windows_x86 /D TARGET_OS_ARCH_MODEL_windows_x86_64 /D TARGET_COMPILER_visCPP /MD /MP /O2 /Oy- /D "PRODUCT" /D "COMPILER1" /D "COMPILER2" /D "HOTSPOT_RELEASE_VERSION=\"1.9.0-internal-201405160632.tbell.dev-b00\"" /D "JDK_MAJOR_VERSION=\"1\"" /D "JDK_MINOR_VERSION=\"9\"" /D "JDK_MICRO_VERSION=\"0\"" /D "JDK_BUILD_NUMBER=\"0\"" /D "JRE_RELEASE_VERSION=\"1.9.0-internal-201405160632.tbell.dev-b00\"" /D "HOTSPOT_LIB_ARCH=\"amd64\"" /D "HOTSPOT_BUILD_TARGET=\"product\"" /D "HOTSPOT_BUILD_USER=\"jprtadm\"" /D "HOTSPOT_VM_DISTRO=\"Java HotSpot(TM)\"" /I "..\generated" /I "C:\jprt\T\P1\063206.tbell\s\hotspot\src\closed\share\vm" /I "C:\jprt\T\P1\063206.tbell\s\hotspot\src\closed\os\windows\vm" /I "C:\jprt\T\P1\063206.tbell\s\hotspot\src\closed\cpu\x86\vm" /I "C:\jprt\T\P1\063206.tbell\s\hotspot\src\share\vm" /I "C:\jprt\T\P1\063206.tbell\s\hotspot\src\share\vm\precompiled" /I "C:\jprt\T\P1\063206.tbell\s\hotspot\src\share\vm\prims" /I "C:\jprt\T\P1\063206.tbell\s\hotspot\src\os\windows\vm" /I "C:\jprt\T\P1\063206.tbell\s\hotspot\src\os_cpu\windows_x86\vm" /I "C:\jprt\T\P1\063206.tbell\s\hotspot\src\cpu\x86\vm" /D "_JNI_IMPLEMENTATION_" /Fp"vm.pch" /Yu"precompiled.hpp" /c ..\generated\adfiles\ad_x86_64.cpp ..\generated\adfiles\ad_x86_64_clone.cpp ..\generated\adfiles\ad_x86_64_expand.cpp ..\generated\adfiles\ad_x86_64_format.cpp ..\generated\adfiles\ad_x86_64_gen.cpp ..\generated\adfiles\ad_x86_64_misc.cpp ..\generated\adfiles\ad_x86_64_peephole.cpp ..\generated\adfiles\ad_x86_64_pipeline.cpp ..\generated\adfiles\dfa_x86_64.cpp
      ad_x86_64.cpp
      ad_x86_64_clone.cpp
      ad_x86_64_expand.cpp
      ad_x86_64_format.cpp
      ad_x86_64_gen.cpp
      ad_x86_64_misc.cpp
      ad_x86_64_peephole.cpp
      ad_x86_64_pipeline.cpp
      dfa_x86_64.cpp
      sh C:\jprt\T\P1\063206.tbell\s\hotspot/make/windows/build_vm_def.sh
            2 [main] sh 3980 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer. Please report this problem to
      the public mailing list cygwin@cygwin.com
      C:\progra~2\micros~1.0\vc\bin\amd64\link.exe @C:\jprt\T\P1\063206.tbell\nmDAC8.tmp
      forte.obj : warning LNK4197: export 'AsyncGetCallTrace' specified multiple times; using first specification
      jni.obj : warning LNK4197: export 'JNI_GetDefaultJavaVMInitArgs' specified multiple times; using first specification
      jni.obj : warning LNK4197: export 'JNI_CreateJavaVM' specified multiple times; using first specification
      jni.obj : warning LNK4197: export 'JNI_GetCreatedJavaVMs' specified multiple times; using first specification
      jvm.obj : warning LNK4197: export 'JVM_FindClassFromBootLoader' specified multiple times; using first specification
      jvm.obj : warning LNK4197: export 'jio_vsnprintf' specified multiple times; using first specification
      jvm.obj : warning LNK4197: export 'jio_snprintf' specified multiple times; using first specification
      jvm.obj : warning LNK4197: export 'jio_fprintf' specified multiple times; using first specification
      jvm.obj : warning LNK4197: export 'jio_vfprintf' specified multiple times; using first specification
      jvm.obj : warning LNK4197: export 'JVM_InitAgentProperties' specified multiple times; using first specification
      jvm.obj : warning LNK4197: export 'JVM_GetThreadStateValues' specified multiple times; using first specification
      jvm.obj : warning LNK4197: export 'JVM_GetThreadStateNames' specified multiple times; using first specification
      jvm.obj : warning LNK4197: export 'JVM_GetVersionInfo' specified multiple times; using first specification
      jvm.obj : warning LNK4197: export 'jio_printf' specified multiple times; using first specification
         Creating library jvm.lib and object jvm.exp
      ad_x86_64_misc.obj : error LNK2011: precompiled object not linked in; image may not run
      jvm.dll : fatal error LNK1120: 1 unresolved externals
      NMAKE : fatal error U1077: 'C:\progra~2\micros~1.0\vc\bin\amd64\link.exe' : return code '0x460'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.EXE"' : return code '0x2'
      Stop.
      make[3]: *** [generic_build2] Error 2
      make[3]: Leaving directory `/cygdrive/c/jprt/T/P1/063206.tbell/s/hotspot/make'
      make[2]: *** [product] Error 2
      make[2]: Leaving directory `/cygdrive/c/jprt/T/P1/063206.tbell/s/hotspot/make'
      make[1]: *** [/cygdrive/c/jprt/T/P1/063206.tbell/s/build/windows-x86_64-normal-server-release/hotspot/_hotspot.timestamp] Error 2
      make[1]: Leaving directory `/cygdrive/c/jprt/T/P1/063206.tbell/s/make'
      make: *** [hotspot-only] Error 2


            ctornqvi Christian Tornqvist
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: