Return-Path: Received: from foss.arm.com ([217.140.101.70]:35638 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969AbdJBLU4 (ORCPT ); Mon, 2 Oct 2017 07:20:56 -0400 Subject: Re: Fail to build Linux with O= in master References: From: Julien Grall Message-ID: Date: Mon, 2 Oct 2017 12:20:54 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Masahiro Yamada Cc: Michal Marek , Linux Kbuild mailing list , "linux-kernel@vger.kernel.org" Hello, On 30/09/17 01:37, Masahiro Yamada wrote: > 2017-09-30 8:59 GMT+09:00 Julien Grall : >> Hello, >> >> I have tried to build the latest master and got the following error: >> >> 42sh> make O=~/works/linux-build/aarch64-4k -C ~/works/linux >> make: Entering directory '/home/julgra01/works/linux' >> Makefile:135: *** failed to create output directory "~/works/linux-build/aarch64-4k". Stop. >> make: Leaving directory '/home/julgra01/works/linux' >> >> The bisector found the commit 8e9b466 "kbuild: use $(abspath ...) >> instead of $(shell cd ... && /bin/pwd)". >> >> Looking at the code, it seems that it is because the code is >> now using $(realpath ...). Indeed when I replace ~ by $HOME >> the kernel is now built. >> >> I am not a Makefile expert, so I would appreciate if anyone >> could suggest a patch for this. >> > > Thanks for the report. > > Which shell are you using? I am using dash. > > I use bash and I have no problem. > If I try dash, indeed, it fails. > > I will take a look. Thank you! Cheers, -- Julien Grall