Bug 3841

Summary: apr-util-native do_compile fails when using ccache-native
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Stoicescu Cornel <corneliux.stoicescu>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Medium CC: cristian.iorga, meta.mr.watcher, meta.watcher, richard.purdie
Version: unspecified   
Target Milestone: 1.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
log.do_compile none

Description Stoicescu Cornel 2013-02-04 14:00:14 UTC
Created attachment 1058 [details]
log.do_compile

branch: 1.4_M3
commit: 3ae1a4ba972cfc17ff3f2fda632da8ecc3414885

Steps to reproduce:
1) set up the poky build environment with MACHINE = "qemux86-64"
2) bitbake ccahce-native
3) insert INHERIT += "ccache" in local.conf
4) bitbake core-image-sato

Notice the build fails at apr-util-native do_compile:

x86_64-linux-libtool: compile: unable to infer tagged configuration
x86_64-linux-libtool: compile: specify a tag with `--tag'
make[1]: *** [dbm/apr_dbm_gdbm.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
x86_64-linux-libtool: compile: unable to infer tagged configuration
x86_64-linux-libtool: compile: specify a tag with `--tag'
make[1]: *** [buckets/apr_buckets_eos.lo] Error 1
x86_64-linux-libtool: compile: unable to infer tagged configuration
x86_64-linux-libtool: compile: specify a tag with `--tag'
make[1]: *** [buckets/apr_buckets_file.lo] Error 1
x86_64-linux-libtool: compile: unable to infer tagged configuration
x86_64-linux-libtool: compile: specify a tag with `--tag'
make[1]: *** [buckets/apr_buckets_flush.lo] Error 1
x86_64-linux-libtool: compile: unable to infer tagged configuration
x86_64-linux-libtool: compile: specify a tag with `--tag'
make[1]: *** [buckets/apr_buckets.lo] Error 1
x86_64-linux-libtool: compile: unable to infer tagged configuration
x86_64-linux-libtool: compile: specify a tag with `--tag'
make[1]: *** [buckets/apr_brigade.lo] Error 1
x86_64-linux-libtool: compile: unable to infer tagged configuration
x86_64-linux-libtool: compile: specify a tag with `--tag'
make[1]: *** [buckets/apr_buckets_heap.lo] Error 1
x86_64-linux-libtool: compile: unable to infer tagged configuration
x86_64-linux-libtool: compile: specify a tag with `--tag'
make[1]: *** [buckets/apr_buckets_alloc.lo] Error 1
make[1]: Leaving directory `/home/lserban/work/poky/build/tmp/work/x86_64-linux/apr-util-native/1.4.1-r2/apr-util-1.4.1'
make: *** [all-recursive] Error 1
ERROR: oe_runmake failed
Comment 1 Richard Purdie 2013-02-05 17:17:23 UTC
This is a rebuild in an existing source directory problem. When we sperate B and S, this kind of issue should go away.
Comment 2 Ross Burton 2013-02-06 10:57:54 UTC
Yeah, shame apr-util doesn't currently build nicely out of tree isn't it.
Comment 3 Richard Purdie 2013-02-06 12:45:43 UTC
Yes, a shame indeed :(
Comment 4 Cristian Iorga 2013-04-02 08:33:46 UTC
Hello,

tested in the following config according to steps.
Bug is now longer present, due to changes in poky build system (see Richard's comment).

ubik@sentry:/mnt/Yo/yoctoproject/build$ bitbake core-image-sato
NOTE: Started PRServer with DBfile: /mnt/Yo/yoctoproject/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 48177, PID: 26577
Parsing recipes: 100% |######################################################################################################################################################################| Time: 00:00:12
Parsing of 813 .bb files complete (0 cached, 813 parsed). 1122 targets, 27 skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION        = "1.17.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-12.10"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "qemux86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "1.3+snapshot-20130402"
TUNE_FEATURES     = "m64"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "master:92aeb31341b28b193d616ab5cf38af1b9673e37d"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 5537 tasks of which 5493 didn't need to be rerun and all succeeded.
ubik@sentry:/mnt/Yo/yoctoproject/build$