Building JNode: java.lang.NullPointerException in java-image task

Hello,

I trying to build JNode but I geeting the following error:

-----------------------
java-image:
[bootjar] Building jar: /usr/src/jnode-0.1.7/all/build/x86/bootimage/jnode-boot.jar
[bootjar] Building boot-jar took 3813ms
[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] java.lang.NullPointerException
[bootimage] at org.jnode.assembler.Label.hashCode(Label.java:53)
[bootimage] at org.jnode.assembler.x86.X86Stream$Key.hashCode(X86Stream.java:66)
[bootimage] at java.util.HashMap.hash(HashMap.java:261)
[bootimage] at java.util.HashMap.get(HashMap.java:317)
[bootimage] at org.jnode.assembler.x86.X86Stream.getObjectRef(X86Stream.java:348)
[bootimage] at org.jnode.linker.ElfLinker.loadElfObject(ElfLinker.java:66)
[bootimage] at org.jnode.build.x86.BootImageBuilder.copyKernel(BootImageBuilder.java:120)
[bootimage] at org.jnode.build.AbstractBootImageBuilder.doExecute(AbstractBootImageBuilder.java:204)
[bootimage] at org.jnode.build.AbstractBootImageBuilder.execute(AbstractBootImageBuilder.java:123)
[bootimage] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
[bootimage] at org.apache.tools.ant.Task.perform(Task.java:401)
[bootimage] at org.apache.tools.ant.Target.execute(Target.java:338)
[bootimage] at org.apache.tools.ant.Target.performTasks(Target.java:365)
[bootimage] at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
[bootimage] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:420)
[bootimage] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
[bootimage] at org.apache.tools.ant.Task.perform(Task.java:401)
[bootimage] at org.apache.tools.ant.Target.execute(Target.java:338)
[bootimage] at org.apache.tools.ant.Target.performTasks(Target.java:365)
[bootimage] at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
[bootimage] at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
[bootimage] at org.apache.tools.ant.Main.runBuild(Main.java:669)
[bootimage] at org.apache.tools.ant.Main.startAnt(Main.java:220)
[bootimage] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
[bootimage] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)

BUILD FAILED
/usr/src/jnode-0.1.7/all/build.xml:144: Following error occured while executing this line
/usr/src/jnode-0.1.7/all/build-x86.xml:200: java.lang.NullPointerException
--------------------------------------

Something missing?

Thanks in advance.

Mps
Orlandia - SP - Brazil

Nasm version?

Hi, what nasm version are you using on which os?

Have you tried a "build clean" followed by a "build"?

Ewout

Re: Nasm version?

Hello,

I'm trying to build in a Slackware 9.1 with J2SDK 1.4.2_04-b05, Ant 1.6.1, and Nasm 0.98.37.

"build clean" and "build" give me the same error. :\

[]'s
Mps
Orlandia - SP - Brazil