I cant build an system. Cause is: java-
Project: | JNode Core |
Component: | Miscellaneous |
Category: | bug report |
Priority: | normal |
Assigned: | Unassigned |
Status: | closed |
Jump to:
I cant build an system. Cause is:
java-image:
[bootimage] Building for CPU: name:GenuineIntel family:0 model:0 step:0 features:FPU,PSE raw:00000001 756E6547 6C65746E 49656E69 00000000 00000000 00000000 00000009
[bootimage] Compiling using X86-Stub and X86-L1A compilers
[bootimage] Compile of java.util.EnumMap$1 failed
[bootimage] at org.jnode.build.AbstractBootImageBuilder.compileClasses(AbstractBootImageBuilder.java:235)
[bootimage] at org.jnode.build.AbstractBootImageBuilder.emitObjects(AbstractBootImageBuilder.java:675)
[bootimage] at org.jnode.build.AbstractBootImageBuilder.doExecute(AbstractBootImageBuilder.java:531)
[bootimage] at org.jnode.build.AbstractBootImageBuilder.execute(AbstractBootImageBuilder.java:787)
[bootimage] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[bootimage] at org.apache.tools.ant.Task.perform(Task.java:364)
[bootimage] at org.apache.tools.ant.Target.execute(Target.java:341)
[bootimage] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[bootimage] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[bootimage] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
[bootimage] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[bootimage] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
[bootimage] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[bootimage] at org.apache.tools.ant.Task.perform(Task.java:364)
[bootimage] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
[bootimage] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[bootimage] at org.apache.tools.ant.Task.perform(Task.java:364)
[bootimage] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
[bootimage] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[bootimage] at org.apache.tools.ant.Task.perform(Task.java:364)
[bootimage] at org.apache.tools.ant.Target.execute(Target.java:341)
[bootimage] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[bootimage] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[bootimage] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[bootimage] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[bootimage] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[bootimage] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[bootimage] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[bootimage] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[bootimage] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
[bootimage] Caused by: java.lang.NoSuchMethodError: ConstMethodRef: java.util.AbstractCollection.add [(Ljava/lang/Enum;)Z] in class java.util.AbstractCollection
[bootimage] at org.jnode.vm.classmgr.VmConstMethodRef.doResolveMember(VmConstMethodRef.java:55)
[bootimage] at org.jnode.vm.classmgr.VmConstMemberRef.doResolve(VmConstMemberRef.java:82)
[bootimage] at org.jnode.vm.classmgr.VmResolvableConstObject.resolve(VmResolvableConstObject.java:42)
[bootimage] at org.jnode.vm.classmgr.VmType.resolveCpRefs(VmType.java:1757)
[bootimage] at org.jnode.build.AbstractBootImageBuilder.compileClasses(AbstractBootImageBuilder.java:215)
[bootimage] ... 29 more
[bootimage] --- Nested Exception ---
[bootimage] java.lang.NoSuchMethodError: ConstMethodRef: java.util.AbstractCollection.add [(Ljava/lang/Enum;)Z] in class java.util.AbstractCollection
[bootimage] at org.jnode.vm.classmgr.VmConstMethodRef.doResolveMember(VmConstMethodRef.java:55)
[bootimage] at org.jnode.vm.classmgr.VmConstMemberRef.doResolve(VmConstMemberRef.java:82)
[bootimage] at org.jnode.vm.classmgr.VmResolvableConstObject.resolve(VmResolvableConstObject.java:42)
[bootimage] at org.jnode.vm.classmgr.VmType.resolveCpRefs(VmType.java:1757)
[bootimage] at org.jnode.build.AbstractBootImageBuilder.compileClasses(AbstractBootImageBuilder.java:215)
[bootimage] at org.jnode.build.AbstractBootImageBuilder.emitObjects(AbstractBootImageBuilder.java:675)
[bootimage] at org.jnode.build.AbstractBootImageBuilder.doExecute(AbstractBootImageBuilder.java:531)
[bootimage] at org.jnode.build.AbstractBootImageBuilder.execute(AbstractBootImageBuilder.java:787)
[bootimage] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[bootimage] at org.apache.tools.ant.Task.perform(Task.java:364)
[bootimage] at org.apache.tools.ant.Target.execute(Target.java:341)
[bootimage] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[bootimage] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[bootimage] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
[bootimage] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[bootimage] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
[bootimage] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[bootimage] at org.apache.tools.ant.Task.perform(Task.java:364)
[bootimage] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
[bootimage] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[bootimage] at org.apache.tools.ant.Task.perform(Task.java:364)
[bootimage] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
[bootimage] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[bootimage] at org.apache.tools.ant.Task.perform(Task.java:364)
[bootimage] at org.apache.tools.ant.Target.execute(Target.java:341)
[bootimage] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[bootimage] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[bootimage] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[bootimage] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[bootimage] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[bootimage] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[bootimage] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[bootimage] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[bootimage] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
- Login to post comments
More info needed
Please provide more info on the jdk version & OS you're using and make sure to do a "build clean" first.
Ewout
"build clean" solved the problem, thanks.
Win XP SP 2 and
java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
However "build clean" solved the problem, thanks. Got an nice Iso image.
Metrospiegel
buid x86 FAILED
buid x86 FAILED:
jnodesources-0.2.1\all\build.xml:282: The following error occurred while executing this line:
jnodesources-0.2.1\all\build.xml:274: The following error occurred while executing this line:
Target `x86' does not exist in this project.
On windows 2000 and SUN jdk1.5.0_04
why?
appreciate your help.
-redany
#1
This is most likely due to using first a 1.5 and then a 1.4 compiler. THe same compiler should be used for the whole compilation (hence the clean first).
#2
The original author "metrospiegel" fixed the problem with a build clean.
So this bug can be closed.