Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1375370 > unrolled thread
| Started by | TJ <linux@iam.tj> |
|---|---|
| First post | 2016-04-10 23:50 +0200 |
| Last post | 2016-04-11 10:50 +0200 |
| Articles | 4 — 2 participants |
Back to article view | Back to linux.kernel
Bug 116131: tools/perf and O= fails to build TJ <linux@iam.tj> - 2016-04-10 23:50 +0200
Re: Bug 116131: tools/perf and O= fails to build Andy Shevchenko <andy.shevchenko@gmail.com> - 2016-04-11 09:50 +0200
Re: Bug 116131: tools/perf and O= fails to build TJ <linux@iam.tj> - 2016-04-11 10:40 +0200
Re: Bug 116131: tools/perf and O= fails to build Andy Shevchenko <andy.shevchenko@gmail.com> - 2016-04-11 10:50 +0200
| From | TJ <linux@iam.tj> |
|---|---|
| Date | 2016-04-10 23:50 +0200 |
| Subject | Bug 116131: tools/perf and O= fails to build |
| Message-ID | <rmvp0-3a8-3@gated-at.bofh.it> |
Trying to do an out-of-tree build using either absolute or relative paths for O= fails when trying to build tools/perf. More details in ""Directory does not exist" when doing tools perf_install out-of-tree build" https://bugzilla.kernel.org/show_bug.cgi?id=116131 git blame shows commits c883122a and bf35182f are responsible for the path calculation code.
[toc] | [next] | [standalone]
| From | Andy Shevchenko <andy.shevchenko@gmail.com> |
|---|---|
| Date | 2016-04-11 09:50 +0200 |
| Message-ID | <rmELD-2aR-1@gated-at.bofh.it> |
| In reply to | #1375370 |
On Mon, Apr 11, 2016 at 12:36 AM, TJ <linux@iam.tj> wrote: > Trying to do an out-of-tree build using either absolute or relative paths > for O= fails when trying to build tools/perf. > > More details in ""Directory does not exist" when doing tools perf_install > out-of-tree build" > > https://bugzilla.kernel.org/show_bug.cgi?id=116131 > > git blame shows commits c883122a and bf35182f are responsible for the path > calculation code. > Create directory manually. acme@ pointed me out to some commit where it's done on purpose. -- With Best Regards, Andy Shevchenko
[toc] | [prev] | [next] | [standalone]
| From | TJ <linux@iam.tj> |
|---|---|
| Date | 2016-04-11 10:40 +0200 |
| Message-ID | <rmFy3-2Qu-27@gated-at.bofh.it> |
| In reply to | #1375543 |
On 11-04-2016 08:40, Andy Shevchenko wrote: > On Mon, Apr 11, 2016 at 12:36 AM, TJ <linux@iam.tj> wrote: >> Trying to do an out-of-tree build using either absolute or relative >> paths >> for O= fails when trying to build tools/perf. > > Create directory manually. > acme@ pointed me out to some commit where it's done on purpose. It's trying to use *the wrong* directory path entirely. It looks to be caused by the sub-make calls that pass O=$(OUTPUT) because OUTPUT has been set to $(O)+subdir. Then, in the sub-make tools/scripts/Makefile.include is called *again* and does the same $(O)+subdir resulting in basedir+subdir+subdir.
[toc] | [prev] | [next] | [standalone]
| From | Andy Shevchenko <andy.shevchenko@gmail.com> |
|---|---|
| Date | 2016-04-11 10:50 +0200 |
| Message-ID | <rmFHJ-2Ui-29@gated-at.bofh.it> |
| In reply to | #1375617 |
On Mon, Apr 11, 2016 at 11:35 AM, TJ <linux@iam.tj> wrote: > > On 11-04-2016 08:40, Andy Shevchenko wrote: >> >> On Mon, Apr 11, 2016 at 12:36 AM, TJ <linux@iam.tj> wrote: >>> >>> Trying to do an out-of-tree build using either absolute or relative paths >>> for O= fails when trying to build tools/perf. >> >> >> Create directory manually. >> acme@ pointed me out to some commit where it's done on purpose. > > > It's trying to use *the wrong* directory path entirely. > > It looks to be caused by the sub-make calls that pass O=$(OUTPUT) because > OUTPUT has been set to $(O)+subdir. > > Then, in the sub-make tools/scripts/Makefile.include is called *again* and > does the same $(O)+subdir resulting in basedir+subdir+subdir. Didn't remember if my case was the same, but as workaround I can propose you to build in a dedicated worktree. % git worktree add ../perf-test my_current_branch % cd ../perf-test % make (no O= provided) bla-bla-bla -- With Best Regards, Andy Shevchenko
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web