[yocto] [meta-java] failed to bitbake openjdk-8

Chang, Rebecca Swee Fun rebecca.swee.fun.chang at intel.com
Mon Jan 18 22:09:16 PST 2016


Hi all,

I am trying to integrate meta-java into Common BSP. My intention is to integrate mraa from meta-intel-iot-devkit and meta-intel-iot-middleware.
MRAA is having dependency on openjdk-8 provided by meta-java.

The poky version that I'm using is Poky on branch Jethro.
meta-java on master branch.

I have this source fetching error when bitbake openjdk-8.
>From the logs, it mentioned the source checksum are mismatched. However, the checksum are the same by manual download using wget.

I have also done modifying the SRC_URI checksum in openjdk-8-release-72b05.inc file in meta-java/recipes-core/openjdk.
Cleaned the build directory and rebuild.
But bitbake just doesn't get pass do_fetch stage.

Thanks in advance.

I hereby paste the error logs:

WARNING: Checksum failure encountered with download of http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/archive/39baa472e20c.tar.bz2;name=jdk;unpack=false - will attempt other sources if available
WARNING: Renaming /home/ilab/development/yocto_build/build/downloads/39baa472e20c.tar.bz2 to /home/ilab/development/yocto_build/build/downloads/39baa472e20c.tar.bz2_bad-checksum_746e4d38fa3d31a22239d160688ed447
ERROR: Fetcher failure for URL: 'http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/archive/39baa472e20c.tar.bz2;name=jdk;unpack=false'. Checksum mismatch!
File: '/home/ilab/development/yocto_build/build/downloads/39baa472e20c.tar.bz2' has sha256 checksum e3587fa57eec72c561f0695723649a745966bb2a74803ff8a451b80fd2079f99 when "e3587fa57eec72c561f0695723649a745966bb2a74803ff8a451b80fd2079f99" was expected If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
SRC_URI[jdk.md5sum] = "746e4d38fa3d31a22239d160688ed447"
SRC_URI[jdk.sha256sum] = "e3587fa57eec72c561f0695723649a745966bb2a74803ff8a451b80fd2079f99"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

ERROR: Function failed: Fetcher failure for URL: 'http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/archive/39baa472e20c.tar.bz2;name=jdk;unpack=false'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/ilab/development/yocto_build/build/tmp/work/corei7-64-poky-linux/openjdk-8/72b05-r0/temp/log.do_fetch.30297
ERROR: Task 4 (/home/ilab/development/yocto_build/meta-java/recipes-core/openjdk/openjdk-8_72b05.bb, do_fetch) failed with exit code '1'
WARNING: Checksum failure encountered with download of http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/archive/39baa472e20c.tar.bz2;name=jdk;unpack=false - will attempt other sources if available
WARNING: Renaming /home/ilab/development/yocto_build/build/downloads/39baa472e20c.tar.bz2 to /home/ilab/development/yocto_build/build/downloads/39baa472e20c.tar.bz2_bad-checksum_746e4d38fa3d31a22239d160688ed447
ERROR: Fetcher failure for URL: 'http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/archive/39baa472e20c.tar.bz2;name=jdk;unpack=false'. Checksum mismatch!
File: '/home/ilab/development/yocto_build/build/downloads/39baa472e20c.tar.bz2' has sha256 checksum e3587fa57eec72c561f0695723649a745966bb2a74803ff8a451b80fd2079f99 when "e3587fa57eec72c561f0695723649a745966bb2a74803ff8a451b80fd2079f99" was expected If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
SRC_URI[jdk.md5sum] = "746e4d38fa3d31a22239d160688ed447"
SRC_URI[jdk.sha256sum] = "e3587fa57eec72c561f0695723649a745966bb2a74803ff8a451b80fd2079f99"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

ERROR: Function failed: Fetcher failure for URL: 'http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/archive/39baa472e20c.tar.bz2;name=jdk;unpack=false'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/ilab/development/yocto_build/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/temp/log.do_fetch.30299
ERROR: Task 130 (/home/ilab/development/yocto_build/meta-java/recipes-core/openjdk/openjdk-8-native_72b05.bb, do_fetch) failed with exit code '1'

Regards,
Rebecca



More information about the yocto mailing list