Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"mx image" fails (solved) #4

Closed
markshank opened this issue Apr 27, 2017 · 6 comments
Closed

"mx image" fails (solved) #4

markshank opened this issue Apr 27, 2017 · 6 comments
Assignees

Comments

@markshank
Copy link

markshank commented Apr 27, 2017

export WORKDIR=/home/mds/max
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export MAXINE_HOME=$WORKDIR/maxine
export PATH=$PATH:$WORKDIR/graal/mxtool/:$MAXINE_HOME/com.oracle.max.vm.native/generated/linux/

$ cd $MAXINE_HOME
$ mx image
Exception in thread "main" com.sun.max.program.ProgramError: Unexpected Program Error: Class java.lang.Class does not declare field declaredFields
at com.sun.max.program.ProgramError.unexpected(ProgramError.java:117)
at com.sun.max.program.ProgramError.unexpected(ProgramError.java:129)
at com.sun.max.vm.hosted.JDKInterceptor$InterceptedField.ensureFieldExists(JDKInterceptor.java:586)
at com.sun.max.vm.hosted.JDKInterceptor$InterceptedField.verify(JDKInterceptor.java:576)
at com.sun.max.vm.hosted.JDKInterceptor.fillInterceptedFieldMap(JDKInterceptor.java:489)
at com.sun.max.vm.hosted.JDKInterceptor.buildInterceptedFieldMap(JDKInterceptor.java:440)
at com.sun.max.vm.hosted.JDKInterceptor.(JDKInterceptor.java:390)
at com.sun.max.vm.hosted.Prototype.loadLibrary(Prototype.java:89)
at com.sun.max.vm.hosted.Prototype.loadHostedLibrary(Prototype.java:102)
at com.sun.max.platform.Platform.hasIDiv(Platform.java:433)
at com.sun.max.platform.Platform.createTarget(Platform.java:176)
at com.sun.max.platform.Platform.(Platform.java:273)
at com.sun.max.platform.Platform.(Platform.java:257)
at com.sun.max.platform.Platform.(Platform.java:526)
at com.sun.max.vm.hosted.VMConfigurator.defaultLayoutScheme(VMConfigurator.java:112)
at com.sun.max.vm.hosted.VMConfigurator.(VMConfigurator.java:51)
at com.sun.max.vm.hosted.BootImageGenerator.(BootImageGenerator.java:206)
at com.sun.max.vm.hosted.BootImageGenerator.main(BootImageGenerator.java:471)
$

@zakkak
Copy link
Member

zakkak commented Apr 27, 2017

Hello,

Could you please include the JDK version you are using to build maxine-VM?

Please refer to https://github.com/beehive-lab/Maxine-VM#platform for the currently supported platform configurations.

If you are familiar with docker you can also use our dockerfile and follow the instructions to create a docker container with the appropriate configuration to build maxine-VM.

@zakkak zakkak self-assigned this Apr 27, 2017
@markshank
Copy link
Author

openjdk-7-jdk/trusty-updates,trusty-security,now 7u121-2.6.8-1ubuntu0.14.04.3 amd64 [installed]
openjdk-7-jre/trusty-updates,trusty-security,now 7u121-2.6.8-1ubuntu0.14.04.3 amd64 [installed]

@zakkak
Copy link
Member

zakkak commented Apr 27, 2017

Unfortunately, u121 is not supported yet please try using u25.

@markshank
Copy link
Author

Yes, u25 works for me.

@markshank markshank changed the title [X86_64] "mx image" fails [X86_64] "mx image" fails (solved) Apr 27, 2017
@arodchen
Copy link
Contributor

It would be nice to add the JDK class library version check during the build with meaningful output.

@lgeek
Copy link
Member

lgeek commented Apr 27, 2017

Regarding the title, it actually has the same behavior on AArch32 (and presumably x86) as well.

@zakkak zakkak changed the title [X86_64] "mx image" fails (solved) "mx image" fails (solved) Apr 27, 2017
@zakkak zakkak closed this as completed Apr 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants