From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7FB1371 for ; Sun, 23 Jul 2023 14:35:01 +0000 (UTC) Received: by mail-ot1-f49.google.com with SMTP id 46e09a7af769-6bb1ec7945dso632954a34.0 for ; Sun, 23 Jul 2023 07:35:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690122900; x=1690727700; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6hVbV6PPK4bQ78C5FPPLzZso3da8dxH89LJc/QzUTSs=; b=JWkEpKntYVBuB6E1XatdkZtXVt73rBdbJGE0d5xAPFTEdSwmf1jYbPKEAkJ5idN9vp rOMBT5zkC+hVmjV9TjJgbwKTmp7UDHFUI9lUvYfO8lUVBuSiayofy8aYl37TXi8X0EKL WLVmd+C8Vq99HWrh5qX7sEBbThTiQQLhrJ8fOvojX0WBR9DtDnHa4oNpR8oEphZg0/eL 7TrkmgyrCmaPcgunASu/NKKyV12TUOHmbv+BsHvMg04fCAFCuO8TwyeDa+6nlZwYsQ5s zIXUVVwuEAAdsfPyuHZgq/A6XSg6O9ht63J+4nZY0QH6J+Lz3kbDsbecxAbpRXECwaxR 8sgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690122900; x=1690727700; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6hVbV6PPK4bQ78C5FPPLzZso3da8dxH89LJc/QzUTSs=; b=R5MBInFPMfxTycZH0LSMetEVEtTffyR1Y9TiUGh5UKFS30ioFSf/4zeVkqepaBkFxr 4AsWWhJfUASNdWsQolULBrt1VbE6ttarovycx72xV4PdO7HRIifNNRdtHO5YTLuzSjdP 9rRZFU1/4y43m5VZ+3Hx8v1jFWQzj5qSC8BI2/GHTKKRflXOpQ2KqArMjTVdQVC8psCR W82JbWXrN7DKu25reQxzo8/69bsNS6QqVKlmofkyg15P9z1BFET23R0Ik7iz6YF2EqgL m+/mhchaRjzIgaSOhp5Hi1M6UgPEny6EpLYeewPsgCsXWVnrpE69/S+/Vi/GJho/v0di tWPQ== X-Gm-Message-State: ABy/qLamOK9mAdzTLNGtkOx7a3070A/98Gh9B3mhFciQRSdimrY+zZdY aoWMfG/JKVpQ8g01Yj9l/cY= X-Google-Smtp-Source: APBJJlG0yD0GorNtcgbwNsnxx1O75lYChESB8+iiUX9xQbMDeKstYsQPW1OQLn7V8L5A70F1wbfuAg== X-Received: by 2002:a05:6808:1310:b0:3a1:f18d:2fe8 with SMTP id y16-20020a056808131000b003a1f18d2fe8mr6198281oiv.10.1690122900514; Sun, 23 Jul 2023 07:35:00 -0700 (PDT) Received: from [192.168.54.90] (static.220.238.itcsa.net. [190.15.220.238]) by smtp.gmail.com with ESMTPSA id o204-20020a4a2cd5000000b0055e3dd89c12sm3508157ooo.1.2023.07.23.07.34.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 23 Jul 2023 07:35:00 -0700 (PDT) Message-ID: <01d23a2c-1e30-b660-7997-6d9c29b9dcf1@gmail.com> Date: Sun, 23 Jul 2023 11:34:54 -0300 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] kbuild: rust: avoid creating temporary files Content-Language: en-US To: Miguel Ojeda , Masahiro Yamada , Wedson Almeida Filho , Alex Gaynor Cc: Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Alice Ryhl , Andreas Hindborg , linux-kbuild@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Raphael Nestler , Andrea Righi , stable@vger.kernel.org References: <20230723142128.194339-1-ojeda@kernel.org> From: Martin Rodriguez Reboredo In-Reply-To: <20230723142128.194339-1-ojeda@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 7/23/23 11:21, Miguel Ojeda wrote: > `rustc` outputs by default the temporary files (i.e. the ones saved > by `-Csave-temps`, such as `*.rcgu*` files) in the current working > directory when `-o` and `--out-dir` are not given (even if > `--emit=x=path` is given, i.e. it does not use those for temporaries). > > Since out-of-tree modules are compiled from the `linux` tree, > `rustc` then tries to create them there, which may not be accessible. > > Thus pass `--out-dir` explicitly, even if it is just for the temporary > files. > > Similarly, do so for Rust host programs too. > > Reported-by: Raphael Nestler > Closes: https://github.com/Rust-for-Linux/linux/issues/1015 > Reported-by: Andrea Righi > Tested-by: Raphael Nestler # non-hostprogs > Tested-by: Andrea Righi # non-hostprogs > Fixes: 295d8398c67e ("kbuild: specify output names separately for each emission type from rustc") > Cc: stable@vger.kernel.org > Signed-off-by: Miguel Ojeda > --- > [...] Tested-by: Martin Rodriguez Reboredo