* [Bug runtime/20122] New: use base os toolchain consistently in the developer toolset environment
@ 2016-05-20 12:30 mcermak at redhat dot com
2016-05-20 14:57 ` [Bug runtime/20122] " mcermak at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: mcermak at redhat dot com @ 2016-05-20 12:30 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=20122
Bug ID: 20122
Summary: use base os toolchain consistently in the developer
toolset environment
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: runtime
Assignee: systemtap at sourceware dot org
Reporter: mcermak at redhat dot com
Target Milestone: ---
In the devtoolset environment, base os compiler is being used even if the
devtoolset one is available. This way systemtap kernel modules are being
compiled using similar compiler to which has been used for the kernel
compilation. Systemtap enforces that by tweaking the PATH env var
appropriately.
However it turns out that LD_LIBRARY_PATH isn't being updated accordingly and
so the base rhel assembler uses the devtoolset variant of bfd, which leads to
rhbz1337617.
Following update fixes this problem for me:
=======
# git diff
diff --git a/buildrun.cxx b/buildrun.cxx
index 0656e70..9621c97 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -101,11 +101,19 @@ make_any_make_cmd(systemtap_session& s, const string&
dir, const string& target)
newpath += oldpath;
}
+ string newldlpath("LD_LIBRARY_PATH=/usr/lib64:/usr/lib");
+ const char *oldldlpath = getenv("LD_LIBRARY_PATH");
+ if (oldldlpath != NULL)
+ {
+ newldlpath += ':';
+ newldlpath += oldldlpath;
+ }
+
vector<string> make_cmd
{
// PR14168: sanitize environment variables for kbuild invocation
"env", "-uARCH", "-uKBUILD_EXTMOD", "-uCROSS_COMPILE", "-uKBUILD_IMAGE",
- "-uKCONFIG_CONFIG", "-uINSTALL_PATH", newpath,
+ "-uKCONFIG_CONFIG", "-uINSTALL_PATH", newpath, newldlpath,
"make", "-C", s.kernel_build_tree,
"M=" + dir, // need make-quoting?
#
=======
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug runtime/20122] use base os toolchain consistently in the developer toolset environment
2016-05-20 12:30 [Bug runtime/20122] New: use base os toolchain consistently in the developer toolset environment mcermak at redhat dot com
@ 2016-05-20 14:57 ` mcermak at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: mcermak at redhat dot com @ 2016-05-20 14:57 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=20122
Martin Cermak <mcermak at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Martin Cermak <mcermak at redhat dot com> ---
Fixed in commit 37a4150fe4ace4af2d8335442feb91f5bb06d91e
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-20 14:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-20 12:30 [Bug runtime/20122] New: use base os toolchain consistently in the developer toolset environment mcermak at redhat dot com
2016-05-20 14:57 ` [Bug runtime/20122] " mcermak at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).