Bug 369

Summary: can't build attr
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Dexuan Cui <dexuan.cui>
Component: meta-yoctoAssignee: Dexuan Cui <dexuan.cui>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, ke.yu, kevin.tian, poky.bs.watcher, poky.watcher, qing.he, richard.purdie, sgw
Version: 0.9   
Target Milestone: 0.9 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description Dexuan Cui 2010-09-30 03:55:21 UTC
Based on today's poky.git's  master (commit 7f7c185c) plus Kevin's fix to gcc (commit 843d9daf), I met with the failure when building poky-image-sdk -- after the failure occurred, "bitbake attr" had the same do_configure failure:

| /opt/dcui/p/build/tmp/work/ppc603e-poky-linux/attr-2.4.44-r1/attr-2.4.44/configure: line 11009: test: too many arguments
| checking for tar... /bin/tar
| checking for gzip... /bin/gzip
| checking for makedepend... /bin/true
| checking for sort... /usr/bin/sort
| checking whether ln -s works... yes
| checking for msgfmt... no
| 
| FATAL ERROR: msgfmt does not seem to be installed.
| attr cannot be built without a working gettext installation.
| FATAL: oe_runconf failed
NOTE: package attr-2.4.44-r1: task do_configure: Failed

I don't think this has anything to do with kevin's fix.

Here msgfmt should be supplied by gettext. What's strange is: attr does have a DEPENDS on gettext. And "bitbake gettext; bitbake -c clean attr; bitbake attr" can't fix the issue.
BTW: on mips, I didn't meet with the failure.

Actually, I don't think this is ppc related though it occurred on ppc.
Maybe not every build can reproduce the issue.

I will futher look into the bug later.
Comment 1 Qing He 2010-10-08 03:01:15 UTC
attr/acl uses a customize way (custom m4 macros) to detect several basic utilities, i.e. it doesn't detect poky's sysroot dir for them. So this kind of issue is expected.


Btw, it should DEPENDS on "gettext-native" or "inherit gettext" rather than DEPENDS on gettext. The binary is needed by the build process. Can you try if this helps?
Comment 2 Dexuan Cui 2010-10-08 21:59:11 UTC
(In reply to comment #1)
> attr/acl uses a customize way (custom m4 macros) to detect several basic
> utilities, i.e. it doesn't detect poky's sysroot dir for them. So this kind of
> issue is expected.
> Btw, it should DEPENDS on "gettext-native" or "inherit gettext" rather than
> DEPENDS on gettext. The binary is needed by the build process. Can you try if
> this helps?

Thanks a lot for Qing's patch: the issue turns out to be a hardcoded search path in the AC_PATH_PROG of attr's customized macro.

BTW: the bug was triggered on a build host that didn't install gettext.
Comment 4 Dexuan Cui 2010-10-09 08:09:13 UTC
I can build attr successfully with the fix. Let me VERIFY the bug.