Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3380007ybi; Mon, 10 Jun 2019 09:15:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyiPotZgCYJnnSQYYqPt/X9R+0jTSVjrNbg26K8Q6QqUnNElZZ0pBT8boB7lrgoAPP8ApCy X-Received: by 2002:a63:4d0e:: with SMTP id a14mr15313991pgb.346.1560183318730; Mon, 10 Jun 2019 09:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560183318; cv=none; d=google.com; s=arc-20160816; b=SFInwERIuOVtWuGnEQXrZjKYhmI3agVqQDKxOF14ozoYOPDyHbZSjvgkBqHrGJ03N6 Xjubaa2XdwkzBbV+MACCqBf/Z1CeXcqd31UyaNRaG4W691ltfNo37R0izjMehx6kMWsa TTKk41MFHF/Wi2dhIDgSeRbP9+OVtnDJewyez6GUprk46uRJbvbbTgB2FWxHrgpxlUr5 3x1EdN8YiWHkQPeNaL1Pvw9ad7NfZ4u115hnfdJ3/rfYFhtSkmcpiPWgA7OGJINrB58u MQix/wk4pAt3hgkwmOh8W3eU35JwRVuiF1vy5I44HvUjCTLfxw4WdNeJaItPSzO+Yd0w eGCQ== 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=YwmVmh7jPztWy0GKEZAfyi5TFykIAsZvgNG89Rfbe68=; b=zDKKMc/qMQCWV7Fqrl+F4OCeQll/iYD1tazjs23kjrejvuHGagN0Y32vC5G8EP9OzP vuZXXSiL1LT6sqBDwa65jPYD6PWJrGSjal/wECdUo4Q8F6NsWi5mUXofvnHwInHZTejM k7y+W8z1WIYn0I0omsXOMVQsIRZygwWWcorfbr0fIBP39MsWqb3fzCAgol0VbwPxOy3N FoJSOB2G8Xv7p8RHSBLAoeRY9+Fc/FBo0+vIyiekPikMz+MtbDR8sV0S/+uJXGYe6MeF LfgikSyT5WLk9ZUBtBFFaIkeERvT+ah1tIwRQsTxeq19WWKdhFWC0rMWINSQ9AEIHXRw XDVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=Etd7t68x; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cloudflare.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a16si10324563pgl.242.2019.06.10.09.15.03; Mon, 10 Jun 2019 09:15:18 -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=@cloudflare.com header.s=google header.b=Etd7t68x; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cloudflare.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391043AbfFJPCK (ORCPT + 99 others); Mon, 10 Jun 2019 11:02:10 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40539 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727466AbfFJPCK (ORCPT ); Mon, 10 Jun 2019 11:02:10 -0400 Received: by mail-wm1-f65.google.com with SMTP id v19so859246wmj.5 for ; Mon, 10 Jun 2019 08:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YwmVmh7jPztWy0GKEZAfyi5TFykIAsZvgNG89Rfbe68=; b=Etd7t68xizBkpcZqSEMOmT0qrNwSLIudbv4IWKJ031r71BYQHQW6GeZWqtnrRNkBZL GGSEUKkBMrK2JbSv1ypdS0uQSs1noO9Wpm5ttLet+CLfEVtWpciTFTcZ/+SdCc67u3hi p6GYFZ/nRGVtcfl/ebubZVit/0qIbmPGcWIp0= 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=YwmVmh7jPztWy0GKEZAfyi5TFykIAsZvgNG89Rfbe68=; b=CDYEUxuwOiX9GNdR9gDwQZz7PFbk7CEdS9AbBg+Qlmub5uMOLSfuRFOKcLXJ9J++T8 /AXaf4tL9DcvOmFTgp0BmMxIbe3X1mExIyLmaszIgZ7cvMHPRjCOgS4tQ+8XMOh5Dvnu 246Q4br0Xm3OVqOCNNXWr5qT19DKWUXMX5NR4K21bPCiDZUZYIlf/SWGRHDZCXClU9bx pHW3177jW2CAG8DGqVfLiAc8BFeRqAryHZ6OUnFlIgm9lLzbnwc68O1bK8HBbFk6zD+d RllqxjXQHHoCvVF6lfgSJ2C/MiHDUS27Pi3P4+z4tw05fxJ1vRKvt+UsTbk8SkzqSpaa z11g== X-Gm-Message-State: APjAAAXsKNUzlbt+OZPmnRqG2T1ukPEpGjPl/M/F8WBk+qN38qnatUfi /XHEQk1QXllBa0/uxu3AeU4lUhdzgd6rlwFUu1PQww== X-Received: by 2002:a1c:23c4:: with SMTP id j187mr14196914wmj.176.1560178927858; Mon, 10 Jun 2019 08:02:07 -0700 (PDT) MIME-Version: 1.0 References: <20190517085126.GA3249@kroah.com> <20190517152200.GI8945@kernel.org> <4FE2D490-F379-4CAE-9784-9BF81B7FE258@kernel.org> <20190610074510.GA24746@kroah.com> <20190610142145.GC5937@kroah.com> <20190610144858.GA1481@kroah.com> In-Reply-To: <20190610144858.GA1481@kroah.com> From: Ignat Korchagin Date: Mon, 10 Jun 2019 16:01:56 +0100 Message-ID: Subject: Re: Linux 4.19 and GCC 9 To: Greg KH Cc: Miguel Ojeda , Ivan Babrou , Arnaldo Carvalho de Melo , Peter Zijlstra , Josh Poimboeuf , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel , Linux Kbuild mailing list , kernel-team 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 Mon, Jun 10, 2019 at 3:49 PM Greg KH wrote: > > > > > I typically compile a bare-bones GCC for those things, it is quite quick. > > Pointers to how to do that is appreciated. It's been years since I had > to build gcc "from scratch". This is how we do it, but we use it for some other projects as well, so need ligcc and c++ support. I suspect for kernel-only there may be a more lightweight approach (for example, by dropping c++): Env: Debian Stretch (we run in a simple official docker container with build-essential and make installed) - but probably should work on any distro Assuming the sources are extracted into $(BUILDDIR)/gcc-$(VERSION) cd $(BUILDDIR)/gcc-$(VERSION) ./contrib/download_prerequisites cd .. mkdir gcc-build cd gcc-build ../gcc-$(VERSION)/configure --enable-languages=c,c++ --build=x86_64-linux-gnu --disable-multilib make -j sudo make install (or install into alternative dir and point Linux build system there) Regards, Ignat