Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4904033imm; Tue, 18 Sep 2018 00:46:24 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdal+TVQSYQScPI6nBs1OvhD6eVgT13QSt+4E36Wr50ITUBwR/x354L1iHaf6hkPzYe9NYKd X-Received: by 2002:a62:fd06:: with SMTP id p6-v6mr29540467pfh.167.1537256784946; Tue, 18 Sep 2018 00:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537256784; cv=none; d=google.com; s=arc-20160816; b=LDEbppLewf9NoWackkUgFVBimFNcCifCuy+ZqsS8yiMLLPZn0sLAmtXMimS0J2LjbU rOwCoVIkT56g+Rjxe7Y4SCUuJodhRqY3DjSvd5CcbJxDH4u5vrVHF2TqcT+wFtBkZeUW qKVTg0JOED2igklHsGvyZ0XYPX1/F6Uh8V+fnfOMCosV1Whx450tcZkf3rSTkMXklHIG /v+02HZNGGI5exypxeW7/pIGozuQuZE2v7Gh/O9e6FEy438X7OM2lPUgYyeV40N8PSsH ECe48sazFddt32iMUCgBwi+vZ3tG7L4m78OzC03gsjAa6woG2UOwKlN0KRpBFfrSuA6j BZYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter; bh=FYgWFURChMAO55afr7lwbs5gjV6O7bT9AwHWXnUHfMU=; b=mpMbWLBx9rXoHGG1x7VQWIyBwokZoj9Wepepz8tJ+DrY1npaFgZBuDiY1eIJK2N7Ux ihZlP2ucTwWvTceTJMNSb93dsMHymybqRsABTEL4Qhio7mnni7b5JWNG05JsEFRxRC5L q7lAilz4E7hm5n2iO6hxk6Y5WS6e5kJUUHN/DgHsEQXyCr3xy3B13MFxy6axm48cQnfY TTlsWhoq6AIrYXnMMBUbrbMNYePwdQNxkuEaQzjNF34q9ICbW4j/pW/k9sCsAp9C5Vu0 +BPKE2zc0Iyvz3Io2lfU7xnO0a+C8bWML/7jXrqiY/neYygwgjIh678vjVnnBto6ETD3 YIBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=F39V2UQu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q10-v6si17061461pge.674.2018.09.18.00.46.10; Tue, 18 Sep 2018 00:46:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=F39V2UQu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729211AbeIRNQH (ORCPT + 99 others); Tue, 18 Sep 2018 09:16:07 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:54982 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727140AbeIRNQG (ORCPT ); Tue, 18 Sep 2018 09:16:06 -0400 Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) (authenticated) by conssluserg-01.nifty.com with ESMTP id w8I7iUd1029030; Tue, 18 Sep 2018 16:44:31 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com w8I7iUd1029030 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1537256671; bh=FYgWFURChMAO55afr7lwbs5gjV6O7bT9AwHWXnUHfMU=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=F39V2UQu6j0JAiOmHpsm4ALvrqzasrtyVYl/Ip85uSWmkJNxsMt7TuA5R85WjpYyl R5h0TRcTN/Tdc76YaXWfbLm4Q+vLuTBK19SNpUsybAHmgEIZqHFTC3irEwhOU0IAFJ vv6zTpeIld37rGfd0KMLQkg2gzFuG7atVWZfR69Vv0Icf5sp9B3/OnsG/p53K5nV/+ yo+epRqCTIKk8JiIPsEhgkt5ckJ76gkYv4WadcXfoqcFBYCH9pc6EH8ekME8yLthPc IyErQmQkVSDDsYBk/m5RK3ubcQx7ZVGY6ZJXS3p4Jp0HlJbEGaxRF210+jSz1+R3tq KElaE9GK6+3tA== X-Nifty-SrcIP: [209.85.222.48] Received: by mail-ua1-f48.google.com with SMTP id f4-v6so443471uao.10; Tue, 18 Sep 2018 00:44:31 -0700 (PDT) X-Gm-Message-State: APzg51AsHatu1wH303RwFbFOM70+0kdxW4vO3H2QYgY6b5q2KO50Lyq2 iUBhbN3QRmk/+cflKCChYRTiFK4HXom8yB9ixYY= X-Received: by 2002:a9f:3e87:: with SMTP id x7-v6mr924244uai.53.1537256670411; Tue, 18 Sep 2018 00:44:30 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:7111:0:0:0:0:0 with HTTP; Tue, 18 Sep 2018 00:43:49 -0700 (PDT) In-Reply-To: References: <20180918023157.23951-1-stefan@agner.ch> From: Masahiro Yamada Date: Tue, 18 Sep 2018 16:43:49 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: allow to use GCC toolchain not in Clang search path To: Stefan Agner Cc: Michal Marek , Nick Desaulniers , Arnd Bergmann , Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stefan, 2018-09-18 12:11 GMT+09:00 Stefan Agner : > On 17.09.2018 20:06, Masahiro Yamada wrote: >> Hi Stefan, >> >> 2018-09-18 11:31 GMT+09:00 Stefan Agner : >>> When using a GCC cross toolchain which is not in a compiled in >>> Clang search path, Clang reverts to the system assembler and >>> linker. This leads to assembler or linker errors, depending on >>> which tool is first used for a given architecture. >>> >>> It seems that Clang is not searching $PATH for a matching >>> assembler or linker. >> >> >> The current code passes the absolute path of toolchains >> to --gcc-toolchain option. >> In my understanding, this is enough for Clang >> to find the proper linker and the assembler. >> >> >> Why is the --prefix option also needed ? >> > > It seems that Clang makes a difference between "toolchain" and search path for toolchain binaries. > > Without this patch building fails for the described use case, see the github link for more context. OK, I confirmed this patch fixed the problem. I will wait a little more just in case Nick has comments about this. Thanks. -- Best Regards Masahiro Yamada