From owner-freebsd-hackers@freebsd.org Tue Jun 5 00:13:09 2018 Return-Path: Delivered-To: freebsd-hackers@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 B0B0BFEB038 for ; Tue, 5 Jun 2018 00:13:09 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from mx2.catspoiler.org (mx2.catspoiler.org [IPv6:2607:f740:16::d18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "amnesiac", Issuer "amnesiac" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5057E6FBA3 for ; Tue, 5 Jun 2018 00:13:09 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org ([76.212.85.177]) by mx2.catspoiler.org (8.15.2/8.15.2) with ESMTPS id w550EhV4005704 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 5 Jun 2018 00:14:44 GMT (envelope-from truckman@FreeBSD.org) Received: from mousie.catspoiler.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.15.2/8.15.2) with ESMTPS id w550Cm8l098794 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 4 Jun 2018 17:12:49 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Date: Mon, 4 Jun 2018 17:12:43 -0700 (PDT) From: Don Lewis Subject: Re: defining CPUTYPE when building a custom release To: bsd-lists@BSDforge.com cc: freebsd-hackers@FreeBSD.org In-Reply-To: <8c9b9690f1080c72ac644bbfbb6c61de@udns.ultimatedns.net> Message-ID: References: <8c9b9690f1080c72ac644bbfbb6c61de@udns.ultimatedns.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=us-ascii Content-Disposition: INLINE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2018 00:13:09 -0000 On 4 Jun, Chris H wrote: > On Mon, 4 Jun 2018 15:36:02 -0700 (PDT) "Don Lewis" said > >> I'm trying to build a custom 11-STABLE release for a machine that is too >> wimpy to self-host using the /usr/src/release/release.sh script. The >> build host is an amd64 machine and the target machine is is in the i386 >> family. I've set: >> TARGET=i386 >> TARGET_ARCH=i386 >> in the release.conf file. >> >> If I don't try to specify a CPUTYPE, I have no problems. But if I add >> CPUTYPE?=pentium3 >> to the make.conf file, the release build fails like this: >> >> -------------------------------------------------------------- >> >>> stage 4.2: building libraries >> -------------------------------------------------------------- >> ===> gnu/lib/libssp/libssp_nonshared (obj,all,install) >> ===> lib/libcompiler_rt (obj,all,install) >> ===> gnu/lib/libgcc (obj,all,install) >> error: unknown target CPU 'pentium3' >> --- ssp-local.o --- >> *** [ssp-local.o] Error code 1 > Apologies in advance for even *suggesting*; But the KERNCONF > you're working with, originates from, and is within i386/ , > not amd64/ . Right? Yes. If I don't specify CPUTYPE, I can build a release that installs and runs on the target host.