compile failed when making building system
-
Hi all,
I followed the instructions described on documents to set up my building system . However when I compile with make -j1 V=s. I came across errors as below. I checked it on line and could not find a solution to it.checking for gij... no
checking for java... java
checking for ecj... ecj -warn:-deprecation,serial,unusedImport
checking if ecj -warn:-deprecation,serial,unusedImport is a version of gcj... no
checking if ecj -warn:-deprecation,serial,unusedImport works... configure: error: The Java compiler ecj -warn:-deprecation,serial,unusedImport failed (see config.log, check the CLASSPATH?)
Makefile:89: recipe for target '/home/fan/omega2/build_dir/target-mipsel_24kc_musl-1.1.16/classpath-0.99/.configured_yyyynnnn' failed
make[3]: *** [/home/fan/omega2/build_dir/target-mipsel_24kc_musl-1.1.16/classpath-0.99/.configured_yyyynnnn] Error 1
make[3]: Leaving directory '/home/fan/omega2/feeds/packages/libs/classpath'
package/Makefile:105: recipe for target 'package/feeds/packages/classpath/compile' failed
make[2]: *** [package/feeds/packages/classpath/compile] Error 2
make[2]: Leaving directory '/home/fan/omega2'
package/Makefile:101: recipe for target '/home/fan/omega2/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.package_compile' failed
make[1]: *** [/home/fan/omega2/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/fan/omega2'
/home/fan/omega2/include/toplevel.mk:198: recipe for target 'world' failed
make: *** [world] Error 2I am using virtual box with Ubuntu 18.04.1 LTS.
Thanks!
-
@Fan-Wu said in compile failed when making building system:
checking if ecj -warn:-deprecation,serial,unusedImport works... configure: error: The Java compiler ecj -warn:-deprecation,serial,unusedImport failed (see config.log, check the CLASSPATH?)
Did you check the config.log?
I'd suggest using the docker image as it is provides a faster pathway to a successful build in my experience, but I understand that there are alternatives and these are the kinds of problems that go along with it.
-
Hi cas,
Thanks for your replay. I checked the configure log.configure:24169: $? = 0
configure:24194: result: stdint.h (shortcircuit)
configure:24579: result: make use of stdint.h in include/config-int.h (assuming C99 compatible system)
configure:24629: checking for cacao
configure:24659: result: no
configure:24629: checking for jamvm
configure:24659: result: no
configure:24629: checking for kaffe
configure:24659: result: no
configure:24629: checking for gij
configure:24659: result: no
configure:24629: checking for java
configure:24645: found /usr/bin/java
configure:24656: result: java
configure:24723: checking for ecj
configure:24739: found /usr/bin/ecj
configure:24750: result: ecj -warn:-deprecation,serial,unusedImport
configure:24807: checking if ecj -warn:-deprecation,serial,unusedImport is a version of gcj
configure:24821: result: no
configure:24836: checking if ecj -warn:-deprecation,serial,unusedImport works
configure:24861: ecj -warn:-deprecation,serial,unusedImport -source 1.5 -target 1.5 Object.java
/usr/bin/ecj: 4: .: Can't open /usr/lib/java-wrappers/java-wrappers.sh
configure:24864: $? = 2
configure:24868: error: The Java compiler ecj -warn:-deprecation,serial,unusedImport failed (see config.log, check the CLASSPATH?)
-
After I install java-wrappers, it is good now. Thanks all!
sudo apt-get install java-wrappers