Bug 6104 - Possible false positive QA warnings while building
Summary: Possible false positive QA warnings while building
Status: VERIFIED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium+ normal
Target Milestone: 1.6.1
Assignee: Cristian Iorga
QA Contact: Alexandru Georgescu
URL:
Whiteboard:
: 6224 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-02 15:29 UTC by Cristian Iorga
Modified: 2014-07-31 09:43 UTC (History)
7 users (show)

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


Attachments
Build log with QA warnings (5.98 KB, text/plain)
2014-04-04 10:08 UTC, Cristian Iorga
no flags Details
executable with textrel section of size zero (721.02 KB, application/octet-stream)
2014-05-28 15:22 UTC, Cristian Iorga
no flags Details
executable with textrel section of size zero (14.16 KB, application/octet-stream)
2014-05-28 16:12 UTC, Cristian Iorga
no flags Details
executable with textrel section of size zero (17.95 KB, application/octet-stream)
2014-05-28 16:12 UTC, Cristian Iorga
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cristian Iorga 2014-04-02 15:29:21 UTC
QA warning:
WARNING: QA Issue: ELF binary 'mnt/Yo/yoctoproject/build/tmp/work/core2-64-poky-linux/wireless-tools/1_30.pre9-r0/packages-split/wireless-tools/sbin/iwconfig' has relocations in .text
while building qemux86-64 core-image-sato.
Comment 1 Cristian Iorga 2014-04-02 15:31:26 UTC
Initial investigation suggest that while textrel section is present in binary obj file iwconfig, the section is empty.
In that case, a possible solution would be to check for size of section, not only on presence.
Comment 2 Paul Eggleton 2014-04-03 15:05:46 UTC
Thoughts from the triage team:
- The sections shouldn't exist if they're zero size, so if that's the case this might be a linker issue; we shouldn't just change the sanity check to ignore them
- Since not everyone is seeing this maybe it's an issue of reusing an existing TMPDIR?
Comment 3 Cristian Iorga 2014-04-04 07:35:18 UTC
Started re-test without sstate mirrors or pre-mirrors.
Comment 4 Cristian Iorga 2014-04-04 10:08:54 UTC
Created attachment 1897 [details]
Build log with QA warnings

This build was done without sstate mirrors or premirrors set. Build was done from a clean builddir. Still, the issue is present.
Comment 5 Cristian Iorga 2014-04-10 14:00:51 UTC
Issue needs to be fixed on 1.7 also.
Comment 6 Paul Eggleton 2014-04-24 15:01:07 UTC
*** Bug 6224 has been marked as a duplicate of this bug. ***
Comment 7 Khem Raj 2014-05-03 04:46:01 UTC
(In reply to comment #2)
> Thoughts from the triage team:
> - The sections shouldn't exist if they're zero size, so if that's the case
> this might be a linker issue; we shouldn't just change the sanity check to
> ignore them
> - Since not everyone is seeing this maybe it's an issue of reusing an
> existing TMPDIR?

hmm interesting. 0 sized textrels is something wrong in assembler or linker.
most probably assembler. If you can narrow is down to object file which is producing it
then we can take it further

readelf -d .o | grep (TEXTREL) 0x0

should help
Comment 8 Cristian Iorga 2014-05-28 15:22:14 UTC
Created attachment 1982 [details]
executable with textrel section of size zero

sample: executable with textrel section of size zero
Comment 9 Cristian Iorga 2014-05-28 16:12:11 UTC
Created attachment 1984 [details]
executable with textrel section of size zero

sample: executable with textrel section of size zero
Comment 10 Cristian Iorga 2014-05-28 16:12:45 UTC
Created attachment 1985 [details]
executable with textrel section of size zero

sample: executable with textrel section of size zero
Comment 11 Cristian Iorga 2014-05-28 16:13:45 UTC
The machine that I was building for while getting the warnings was qemux86-64.
No special configuration was used.
Comment 12 Richard Purdie 2014-06-26 09:28:16 UTC
This should be fixed by: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ad07178802d04ff475b3cac6a18f43523351da3e (and subsequent fix in the following patch for older gccs)
Comment 13 Alexandru Georgescu 2014-07-31 09:43:40 UTC
I've built a core-image-sato with 1.7_M2.rc1,  2d1660112e54653f7bb763939d0416472c49fe01 successfully.