Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3823291ybb; Tue, 31 Mar 2020 12:42:43 -0700 (PDT) X-Google-Smtp-Source: APiQypLpBbYWlKY83O7OhGuU9tn6ZE9XEv/Batf3V7zzgJd0PCTfXpmKlk5VihjE+QOwTVVrC85y X-Received: by 2002:aca:d645:: with SMTP id n66mr393556oig.66.1585683763750; Tue, 31 Mar 2020 12:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585683763; cv=none; d=google.com; s=arc-20160816; b=eDllqAwZwZZ6iAhq6nlan/hiszrdfjoLUnJyL8p+t/y9p/3xm4OZheP2EJT+k//kf5 pam66M/Cu4MOecZRI49ePDr779sIg7UWTrXbzKdJSH+u1FovM5NUQb3iQG46St5MWenS cjPcWbJN307aGSeIANgiktigGdM2ZMnrF5vo3HyVL9tFxYv1N/hw0VDAf54OWV+uSMAP Hcx4T+fn6pROmkdd5uVzeHl/Yjp2rrqFzF1B7ZjGVUosULufpsiFV1kYJb1nYbYgo40l +r/r8POYfzzB1MbHH9h4fygStqJcB0owuedjVRHrT0BIjuHPoXMINt1bKOMTRJRIKCSR qDTw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=1k2Wmff8smQkle9ahxWlMJVScKrQOt29svFTAK1Lhr8=; b=j51ON0vYaBHkKnbMy+pil2kS4Wnpei7WT1RDI8Cb74J6Ts7EypuAuyP0rBLusa74+E n6lEKJYkLNPh1NImZdImsGgR8TNrHs+v0H/fWLoHZzTGdrUdMKfdjXf0X2U8woXM1Mvx 9NlfqSnwvhUbQVzrvgYQIeF+W/X2NaFmUhbM2UO+O8+s4FpXUDLB3b0q2O2RlpfrYn+f eU8alr/vad42p6pZQJE7IjhBlx+awakrtPsphxyknLxHCVK+dIbflsh66I/Af41yQGjt BNL8vIv3H5MCDZKCn8fqNIkg4rVuYHNI43lwgyb7xA7VAyfRLo4HzTCJ6wRay1yXdgpd vlbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QVvuXjA6; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k24si9020429otf.213.2020.03.31.12.42.31; Tue, 31 Mar 2020 12:42:43 -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=@google.com header.s=20161025 header.b=QVvuXjA6; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730784AbgCaTk4 (ORCPT + 99 others); Tue, 31 Mar 2020 15:40:56 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:34810 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730642AbgCaTkz (ORCPT ); Tue, 31 Mar 2020 15:40:55 -0400 Received: by mail-pf1-f196.google.com with SMTP id 23so10854342pfj.1 for ; Tue, 31 Mar 2020 12:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1k2Wmff8smQkle9ahxWlMJVScKrQOt29svFTAK1Lhr8=; b=QVvuXjA67ZcCCqygGJUKSlPMfyHK0xdJ6Rw61Gqsg30dzIu5NMOUp/9yY3nEfYRnj8 AdLJ9oB9xMb2+2aB63EtqF14AeDIKJjjAbnw4MVEUfWAd8dfT7QzGqvvFe+BJQfEmwph Ok0JFzTKfoHgmRGub5+uaQNh55Cu+xLH/U8++emKAIMo9KN9XvIE4fO7i9bK17XWIPY8 hFtRzu7sQQ9xgW4BgM+QEYPmw3DLgpVtCwS/W5a851N6aU+llEAUPUqNZa7OHvhB8MVr arVj9aP0vGpmgJbyLdDL9zDat6PKlEA59Zg3j7NQELuQn6/xulzwTuRwN1nLkED3CvAC Zw3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1k2Wmff8smQkle9ahxWlMJVScKrQOt29svFTAK1Lhr8=; b=SDJArZK88lJzA+eoVmnWf0+WwUQ5PqG2xBxGJEggNZFSya/81J0EVPMfUH6JqjUa4G apiF+Ciqa1HOxOBs6jVGJVH26kjncPndt11hDZoJP4MFcotOsGYQWWoM8fz9K7s+hjdM ye9VeMv0umcqEHF3ri1mm/ZNHcm4xwmQFSEjLxETl8QucgjLxbIJuB2ouxyZKPpHKc/8 t/ESwZX8HIH/ZlEtENzxPT2xwoYEqkdPcAcvbRqS9xijuzYZ3272o28GSXT29KD6bHS6 ijwjmTLHuxR6fTaf2Zdb17mw63l0/dO6OQlzi6yxCrrm9mjBPOoNrL2A/6LK58Z/biAq E+tw== X-Gm-Message-State: ANhLgQ02O4+ckC0L8KX/0JIXrOcUe4tayeZIRXY3ZzU7ZmFFHAHff7jZ 0hD6F14cH3GowhRfFkLaa0gipau/+4c8IKqmDO2WQw== X-Received: by 2002:a05:6a00:42:: with SMTP id i2mr19631475pfk.108.1585683653136; Tue, 31 Mar 2020 12:40:53 -0700 (PDT) MIME-Version: 1.0 References: <20200317202404.GA20746@ubuntu-m2-xlarge-x86> <20200317215515.226917-1-ndesaulniers@google.com> <20200327224246.GA12350@ubuntu-m2-xlarge-x86> <20200330190312.GA32257@ubuntu-m2-xlarge-x86> <20200331193544.GA55810@ubuntu-m2-xlarge-x86> In-Reply-To: <20200331193544.GA55810@ubuntu-m2-xlarge-x86> From: Nick Desaulniers Date: Tue, 31 Mar 2020 12:40:42 -0700 Message-ID: Subject: Re: [PATCH v2] Makefile.llvm: simplify LLVM build To: Nathan Chancellor Cc: Masahiro Yamada , clang-built-linux , Linux Kbuild mailing list , Linux Kernel Mailing List , Sandeep Patil 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 On Tue, Mar 31, 2020 at 12:35 PM Nathan Chancellor wrote: > > On Tue, Mar 31, 2020 at 11:39:27AM -0700, Nick Desaulniers wrote: > > On Mon, Mar 30, 2020 at 11:25 PM Masahiro Yamada wrote: > > > > > > In fact, the debian provides multiple versions of GCC. > > > For example, my machine has > > > > > > masahiro@pug:~$ ls -1 /usr/bin/gcc-* > > > /usr/bin/gcc-4.8 > > > /usr/bin/gcc-5 > > > /usr/bin/gcc-7 > > > /usr/bin/gcc-ar > > > /usr/bin/gcc-ar-4.8 > > > /usr/bin/gcc-ar-5 > > > /usr/bin/gcc-ar-7 > > > /usr/bin/gcc-nm > > > /usr/bin/gcc-nm-4.8 > > > /usr/bin/gcc-nm-5 > > > /usr/bin/gcc-nm-7 > > > /usr/bin/gcc-ranlib > > > /usr/bin/gcc-ranlib-4.8 > > > /usr/bin/gcc-ranlib-5 > > > /usr/bin/gcc-ranlib-7 > > > > > > But, nobody has suggested GCC_SUFFIX. > > > > > > So, I guess CROSS_COMPILE was enough to > > > choose a specific tool version. > > > > Or no one was testing specific versions of gcc with more than one > > installed. I can ask the KernelCI folks next week if this is an issue > > they face or have faced. > > Well gcc is just one tool, so specified CC=gcc-5 is not that > complicated; it would get a lot more gnarly if one had different > versions of binutils as well. Have you had to test different releases of binutils yet? I have, and it was not fun. I don't even remember what I did but I recall it being painful trying to get it to work. (I think I finally solved it via temporary symlink). Speaking of, I should get back to those dwarf-5 patches I started, now that binutils devs implemented every missing feature I could find. -- Thanks, ~Nick Desaulniers