From owner-freebsd-stable@freebsd.org Tue Apr 23 18:36:17 2019 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7924B15A2426 for ; Tue, 23 Apr 2019 18:36:17 +0000 (UTC) (envelope-from bob@rancor.immure.com) Received: from rancor.immure.com (108-84-10-9.lightspeed.austtx.sbcglobal.net [108.84.10.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "darth.immure.com", Issuer "darth.immure.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5402C863FC for ; Tue, 23 Apr 2019 18:36:06 +0000 (UTC) (envelope-from bob@rancor.immure.com) Received: from rancor.immure.com (localhost [127.0.0.1]) by rancor.immure.com (8.15.2/8.15.2) with ESMTPS id x3NIa4lW037072 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 23 Apr 2019 13:36:04 -0500 (CDT) (envelope-from bob@rancor.immure.com) Received: (from bob@localhost) by rancor.immure.com (8.15.2/8.15.2/Submit) id x3NIa4PB037071 for freebsd-stable@freebsd.org; Tue, 23 Apr 2019 13:36:04 -0500 (CDT) (envelope-from bob) Date: Tue, 23 Apr 2019 13:36:04 -0500 From: Bob Willcox To: stable list Subject: Re: 12.0 installworld core dumping on me Message-ID: <20190423183604.GL6607@rancor.immure.com> Reply-To: Bob Willcox References: <20190423125133.GG3392@rancor.immure.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190423125133.GG3392@rancor.immure.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 5402C863FC X-Spamd-Bar: ++++++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [8.34 / 15.00]; HAS_REPLYTO(0.00)[bob@immure.com]; MX_INVALID(0.50)[greylisted]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; FORGED_SENDER(0.30)[bob@immure.com,bob@rancor.immure.com]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:7018, ipnet:108.64.0.0/11, country:US]; MIME_TRACE(0.00)[0:+]; FROM_NEQ_ENVFROM(0.00)[bob@immure.com,bob@rancor.immure.com]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.98)[0.976,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; DMARC_NA(0.00)[immure.com]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(1.00)[0.999,0]; IP_SCORE(0.17)[ip: (0.52), ipnet: 108.64.0.0/11(0.26), asn: 7018(0.12), country: US(-0.06)]; MX_MISSING(3.50)[requested record is not found]; NEURAL_SPAM_LONG(1.00)[1.000,0]; R_SPF_NA(0.00)[]; GREYLIST(0.00)[pass,meta] X-Spam: Yes X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Apr 2019 18:36:17 -0000 On Tue, Apr 23, 2019 at 07:51:34AM -0500, Bob Willcox wrote: > I installed the 20190418 12.0-STABLE snapshot and then checking out the latest 12.0-STABLE source code > and performing a 'make buildworld' when I attempt to do a 'make installworld' I get this: > > root@darth:3 /usr/src> make installworld > make[1]: "/usr/obj/usr/src/amd64.amd64/toolchain-metadata.mk" line 1: Using cached toolchain metadata from build at darth.immure.com on Mon Apr 22 19:54:57 CDT 2019 > Illegal instruction (core dumped) > rescue/sh check failed, installation aborted > *** Error code 1 > > Stop. > make[1]: stopped in /usr/src > *** Error code 1 > > Stop. > make: stopped in /usr/src > > This leaves me with a rescue.core file in the /usr/obj/usr/src/amd64.amd64 directory. > > The toolchain-metadata.mk file contains this: > > .info Using cached toolchain metadata from build at darth.immure.com on Mon Apr 22 19:54:57 CDT 2019 > _LOADED_TOOLCHAIN_METADATA=t > COMPILER_VERSION=80000 > X_COMPILER_VERSION=80000 > COMPILER_TYPE=clang > X_COMPILER_TYPE=clang > COMPILER_FEATURES= c++11 retpoline > X_COMPILER_FEATURES= c++11 retpoline > COMPILER_FREEBSD_VERSION=1200018 > X_COMPILER_FREEBSD_VERSION=1200018 > LINKER_VERSION=80000 > X_LINKER_VERSION=80000 > LINKER_FEATURES= build-id ifunc filter retpoline > X_LINKER_FEATURES= build-id ifunc filter retpoline > LINKER_TYPE=lld > X_LINKER_TYPE=lld > LINKER_FREEBSD_VERSION=356365-1200007 > X_LINKER_FREEBSD_VERSION=356365-1200007 > .export COMPILER_VERSION COMPILER_TYPE COMPILER_FEATURES COMPILER_FREEBSD_VERSION LINKER_VERSION LINKER_FEATURES LINKER_TYPE LINKER_FREEBSD_VERSION > .export X_COMPILER_VERSION X_COMPILER_TYPE X_COMPILER_FEATURES X_COMPILER_FREEBSD_VERSION X_LINKER_VERSION X_LINKER_FEATURES X_LINKER_TYPE X_LINKER_FREEBSD_VERSION > > > Anyone have any idea on what might be the cause or how best to proceed with debugging this? > > Thanks, > Bob Well, it turns out that the following line that I placed in the system's make.conf file was the culprit: CPUTYPE?= skx Removing it and rebuilding world allowed 'make installworld' to run. I had just tried that on a lark since the CPU is an I7-9700k which is a Coffee Lake processor and is newaer than Skylake so I thought...what the heck, give it a try. Bad idea. The compiler must be generating instructions that aren't compatible with my CPU. Removal of that line in make.conf seems to have gotten me fixed. :) Bob -- Bob Willcox | "Too often we enjoy the comfort of opinion bob@immure.com | without the discomfort of thought." Austin, TX | - John F. Kennedy