| Summary: | buildtools-extended-tarball: link search for librt not relocated | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Jeremy A. Puhlman <jpuhlman> |
| Component: | devtools / tool chain | Assignee: | Jeremy A. Puhlman <jpuhlman> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Undecided | CC: | meta.mr.watcher, meta.watcher, TicoTimo, tim.orling |
| Version: | 3.1 | ||
| Target Milestone: | --- | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Jeremy A. Puhlman
2020-04-03 05:17:05 UTC
Adding Tim, since he did a lot of work on this and may have some insight. Here is the issue: 3061991 openat(AT_FDCWD, "/home/jpuhlman/builds/master/profiles/opencgx-x86-generic-64/buildtools/sysroots/x86_64-pokysdk-linux/etc/etc/ld.so.conf", O_RDONLY) = -1 ENOENT (No such file or directory) Looks like the issue is ld_sysconfigdir is set to /<sysroot path>/ then we add /etc/ld.so.conf as well in the binutils ld patch. The following should fix it, currently testing.
diff --git a/meta/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch b/meta/recipes-devtools/binutils/bin
index 8b59ba5..4b4d73d 100644
--- a/meta/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch
+++ b/meta/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch
@@ -65,7 +65,7 @@ index 2e27cf48a8..a095d6aac5 100644
info.path = NULL;
info.len = info.alloc = 0;
- tmppath = concat (ld_sysroot, prefix, "/etc/ld.so.conf",
-+ tmppath = concat (ld_sysconfdir, "/etc/ld.so.conf",
++ tmppath = concat (ld_sysconfdir, "/ld.so.conf",
(const char *) NULL);
if (!ldelf_parse_ld_so_conf (&info, tmppath))
{
(In reply to comment #3) > Looks like the issue is ld_sysconfigdir is set to /<sysroot path>/ then we > add /etc/ld.so.conf as well in the binutils ld patch. That should be /<sysroot path>/etc then we add /etc/ld.so.conf to the end. Looks like you figured out the root cause? https://patchwork.openembedded.org/patch/171584/ (In reply to comment #5) > Looks like you figured out the root cause? > > https://patchwork.openembedded.org/patch/171584/ Yes. Once the path is fixed nspr-native builds correctly. Moving to in progress review since its sitting in master-next. In dunfell now. Moving to resolved. https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=dunfell&id=8b8d6897542f07cf47a4ee9def6d00d0fece96f1 |