From owner-freebsd-current@freebsd.org Fri Dec 20 17:31:47 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 1BDC51DF504; Fri, 20 Dec 2019 17:31:47 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47fbQV68mGz4Cw2; Fri, 20 Dec 2019 17:31:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id xBKHVVFl034029 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 20 Dec 2019 19:31:35 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua xBKHVVFl034029 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id xBKHVVft034028; Fri, 20 Dec 2019 19:31:31 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 20 Dec 2019 19:31:31 +0200 From: Konstantin Belousov To: John Baldwin Cc: Ryan Libby , "freebsd-toolchain@FreeBSD.org" , "freebsd-current@freebsd.org" Subject: Re: New external GCC toolchain ports/packages Message-ID: <20191220173131.GM32279@kib.kiev.ua> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.3 X-Spam-Checker-Version: SpamAssassin 3.4.3 (2019-12-06) on tom.home X-Rspamd-Queue-Id: 47fbQV68mGz4Cw2 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0] 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: Fri, 20 Dec 2019 17:31:47 -0000 On Fri, Dec 20, 2019 at 09:24:00AM -0800, John Baldwin wrote: > On 12/19/19 12:06 PM, Ryan Libby wrote: > > 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. > > I have been able to get it building as well, mostly by muting a few > warnings, adding libcompiler_rt to rtld's link for i386, disabling I am curious about the rtld issue. Can you show me the pristine error with gcc, please ? > googletest (needs an upstream patch to stop using signed wchar_t), > and a hack to jemalloc. I was able to build riscv as well with those > same changes and am working through builds of other platforms. > > I'm happy to compare notes. The jemalloc one is a bit weird. > > -- > John Baldwin > _______________________________________________ > freebsd-toolchain@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain > To unsubscribe, send any mail to "freebsd-toolchain-unsubscribe@freebsd.org"