Bug 11297

Summary: RefKit: Standard SDK build fails for refkit-image-common
Product: [Yocto Project Subprojects] IoT Reference OS Kit Reporter: Henry Bruce <henry.bruce>
Component: intel-iot-refkit-toolsAssignee: Henry Bruce <henry.bruce>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Low CC: amarnath.valluri, mikko.ylinen
Version: 2.3   
Target Milestone: Future   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
RefKit SDK build failure log none

Description Henry Bruce 2017-04-04 23:44:28 UTC
Created attachment 3688 [details]
RefKit SDK build failure log

$ bitbake refkit-image-common -c populate_sdk
| CMake Error at CMakeLists.txt:54 (project):
|   The CMAKE_C_COMPILER:
| 
|     x86_64-refkitsdk-linux-gcc
| 
|   is not a full path and was not found in the PATH.
| 

Full log is attached.
Comment 1 Ismo Puustinen 2017-04-21 07:32:53 UTC
For me this fails already much earlier:

ERROR: nativesdk-qemu-2.8.0-r0 do_patch: Command Error: 'quilt --quiltrc /u/ipuustin/intel-iot-refkit/build/tmp-glibc/work/x86_64-nativesdk-refkitsdk-linux/nativesdk-qemu/2.8.0-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
Applying patch 0001-tpm-backend-Remove-unneeded-member-variable-from-bac.patch
patching file hw/tpm/tpm_passthrough.c
Hunk #1 FAILED at 46.
Hunk #2 succeeded at 745 (offset 283 lines).
1 out of 2 hunks FAILED -- rejects in file hw/tpm/tpm_passthrough.c
patching file include/sysemu/tpm_backend.h
patching file tpm.c
Patch 0001-tpm-backend-Remove-unneeded-member-variable-from-bac.patch does not apply (enforce with -f)
ERROR: nativesdk-qemu-2.8.0-r0 do_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /u/ipuustin/intel-iot-refkit/build/tmp-glibc/work/x86_64-nativesdk-refkitsdk-linux/nativesdk-qemu/2.8.0-r0/temp/log.do_patch.3088
ERROR: Task (virtual:nativesdk:/u/ipuustin/intel-iot-refkit/openembedded-core/meta/recipes-devtools/qemu/qemu_2.8.0.bb:do_patch) failed with exit code '1'
Comment 2 Amaranth Valluri 2017-04-21 09:17:15 UTC
Submitted the PR to fix qemu tpm patch failure:
https://github.com/intel/intel-iot-refkit/pull/126

wit that patch, can reproduce the original 'clang'build failure reported.
Comment 3 Ismo Puustinen 2017-04-21 10:05:48 UTC
I tried this with Clang 4.0 (meta-clang git HEAD), and I couldn't reproduce the problem. Reporter, can you apply patch https://github.com/intel/intel-iot-refkit/pull/123/commits/9b84b0f55bee8db3a206019f503f4204c3c10a18 and then try again?
Comment 4 Henry Bruce 2017-04-21 21:09:51 UTC
I updated and applied patch from github PR #126 then SDK built successfully.