From owner-svn-src-head@freebsd.org Fri Oct 16 15:41:46 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B853A4397B6; Fri, 16 Oct 2020 15:41:46 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CCVkf4Tvjz3cC6; Fri, 16 Oct 2020 15:41:46 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com [209.85.219.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 78A4318229; Fri, 16 Oct 2020 15:41:46 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qv1-f48.google.com with SMTP id cv1so1276189qvb.2; Fri, 16 Oct 2020 08:41:46 -0700 (PDT) X-Gm-Message-State: AOAM532F32z9cUGNjOLZRuwCUDGhhjG3iviSllWJZjdXwROZtaF33Ct4 45VTShGgdK1G+Id4mGwC/7z8lRFiH0GAdDCfbk8= X-Google-Smtp-Source: ABdhPJx2bp3b37QN72+sxm12HwYScxejaGlBBxk/hbMhWYRRhjvGM8RhOO5rbcZzZsysa5/Sm8xRIY2sj90rt91tMXI= X-Received: by 2002:a0c:c709:: with SMTP id w9mr4591216qvi.26.1602862906024; Fri, 16 Oct 2020 08:41:46 -0700 (PDT) MIME-Version: 1.0 References: <202010161516.09GFGNUI015980@repo.freebsd.org> In-Reply-To: From: Kyle Evans Date: Fri, 16 Oct 2020 10:41:34 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r366766 - head To: Jessica Clarke Cc: src-committers , svn-src-all , svn-src-head Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Oct 2020 15:41:46 -0000 On Fri, Oct 16, 2020 at 10:36 AM Jessica Clarke wrote: > > On 16 Oct 2020, at 16:16, Kyle Evans wrote: > > > > Author: kevans > > Date: Fri Oct 16 15:16:23 2020 > > New Revision: 366766 > > URL: https://svnweb.freebsd.org/changeset/base/366766 > > > > Log: > > Makefile: add a small blurb about building with gcc xtoolchain > > > > The key details are to install the appropriate flavor of devel/freebsd-gcc9 > > and pass CROSS_TOOLCHAIN while building. > > > > Suggested by: kib > > > > Modified: > > head/Makefile > > > > Modified: head/Makefile > > ============================================================================== > > --- head/Makefile Fri Oct 16 14:28:13 2020 (r366765) > > +++ head/Makefile Fri Oct 16 15:16:23 2020 (r366766) > > @@ -89,6 +89,15 @@ > > # 10. `reboot' > > # 11. `make delete-old-libs' (in case no 3rd party program uses them anymore) > > # > > +# For individuals wanting to build from source with GCC from ports, first build > > +# or install an appropriate flavor of devel/freebsd-gcc9. The packages produced > > +# by this port are named "${TARGET_ARCH}-gcc9" -- note that not all > > +# architectures supported by FreeBSD have an external gcc toolchain available. > > +# > > +# Once the appropriate freebsd-gcc package is installed, simply pass > > +# CROSS_TOOLCHAIN=${TARGET_ARCH}-gcc9 while building with the above steps, > > +# e.g., `make buildworld CROSS_TOOLCHAIN=amd64-gcc9`. > > Given GCC 10 is the latest GCC release so this is already a bit > outdated (though perhaps GCC 9 is still the recommended version for > FreeBSD now?), should this not avoid hard-coding a specific version and > thus s/9/N/ (or X)? > Probably so, yes -- freebsd-gcc9 is still the latest and greatest as far as cross-toolchain gcc goes, though. We still have freebsd-gcc6, too, so at the very least once we drop freebsd-gcc6 and create freebsd-gcc10 I'll revisit this and find some way to make it more generic while still easy to find the port/pkg you need.