| Summary: | meta-toolchain is failing to build | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Khem Raj <raj.khem> | ||||
| Component: | devtools / tool chain | Assignee: | Bogdan Marinescu <bogdan.a.marinescu> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Medium | CC: | meta.mr.watcher, meta.watcher, richard.purdie, sgw | ||||
| Version: | 1.4 | ||||||
| Target Milestone: | 1.4 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | --- | |||||
| Attachments: |
|
||||||
|
Description
Khem Raj
2013-02-03 18:31:00 UTC
git bisect shows below commit to be faulty 244f107c1f11bb74b5a489e4f24eac93706aa584 is the first bad commit commit 244f107c1f11bb74b5a489e4f24eac93706aa584 Author: Richard Purdie <richard.purdie@linuxfoundation.org> Date: Tue Jan 29 14:10:30 2013 +0000 package: Create global package file list and use throughout PACKAGEFUNCS Currently we do a signficant amount of tree traversal in many different places which in inefficient. We can assume that the files don't change and cache the file list which gives an efficiency improvement which this patch does using a global variable. (From OE-Core rev: 2d7608842d2dab07065e60aab729a5c8fd6b7907) (From OE-Core rev: 5c7c8347eb1bc25d194be6f4be142ba0924e2600) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> meta-toolchain is working fine on the autobuilder and fine locally. We're therefore missing some key part of what the problem is here, even if that commit does cause it :/. It works fine with OE-Core default setup true. I have angstrom setup where it fails like below and there is another poky setup where I have multilib enabled in local.conf and it fails in same way. I attempted to build from the same commit and was able to build the meta-toolchain with Poky and Multilib enabled, can you verify your local.conf and possibly provide a diff? since I had two distros, angstrom and poky derived distros both failing, it took me a while to get to the cause of issue. It happens when you enable PR server set PRSERV_HOST = "localhost:0" in your local.conf and then bitbake meta-toolchain from scratch and you will be able to reproduce it. My local build with PR server enabled worked... Please retest with the package.bbclass change related to the PR service that just merged to master. This could well solve the issues. OK I think this could have been fixed as I see but I could not verify all cases I have here since now I am stumbling into new error. While building luajit-2.0 recipe from meta-oe which was all good until yerterday so some progress some regress. I use to get this "already stripped, this will prevent future debugging" warning for this recipe but thats all. Now its failing
UnboundLocalError: local variable 'src' referenced before assignment
ERROR: The stack trace of python calls that resulted in this exception/failure was:
ERROR: File "split_and_strip_files", line 206, in <module>
ERROR:
ERROR: File "split_and_strip_files", line 99, in split_and_strip_files
ERROR:
ERROR: The code that was being executed was:
ERROR: 0202: # End of strip
ERROR: 0203: #
ERROR: 0204:
ERROR: 0205:
ERROR: *** 0206:split_and_strip_files(d)
ERROR: 0207:
ERROR: [From file: 'split_and_strip_files', lineno: 206, function: <module>]
ERROR: 0095: # ...but is it ELF, and is it already stripped?
ERROR: 0096: elf_file = isELF(file)
ERROR: 0097: if elf_file & 1:
ERROR: 0098: if elf_file & 2:
ERROR: *** 0099: bb.warn("File '%s' from %s was already stripped, this will prevent future debugging!" % (src, pn))
ERROR: 0100: continue
ERROR: 0101: # Check if it's a hard link to something else
ERROR: 0102: if s.st_nlink > 1:
ERROR: 0103: file_reference = "%d_%d" % (s.st_dev, s.st_ino)
ERROR: [From file: 'split_and_strip_files', lineno: 99, function: split_and_strip_files]
ERROR: Function failed: split_and_strip_files
Created attachment 1064 [details]
patch which fixes issue seen with undefined src
This patch fixes the intermediate problem.
with the above fix applied I have now confirm that the original issue does not exist anymore so the commits with Richard mentioned must have fixed it. But we still need the above fix for different reason. The secondary issue fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=43bc21462bcf4eb46deae1a0f51f44a8ff920083 The original issue fixed with: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=7980773d909a5373b7e21a973428bbb9d4be6182 |