From owner-freebsd-current@freebsd.org Thu Dec 19 20:06:23 2019 Return-Path: Delivered-To: freebsd-current@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 905EF1E9F16; Thu, 19 Dec 2019 20:06:23 +0000 (UTC) (envelope-from rlibby@gmail.com) Received: from mail-qv1-f47.google.com (mail-qv1-f47.google.com [209.85.219.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47f2vM3HHJz44jY; Thu, 19 Dec 2019 20:06:23 +0000 (UTC) (envelope-from rlibby@gmail.com) Received: by mail-qv1-f47.google.com with SMTP id o18so2743927qvf.1; Thu, 19 Dec 2019 12:06:23 -0800 (PST) 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=QI6cwzpbRYd596q7wpAvLXaNg+TbwgQHmQNZzhNWREI=; b=TYNTywX66BDbBWUj7nsXq2jj05abZtuM8GEDAPFOvUferjCix099Yi186wacHJJ9hb rURcq0RZOTaaQ3w/rnrMiyYfZSAS+jvj7ZgVPlY7OesspOwRrbI9NDxqIbXQ7P+tatF0 3tT1tlxMYJLGtA1rG1JA3lPIZYyS+tco3ZRk//d0oMPV2Ye46T51+6Eg0Po547FJJt2/ 2h5b+73+AGUbNCH0oci9mL9ILGcu6PLChsFeMgKnVX3OsctYq1MiInBJBVciBC3xLW5l ZS5wDQc6H2agmLfu5xa1czOyudY6yPTElT/FgaOYODK5X4Z9OoEc9V/MJ7/gZjkHmIqM B9ag== X-Gm-Message-State: APjAAAXlVc3OcvUw8/VJoLPEcO0EsqM0wdIfrMKNBzCkc8amMdq4OyoK 78pWAm+5WFfDKwTB+oBq5rITqVni X-Google-Smtp-Source: APXvYqxVl5n5VtBvzKtCcKL5+sm3CD6zWcpzfb5VIj+O9aKC2ko7J2QseDh9UVCeNm+szjSkr1wdVQ== X-Received: by 2002:ad4:53a5:: with SMTP id j5mr6622822qvv.239.1576785981142; Thu, 19 Dec 2019 12:06:21 -0800 (PST) Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com. [209.85.222.173]) by smtp.gmail.com with ESMTPSA id k4sm2025799qki.35.2019.12.19.12.06.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Dec 2019 12:06:20 -0800 (PST) Received: by mail-qk1-f173.google.com with SMTP id c17so5689197qkg.7; Thu, 19 Dec 2019 12:06:20 -0800 (PST) X-Received: by 2002:a37:27cc:: with SMTP id n195mr9112229qkn.428.1576785980330; Thu, 19 Dec 2019 12:06:20 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ryan Libby Date: Thu, 19 Dec 2019 12:06:09 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: New external GCC toolchain ports/packages To: John Baldwin Cc: "freebsd-toolchain@FreeBSD.org" , "freebsd-current@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47f2vM3HHJz44jY X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Dec 2019 20:06:23 -0000 On Wed, Dec 18, 2019 at 1:49 PM John Baldwin wrote: > > In the interest of supporting newer versions of GCC for a base system > toolchain, I've renamed the external GCC packages from -gcc > to -gcc6. These are built as flavors of a new devel/freebsd-gcc6 > port. The xtoolchain package is not used for these new packages, instead > one does 'pkg install mips-gcc6' to get the GCC 6.x MIPS compiler and > uses 'CROSS_TOOLCHAIN=mips-gcc6'. I've also gone ahead and updated this > compiler to 6.5.0. > > I will leave the old ports/packages around for now to permit an easy > transition, but going forward, the -gcc6 packages should be preferred > to -xtoolchain-gcc for all but riscv (riscv64-gcc and riscv64-xtoolchain-gcc > are separate from the powerpc64-gcc set of packages). > > In addition, I've also just added a devel/freebsd-gcc9 package which > builds -gcc9 packages. It adds powerpc and riscv flavors relative > to freebsd-gcc6 and uses GCC 9.2.0. To date in my testing I've yet to > be able to finish a buildworld on any of the platforms I've tried > (amd64, mips, sparc64), but the packages should permit other developers > to get the tree building with GCC 9. To use these packages one would do > something like: > > # pkg install amd64-gcc9 > # make buildworld CROSS_TOOLCHAIN=amd64-gcc9 > > You can install both the gcc6 and gcc9 versions of a package at the same > time, e.g. amd64-gcc6 and amd64-gcc9. Having different packages for major > versions is similar to llvm and will also let us keep a known-good > toolchain package for older releases while using newer major versions on > newer FreeBSD releases (e.g gcc9 for 13.0 and gcc6 for 12.x). > > I do plan to switch the default toolchains for make universe/tinderbox > for targets using -xtoolchain-gcc based on GCC 6 over to the > freebsd-gcc6 variants in the next week or so. > > -- > John Baldwin Awesome, thanks! I was able to get amd64 buildworld and buildkernel to succeed with just a few changes, and none to the port. I'll work on getting the changes in.