Bug 7467 - failed to build ext sdk
Summary: failed to build ext sdk
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.8 M4
Assignee: Randy Witt
QA Contact: Alexandru Georgescu
URL:
Whiteboard:
Depends on:
Blocks: 6936
  Show dependency tree
 
Reported: 2015-03-17 06:34 UTC by Yi Zhao
Modified: 2015-03-26 11:32 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
log.do_populate_sdk (5.10 KB, application/octet-stream)
2015-03-17 06:34 UTC, Yi Zhao
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2015-03-17 06:34:55 UTC
Created attachment 2445 [details]
log.do_populate_sdk

git: master/df0672b038e6942c97d266af9ca175a06f2b0423

This test case is from bug 6936

Steps:
1. set the arch to qemux86
2. bitbake core-image-sato -c populate_sdk_ext

Error message:
############################
| DEBUG: Executing shell function create_sdk_files
| ('movefile: Failed to move', '/buildarea/poky/build-test/tmp/work/i586-poky-linux/uninative-tarball/1.0-r0/sdk/image/etc/rpm', 'to', '/buildarea/poky/build-test/tmp/work/i586-poky-linux/uninative-tarball/1.0-r0/sdk/image/opt/poky/1.7+snapshot/sysroots/x86_64-pokysdk-linux/etc', OSError(39, 'Directory not empty'))
| DEBUG: Shell function create_sdk_files finished
| DEBUG: Executing shell function tar_sdk
| /buildarea/poky/build-test/tmp/work/i586-poky-linux/uninative-tarball/1.0-r0/temp/run.tar_sdk.4081: line 108: patchelf: command not found
| WARNING: /buildarea/poky/build-test/tmp/work/i586-poky-linux/uninative-tarball/1.0-r0/temp/run.tar_sdk.4081:1 exit 127 from
|   patchelf --set-interpreter aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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-test/tmp/work/i586-poky-linux/uninative-tarball/1.0-r0/temp/log.do_populate_sdk.4081)
ERROR: Task 224 (/buildarea/poky/meta/recipes-core/meta/uninative-tarball.bb, do_populate_sdk) failed with exit code '1'
########################

More details, please see the attachment.
Comment 1 Paul Eggleton 2015-03-21 22:22:17 UTC
From the log above:
 /temp/run.tar_sdk.4081: line 108: patchelf: command not found

Is this perhaps a missing dependency on patchelf-native?
Comment 2 Randy Witt 2015-03-23 16:30:50 UTC
(In reply to comment #1)
> From the log above:
>  /temp/run.tar_sdk.4081: line 108: patchelf: command not found
> 
> Is this perhaps a missing dependency on patchelf-native?

That's what it looks like but:

meta/recipes-core/meta/uninative-tarball.bb:DEPENDS += "patchelf-native

So it "should" be there.
Comment 3 Paul Eggleton 2015-03-24 05:13:34 UTC
Hmm, well something odd is happening because I definitely hit this and "bitbake patchelf-native" solved it.
Comment 4 Randy Witt 2015-03-24 19:08:25 UTC
(In reply to comment #3)
> Hmm, well something odd is happening because I definitely hit this and
> "bitbake patchelf-native" solved it.

I had patchelf installed on my workstation, whoops. The easiest way to reproduce this is to "bitbake patchelf-native -c cleansstate", "bitbake -c cleansstate uninative-tarball", "bitbake uninative-tarball".
Comment 5 Alexandru Georgescu 2015-03-25 06:57:15 UTC
Hi, I could reproduce this on my host as well (F20, 64bit)
Comment 6 Randy Witt 2015-03-25 17:09:31 UTC
This should be fixed in master:

commit 3a646564adeac7448c47f3bba883bb5311d0dda0
Author: Tyler Hall <tylerwhall@gmail.com>
Date:   Tue Mar 24 18:17:10 2015 -0400
Comment 7 Alexandru Georgescu 2015-03-26 11:32:58 UTC
verified with fido:8b3d3e7c957ad06c390886487f69aeb8e145da6a