From: Erik B. <eri...@gm...> - 2015-01-29 18:43:27
|
Hi, On 29.01.2015 19:21, xeonmailinglist wrote: > Now I get the the error below. > > |compile: > [delete] Deleting directory /home/vagrant/Programs/jikesrvm-3.0.0/target/FastAdaptiveGenMS_airavat_ia32-linux/classes > [mkdir] Created dir: /home/vagrant/Programs/jikesrvm-3.0.0/target/FastAdaptiveGenMS_airavat_ia32-linux/classes > [javac] /home/vagrant/Programs/jikesrvm-3.0.0/build.xml:1062: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds > [javac] Compiling 69 source files to /home/vagrant/Programs/jikesrvm-3.0.0/target/FastAdaptiveGenMS_airavat_ia32-linux/classes > [javac] Note: Some input files use or override a deprecated API. > [javac] Note: Recompile with -Xlint:deprecation for details. > [javac] Note: Some input files use unchecked or unsafe operations. > [javac] Note: Recompile with -Xlint:unchecked for details. > [exec] E: Command line option 'f' [from -factorypath] is not known. > | > > This error came from this part in the build. xml. > > |<mkdir dir="${build.base}/syscall/java"/> > <exec executable="apt" failonerror="true"> > <arg value="-factorypath"/> > <arg value="${tasks.classes}"/> > <arg value="-nocompile"/> > <arg value="-factory"/> > <arg value="org.jikesrvm.tools.apt.SysCallProcessorFactory"/> > <arg value="-classpath"/> > <arg value="${tasks.classes}:${build.vmmagic-stub.classes}:${build.classes}"/> > <arg value="-s"/> > <arg value="${build.base}/syscall/java"/> > <arg value="${main.java}/org/jikesrvm/runtime/SysCall.java"/> > </exec> > 2.1 I am supposing that the command |apt| is from the linux, and not from |ant|. Am I right? The apt command in the Jikes RVM build is from Sun's confusingly named "annotation processing tool" that is shipped with older JDKs. It was deprecated and eventually removed in newer JDKs. > 2. If not, it seems that the command apt does not recognize |-factorypath| attribute. I am using Ubuntu 14. Do you have any clue how to solve it? Try compiling Jikes RVM with a Java 6 JDK. If you're already using a Java 6 JDK to compile Jikes RVM, you will have to try to get a Java 5 JDK from somewhere else and install it manually. Ubuntu 14.10 ships a Java 6 JDK with the openjdk-6-jdk package. To change the Java version used for the build, you can do one of the following a) change the systemwide default Java implementation via update-alternatives ( sudo update-alternatives --config java and/or sudo update-alternatives --config javac ) b ) Try to configure Ant to use the Java 6 JDK by creating an .antrc file in your Jikes RVM directory with the entry JAVACMD=pathToJDK6Dir/bin/java Kind regards, Erik Brangs |