From nobody Thu Jun 11 03:39:09 2026 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gbT0V6rKbz6hQZm for ; Thu, 11 Jun 2026 03:39:22 +0000 (UTC) (envelope-from freebsd@shaneware.biz) Received: from mail-smtp2.dca2.superb.net (mail-smtp2.dca2.superb.net [66.148.95.12]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4gbT0V0bqxz4C98 for ; Thu, 11 Jun 2026 03:39:21 +0000 (UTC) (envelope-from freebsd@shaneware.biz) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=superb.net header.s=mailrelay header.b=WgDh7OLd; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=shaneware.biz (policy=quarantine); spf=softfail (mx1.freebsd.org: 66.148.95.12 is neither permitted nor denied by domain of freebsd@shaneware.biz) smtp.mailfrom=freebsd@shaneware.biz DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=superb.net; s=mailrelay; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=mtd7QcEAA9+5PAcNaI7glE3jMbstzd1KZGGB7dItk/o=; b=WgDh7OLdsgICbDHMVQ5Xj/fFv7 agZrRqNrLi2HgHQ5Hzrv35hco/1oqA7t9nQxkvOdP2AVufHSBXVGpaSWyLvf8kQMqxK4opnUE8yex dnLTyr6BnNfxpLlfXstJJeao4pKdkaxY1wPAmglEo/IAxKre94Y6gwiAPUQe+OLJMgnXrdlrbiRiT EPbUNOzsaaviDK34HuqZRSOZiiA7hnTGqACbqJuFHvPBzeo9hK1c5PMFHWrTGgL5lZSyO0basPVbj wpnvGxr/z/ExKOEGOkzGs4AB7K0mK2w4/mwJyal90pTnoH1gPujbSa3Xmm+YwihWI5hAvQyTxlyTy JNjuV2aQ==; Received: from [159.196.56.216] (helo=[192.168.9.155]) by mail-smtp2.dca2.superb.net with esmtpsa (TLS1.3:TLS_AES_128_GCM_SHA256:128) (envelope-from ) id 1wXWG9-0000000FxS0-2W8V; Wed, 10 Jun 2026 23:39:14 -0400 Message-ID: <5d9f80d8-b003-46d5-bc92-3bca45251701@ShaneWare.Biz> Date: Thu, 11 Jun 2026 13:09:09 +0930 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: cpu vs CPUTYPE To: Jan Stary , freebsd-questions@freebsd.org References: Content-Language: en-AU From: Shane Ambler In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Score: -1.0 X-Spamd-Result: default: False [-1.89 / 15.00]; DMARC_POLICY_QUARANTINE(1.50)[shaneware.biz : No valid SPF, DKIM not aligned (relaxed),quarantine]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.990]; R_DKIM_ALLOW(-0.20)[superb.net:s=mailrelay]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[66.148.95.12:from]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[superb.net:dkim]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:14361, ipnet:66.148.95.0/24, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[superb.net:+] X-Spamd-Bar: - X-Rspamd-Queue-Id: 4gbT0V0bqxz4C98 On 9/6/26 19:48, Jan Stary wrote: > On Jun 07 22:15:41, jguojun@gmail.com wrote: >> The Intel Core i7-4600U (4th Gen) official architectural code name is >> Haswell, which should be the CPUTYPE. > > Thanks. Reading at the lists of Intel code names > sorted out CPUTYPE for me on a few amd64 machines. I think the important point is that CPUTYPE is sent to the compiler, so it has to be a value accepted by the compiler and be same as or earlier than the host cpu. Use `clang --print-supported-cpus` to get a list of supported values, then the trick is linking that list to user visible model numbers. You can use llc to get the cpu type of the host machine % llc --version ... Host CPU: sandybridge ... You need to buildworld with WITH_CLANG_EXTRAS=yes to get llc in base, so install the llvm pkg and add the version - eg. llc21 -- FreeBSD - the place to B...Software Developing Shane Ambler