From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751748AbcDOUFK (ORCPT ); Fri, 15 Apr 2016 16:05:10 -0400 Received: from yes.iam.tj ([109.74.197.121]:33506 "EHLO iam.tj" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751402AbcDOUFJ (ORCPT ); Fri, 15 Apr 2016 16:05:09 -0400 To: linux-kernel@vger.kernel.org Subject: Bug 116411: =?UTF-8?Q?tools/perf=5Fclean=3A=20output=20directory?= =?UTF-8?Q?=20does=20not=20exist=2E=20Stop=2E?= X-PHP-Originating-Script: 1013:rcmail.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 15 Apr 2016 21:05:07 +0100 From: TJ Message-ID: <68839217fa31b5cafb7c60a049e54a3c@iam.tj> User-Agent: Roundcube Webmail/RCMAIL_VERSION Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v4.6-rc3 tools/perf then tools/perf_clean fails in the source tree: *** output directory "/home/all/SourceCode/linux/linux/tools/perf/tools/perf/" does not exist. Stop. https://bugzilla.kernel.org/show_bug.cgi?id=116411 The problem is that recursive/sub-makes effectively doing O=$(O)/$(subdir) is changing the base directory resulting in $(O)/$(subdir)/$(subdir)/ : "tools/perf" "/" "tools/perf" "/". This is done in tools/scripts/Makefile.include: OUTPUT := $(ABSOLUTE_O)/$(if $(subdir),$(subdir)/) This is another symptom of the bug I reported to the mailing-list and bugzilla on Sun, 10 Apr 2016 22:36:14 +0100, which said: 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.