ceylon icon indicating copy to clipboard operation
ceylon copied to clipboard

The compiler exited abnormally (2) due to a bug in the compiler

Open baberrehman opened this issue 5 years ago • 2 comments

I have been trying to compile the Ceylon program on my Ubuntu 18.04 machine. Unfortunately I have not been very successful in that. I am using JDK 1.8.0_252. The compiler is exiting with the following error:

Ceylon compile: invalid source release: 11 Usage: ceylon compile use --help for a list of possible options ceylon compile: Fatal error: The compiler exited abnormally (2) due to a bug in the compiler. Please report it: https://github.com/ceylon/ceylon/issues/new Please include:

  • a description of what you were trying to compile.

Thank you! com.redhat.ceylon.compiler.CompilerBugException: Bug at com.redhat.ceylon.compiler.CeylonCompileTool.handleExitCode(CeylonCompileTool.java:933) at com.redhat.ceylon.compiler.CeylonCompileTool.run(CeylonCompileTool.java:915) at com.redhat.ceylon.common.tools.CeylonTool.run(CeylonTool.java:547) at com.redhat.ceylon.common.tools.CeylonTool.execute(CeylonTool.java:423) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.redhat.ceylon.launcher.Launcher.runInJava7Checked(Launcher.java:108) at com.redhat.ceylon.launcher.Launcher.run(Launcher.java:38) at com.redhat.ceylon.launcher.Launcher.run(Launcher.java:31) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.redhat.ceylon.launcher.Bootstrap.runVersion(Bootstrap.java:162) at com.redhat.ceylon.launcher.Bootstrap.runInternal(Bootstrap.java:117) at com.redhat.ceylon.launcher.Bootstrap.run(Bootstrap.java:93) at com.redhat.ceylon.launcher.Bootstrap.main(Bootstrap.java:85)

baberrehman avatar Jun 02 '20 17:06 baberrehman

Use java 8 Ceylonis not copatibile with java 11

Voiteh avatar Jun 29 '20 11:06 Voiteh

check this section: https://github.com/eclipse/ceylon#systems-where-ceylon-is-known-to-work i use:

  • Linux vagrant-ubuntu-trusty-64 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • java version "1.7.0_201"
  • ceylon version 1.3.3 0d594b3 (Contents May Differ)

then try this steps: https://github.com/eclipse/ceylon/blob/master/dist/README.md#running-the-sample-programs

l7rf1i82 avatar Oct 01 '21 12:10 l7rf1i82