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

TL breaks when building Nashorn with sjavac

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      source ./configure --enable-sjavac ; make clean all

      ## Starting nashorn
      Compiling BUILD_NASHORN
      Compiling 106 files in 7 packages (jdk.internal.dynalink to jdk.nashorn.internal.codegen.types)
      Compiling 117 files in 7 packages (jdk.nashorn.internal.ir to jdk.nashorn.internal.parser)
      Compiling 192 files in 14 packages (jdk.nashorn.internal.runtime to netscape.javascript)
      Compiling BUILD_NASGEN
      Compiling 19 files in 1 packages
      Compiling 33 files in 3 packages (commons to signature)
      Compiling 53 files in 3 packages (tree to util)
      invalid flag: /Users/marcus/src/test2/tl/build/macosx-x86_64-normal-server-release/nashorn/nasgen_classes
      invalid flag: /Users/marcus/src/test2/tl/build/macosx-x86_64-normal-server-release/nashorn/nasgen_classes
      invalid flag: /Users/marcus/src/test2/tl/build/macosx-x86_64-normal-server-release/nashorn/nasgen_classes
      make[1]: *** [/Users/marcus/src/test2/tl/build/macosx-x86_64-normal-server-release/nashorn/nasgen_classes/javac_state] Error 255
      make: *** [nashorn-only] Error 2

      According to Fredrik et al, most likely this is because sjavac doesn't accept "-cp" as argument. It wants "-classpath".

        Attachments

          Activity

            People

            • Assignee:
              sundar Sundararajan Athijegannathan
              Reporter:
              lagergren Marcus Lagergren
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: