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

Unable to build OpenJFX with provided steps

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 8u73
    • javafx
    • x86
    • other

      FULL PRODUCT VERSION :
      java version "1.8.0_73"
      Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
      Java HotSpot(TM) Client VM (build 25.73-b02, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 10.0.10240]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      gradle 1.8
      Microsoft Visual Studio 2010 SP1
      Newest cygwin x86


      A DESCRIPTION OF THE PROBLEM :
      I am unable to build OPENJFX. Build log looks like there is something wrong with cygpath and than lib.exe: Command not found is being shown.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Follow steps described in https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      source builded
      ACTUAL -
      C:\work\rt>gradle build
      Download http://repo1.maven.org/maven2/org/antlr/antlr/3.1.3/antlr-3.1.3.pom
      Download http://repo1.maven.org/maven2/org/antlr/antlr-master/3.1.3/antlr-master-3.1.3.pom
      Download http://repo1.maven.org/maven2/org/antlr/antlr-runtime/3.1.3/antlr-runtime-3.1.3.pom
      Download http://repo1.maven.org/maven2/org/antlr/stringtemplate/3.2/stringtemplate-3.2.pom
      Download http://repo1.maven.org/maven2/org/antlr/antlr/3.1.3/antlr-3.1.3.jar
      Download http://repo1.maven.org/maven2/org/antlr/antlr-runtime/3.1.3/antlr-runtime-3.1.3.jar
      Download http://repo1.maven.org/maven2/org/antlr/stringtemplate/3.2/stringtemplate-3.2.jar
      :buildSrc:clean
      :buildSrc:generateGrammarSource
      error(10): internal error: Can't get property indirectDelegates using method get/isIndirectDelegates from org.antlr.tool.Grammar instance : java.lang.NullPointerException
      java.util.Objects.requireNonNull(Objects.java:203)
      java.util.ArrayList.removeAll(ArrayList.java:689)
      org.antlr.tool.CompositeGrammar.getIndirectDelegates(CompositeGrammar.java:222)
      org.antlr.tool.Grammar.getIndirectDelegates(Grammar.java:2620)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      java.lang.reflect.Method.invoke(Method.java:497)
      org.antlr.stringtemplate.language.ASTExpr.invokeMethod(ASTExpr.java:563)
      org.antlr.stringtemplate.language.ASTExpr.rawGetObjectProperty(ASTExpr.java:514)
      org.antlr.stringtemplate.language.ASTExpr.getObjectProperty(ASTExpr.java:416)
      org.antlr.stringtemplate.language.ActionEvaluator.attribute(ActionEvaluator.java:351)
      org.antlr.stringtemplate.language.ActionEvaluator.expr(ActionEvaluator.java:136)
      org.antlr.stringtemplate.language.ActionEvaluator.templateApplication(ActionEvaluator.java:216)
      org.antlr.stringtemplate.language.ActionEvaluator.expr(ActionEvaluator.java:126)
      org.antlr.stringtemplate.language.ActionEvaluator.action(ActionEvaluator.java:84)
      org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:148)
      org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:700)
      org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:722)
      org.antlr.stringtemplate.language.ASTExpr.writeAttribute(ASTExpr.java:659)
      org.antlr.stringtemplate.language.ActionEvaluator.action(ActionEvaluator.java:86)
      org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:148)
      org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:700)
      org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:722)
      org.antlr.stringtemplate.language.ASTExpr.writeAttribute(ASTExpr.java:659)
      org.antlr.stringtemplate.language.ActionEvaluator.action(ActionEvaluator.java:86)
      org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:148)
      org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:700)
      org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:722)
      org.antlr.stringtemplate.language.ASTExpr.writeAttribute(ASTExpr.java:659)
      org.antlr.stringtemplate.language.ActionEvaluator.action(ActionEvaluator.java:86)
      org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:148)
      org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:700)
      org.antlr.codegen.CodeGenerator.write(CodeGenerator.java:1278)
      org.antlr.codegen.Target.genRecognizerFile(Target.java:94)
      org.antlr.codegen.CodeGenerator.genRecognizer(CodeGenerator.java:463)
      org.antlr.Tool.generateRecognizer(Tool.java:607)
      org.antlr.Tool.process(Tool.java:429)
      org.antlr.Tool.main(Tool.java:91)
      :buildSrc:compileJava
      :buildSrc:compileGroovy
      :buildSrc:processResources
      :buildSrc:classes
      :buildSrc:jar
      :buildSrc:assemble
      :buildSrc:compileTestJava
      Download http://repo1.maven.org/maven2/junit/junit/4.8.2/junit-4.8.2.pom
      Download http://repo1.maven.org/maven2/junit/junit/4.8.2/junit-4.8.2.jar
      Note: C:\work\rt\buildSrc\src\test\java\com\sun\scenario\effect\compiler\parser\FieldSelectTest.java uses or overrides a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      :buildSrc:compileTestGroovy UP-TO-DATE
      :buildSrc:processTestResources UP-TO-DATE
      :buildSrc:testClasses
      :buildSrc:test
      :buildSrc:check
      :buildSrc:build
      OS_NAME: windows 10
      OS_ARCH: x86
      JAVA_HOME: C:/Program Files (x86)/Java/jdk1.8.0_73/
      JDK_HOME: C:/Program Files (x86)/Java/jdk1.8.0_73/
      java.runtime.version: 1.8.0_73-b02
      java version: 1.8.0_73
      java build number: 02
      jdk.runtime.version: 1.8.0_73-b02
      jdk version: 1.8.0_73
      jdk build number: 02
      minimum java build number: 26
      CONF: Debug
      NUM_COMPILE_THREADS: 4
      COMPILE_TARGETS: win
      COMPILE_FLAGS_FILES: buildSrc/win.gradle
      HUDSON_JOB_NAME: not_hudson
      HUDSON_BUILD_NUMBER: 0000
      PROMOTED_BUILD_NUMBER: 00
      PRODUCT_NAME: OpenJFX
      RAW_VERSION: 8.0.112
      RELEASE_NAME: 8u112
      RELEASE_MILESTONE: ea
      UPDATE_STUB_CACHE: false
      The CompileOptions.useAnt property has been deprecated and is scheduled to be removed in Gradle 2.0. There is no replacement for this property.
      :updateCacheIfNeeded UP-TO-DATE
      :verifyJava
      :base:processVersionInfo
      :base:compileJava
      :base:processResources UP-TO-DATE
      :base:classes
      :base:jar
      :base:assemble
      :checkJfxrtJar
      :graphics:compileJava
      Download http://download.eclipse.org/eclipse/updates/3.7/R-3.7.2-201202080800/plugins/org.eclipse.swt.win32.win32.x86_3.7.2.v3740f.jar
      :graphics:compileJava UP-TO-DATE
      :graphics:compilePrismCompilers UP-TO-DATE
      :graphics:generatePrismShaders
      :graphics:compilePrismJavaShaders UP-TO-DATE
      :graphics:compileDecoraCompilers UP-TO-DATE
      :graphics:generateDecoraShaders
      :graphics:compileDecoraHLSLShaders
      :graphics:processDecoraShaders
      :graphics:compilePrismHLSLShaders
      :graphics:processPrismShaders
      :graphics:processResources
      :graphics:classes
      :graphics:jar
      :controls:compileJava UP-TO-DATE
      :controls:processResources
      :controls:classes
      :controls:jar
      :swing:compileJava UP-TO-DATE
      :swing:processResources UP-TO-DATE
      :swing:classes UP-TO-DATE
      :swing:jar
      :swt:compileJava UP-TO-DATE
      :swt:processResources UP-TO-DATE
      :swt:classes UP-TO-DATE
      :swt:jar
      :fxml:compileJava UP-TO-DATE
      :fxml:processResources UP-TO-DATE
      :fxml:classes UP-TO-DATE
      :media:compileJava UP-TO-DATE
      :media:processResources
      :media:classes
      :media:buildResources
      :media:buildWinGlib
      make: Entering directory '/cygdrive/c/work/rt/modules/media/src/main/native/gstreamer/projects/win/glib-lite'
                                                                                                                    make: Nothing to be done for 'default'.
      make: Leaving directory '/cygdrive/c/work/rt/modules/media/src/main/native/gstreamer/projects/win/glib-lite'
                                                                                                                                                                                                             :
      media:buildWinGStreamer
      make: Entering directory '/cygdrive/c/work/rt/modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite'
                                                                                                                         make TARGET=/cygdrive/c/work/rt/modules/media/build/native/win/Release/libgstreamer.l
      ib -f Makefile.gstreamer
                                                                                                                                                                                                             m
      ake[1]: Entering directory '/cygdrive/c/work/rt/modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite'
      make[1]: Nothing to be done for 'default'.
      make[1]: Leaving directory '/cygdrive/c/work/rt/modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite'
                                                                                                                                                                                                             m
      ake TARGET=/cygdrive/c/work/rt/modules/media/build/native/win/Release/libgstplugins.lib -f Makefile.gstplugins
                                                                                                                                                                                                             m
      ake[1]: Entering directory '/cygdrive/c/work/rt/modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite'
      make[1]: Nothing to be done for 'default'.
      make[1]: Leaving directory '/cygdrive/c/work/rt/modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite'
                                                                                                                                                                                                             m
      ake /cygdrive/c/work/rt/modules/media/build/native/win/Release/gstreamer-lite.dll
                                                                                                                                                                                                             m
      ake[1]: Entering directory '/cygdrive/c/work/rt/modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite'
                                                                                                                                                                                                             m
      ake[1]: '/cygdrive/c/work/rt/modules/media/build/native/win/Release/gstreamer-lite.dll' is up to date.
      make[1]: Leaving directory '/cygdrive/c/work/rt/modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite'
                                                                                                                                                                                                             m
      ake: Leaving directory '/cygdrive/c/work/rt/modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite'
                                                                                                                                                                                                             :
      media:buildWinPlugins
      make: Entering directory '/cygdrive/c/work/rt/modules/media/src/main/native/gstreamer/projects/win/fxplugins'
                                                                                                                    make TARGET=/cygdrive/c/work/rt/modules/media/build/native/win/Release/baseclasses.lib -f
      Makefile.BaseClasses
                                                                                                                                                                                                             c
      ygpath :
       cannot create short name of C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses
                                                                                                                                                                                                             m
      ake[1]: Entering directory '/cygdrive/c/work/rt/modules/media/src/main/native/gstreamer/projects/win/fxplugins'
                                                                                                                                                                                                             U
      sage: c
      ygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...
             cygpath [-c HANDLE]
             cygpath [-ADHOPSW]
             cygpath [-F ID]

      Convert Unix and Windows format paths, or output system path information

      Output type options:

        -d, --dos print DOS (short) form of NAMEs (C:\PROGRA~1\)
        -m, --mixed like --windows, but with regular slashes (C:/WINNT)
        -M, --mode report on mode of file (binmode or textmode)
        -u, --unix (default) print Unix form of NAMEs (/cygdrive/c/winnt)
        -w, --windows print Windows form of NAMEs (C:\WINNT)
        -t, --type TYPE print TYPE form: 'dos', 'mixed', 'unix', or 'windows'

      Path conversion options:

        -a, --absolute output absolute path
        -l, --long-name print Windows long form of NAMEs (with -w, -m only)
        -p, --path NAME is a PATH list (i.e., '/bin:/usr/bin')
        -U, --proc-cygdrive Emit /proc/cygdrive path instead of cygdrive prefix
                              when converting Windows path to UNIX path.
        -s, --short-name print DOS (short) form of NAMEs (with -w, -m only)
        -C, --codepage CP print DOS, Windows, or mixed pathname in Windows
                              codepage CP. CP can be a numeric codepage identifier,
                              or one of the reserved words ANSI, OEM, or UTF8.
                              If this option is missing, cygpath defaults to the
                              character set defined by the current locale.

      System information:

        -A, --allusers use `All Users' instead of current user for -D, -O, -P
        -D, --desktop output `Desktop' directory and exit
        -H, --homeroot output `Profiles' directory (home root) and exit
        -O, --mydocs output `My Documents' directory and exit
        -P, --smprograms output Start Menu `Programs' directory and exit
        -S, --sysdir output system directory and exit
        -W, --windir output `Windows' directory and exit
        -F, --folder ID output special folder with numeric ID and exit
      Try `cygpath - -
      help' for more information.
                                                                                                                                                                                                             l
      ib.exe -out:C:/work/rt/modules/media/build/native/win/Release/baseclasses.lib -nologo -MACHINE:x86 C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/amextra.obj C:
      /work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/amfilter.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/amvideo.obj C:/
      work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/arithutil.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/combase.obj C:/
      work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/cprop.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/ctlutil.obj C:/work
      /rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/ddmm.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/dllentry.obj C:/work/rt/
      modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/dllsetup.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/mtype.obj C:/work/rt/mod
      ules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/outputq.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/perflog.obj C:/work/rt/modul
      es/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/pstream.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/pullpin.obj C:/work/rt/modules
      /media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/refclock.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/renbase.obj C:/work/rt/modules/
      media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/schedule.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/seekpt.obj C:/work/rt/modules/me
      dia/build/native/win/Release/obj/Microsoft/Dire c
      tShow/BaseClasses/source.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/strmctl.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectSh
      ow/BaseClasses/sysclock.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/transfrm.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectSh
      ow/BaseClasses/transip.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/videoctl.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectSho
      w/BaseClasses/vtrans.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/winctrl.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/B
      aseClasses/winutil.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/wxdebug.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/Bas
      eClasses/wxlist.obj C:/work/rt/modules/media/build/native/win/Release/obj/Microsoft/DirectShow/BaseClasses/wxutil.obj
                                                                                                                                                                                                             m
      ake[1]: lib.exe: Command not found
                                                                                                                                                                                                             M
      akefile.BaseClasses:81: recipe for target '/cygdrive/c/work/rt/modules/media/build/native/win/Release/baseclasses.lib' failed
                                                                                                                                                                                                             m
      ake[1]: *** [/cygdrive/c/work/rt/modules/media/build/native/win/Release/baseclasses.lib] Error 127
                                                                                                                                                                                                             m
      ake[1]: Leaving directory '/cygdrive/c/work/rt/modules/media/src/main/native/gstreamer/projects/win/fxplugins'
                                                                                                                                                                                                             M
      akefile:162: recipe for target 'baseclasses.lib' failed
                                                                                                                                                                                                             m
      ake: *** [baseclasses.lib] Error 2
                                                                                                                                                                                                             m
      ake: Leaving directory '/cygdrive/c/work/rt/modules/media/src/main/native/gstreamer/projects/win/fxplugins'
                                                                                                                                                                                                             :
      media:buildWinPlugins F
      AILED

      FAILURE: Build failed with an exception.

      * Where:
      Build file 'C:\work\rt\build.gradle' line: 2296

      * What went wrong:
      Execution failed for task ':media:buildWinPlugins'.
      > Process 'command 'make'' finished with non-zero exit value 2

      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

      BUILD FAILED

      Total time: 2 mins 34.871 secs

      REPRODUCIBILITY :
      This bug can be reproduced always.

            kcr Kevin Rushforth
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: