From nobody Tue Jan 30 17:14:22 2024 X-Original-To: freebsd-arm@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 4TPWxT3MjHz59CgH for ; Tue, 30 Jan 2024 17:14:37 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-24.consmr.mail.gq1.yahoo.com (sonic311-24.consmr.mail.gq1.yahoo.com [98.137.65.205]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 4TPWxT0Pplz4Hml for ; Tue, 30 Jan 2024 17:14:36 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1706634874; bh=OGVN2YahYJxc+3Ib/D+Hq8I4ixsRU+xKuF2Y1I5sHOc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=ksh5vlC70pW6Ufx07uuyGgv3GY9WHTyiL31c7aYLXHdl1bMaQjOcn2+q/Ojk1IfaA6+Pr2RLwTb/Iw8NxhkKayJFX4C3+jpp1a7hfKKYSaR/NOIalSMjF8YhM1v6v2AsDp0ryyW4hz/fMmPBubpm6c2FpP/EWFI89NZW9QhKm7F9gCpfJK99SXg342Y3ZjwaPEvqXnWvKRZJdbCRY13nTBQYWzoG4fWbJc0Q3umwkEnqAw+3IenIIIElQNi0QqTGyVv/R6E6+2V2ttLynslHWt84va/Lbru4V+xsobUrwtPhVJuspbafOln02InHMtzO5JKIxSseJPt4QnXhHkUYUA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1706634874; bh=bAo/eWYMmCtyhVx0o6l1Ov8q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I49YtYj7oATJSiBmEShf6X.qgn8mQn_TSk2KZ3tmIy80tNHmvHKaKNXeeKHtSyYBAn25Z DTD8VKvGrC.etxCHswQfcHBBDSUQLIfpuBuOFKzuerT32n34CBhVO_n65Ze0N7BtajuGLSGcscqG bkHQk93w9hGEnCXmi16w9811b4yReXdWd_utXYAs.2qp_Dl0oAHk9ssBvLAxUSCbhHk7naEQWI7M Nl2NI9H1YhMCbVFrVVUcsBB5oJ2NdTQ_HdDJbAkNjMg5NQWNqC7wyBlkw44tlQ7YCTRADR_DGHk_ 4.9MF5UV34SanoeCLWhkhbxzbMT.WInvr.nRZ5_zKYc2ZDsv3xyNguEIgThg9mZLaWPggo0bFuYb SvHC_J_7bDtMMvK_eu4XEH56xAbXYHpUaeimgp71J8ZVJ5McvORCYu0iemVwIPPu38dukRM79L7F Y1rPbqTegvi7.Az2L1Prh5AGwaYJahKdx0gKPgWFOvXZ70BHgAqkyqCiLXV2VK5JzKrZbJHrJgMG JnH2OhyG8LbUHq2Go_nVZ.8erv8PC2iCf_VhCrKB9iraMGmI9PSvCX0v8usXAZuvA0vLUHSdVGSe uYYc- X-Sonic-MF: X-Sonic-ID: 7efa0af3-7e5b-4225-8c9d-e4351edc5533 Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Tue, 30 Jan 2024 17:14:34 +0000 Received: by hermes--production-gq1-5c57879fdf-hrd4s (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 95cec3e853a0318b4ca0a7c2b4df805c; Tue, 30 Jan 2024 17:14:33 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) Subject: Re: arm64 system clang & llvm From: Mark Millard In-Reply-To: Date: Tue, 30 Jan 2024 09:14:22 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: void X-Mailer: Apple Mail (2.3774.300.61.1.2) X-Rspamd-Queue-Id: 4TPWxT0Pplz4Hml X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] On Jan 30, 2024, at 08:01, void wrote: > context is main-n267804 arm64 >=20 > I'd like to avoid building base compilers for arches I'll never use. > I want aarch64 *only* >=20 > To achieve this, there's the following in /etc/src.conf >=20 > ### > # LLVM > WITHOUT_LLVM_TARGET_ALL=3D > WITH_LLVM_TARGET_AARCH64=3D > WITHOUT_LLVM_TARGET_ARM=3D > WITHOUT_LLVM_ASSERTIONS=3D >=20 > But looking at buildworld output, I see what *looks* like building for = other arches happening. Is this the case, or am I reading it wrong, or > is the src.conf wrong? FYI: On aarch64, for non-debug builds I use: #Disables avoiding bootstrap: WITHOUT_LLVM_TARGET_ALL=3D WITH_LLVM_TARGET_AARCH64=3D WITH_LLVM_TARGET_ARM=3D WITHOUT_LLVM_TARGET_MIPS=3D WITHOUT_LLVM_TARGET_POWERPC=3D WITHOUT_LLVM_TARGET_RISCV=3D WITHOUT_LLVM_TARGET_X86=3D MALLOC_PRODUCTION=3D WITH_MALLOC_PRODUCTION=3D WITHOUT_ASSERT_DEBUG=3D WITHOUT_LLVM_ASSERTIONS=3D (I've not validated the comment in a very long time. There used to be the odd side effect on when bootstrap builds happened.) As FreeBSD main [so: 15] has lib32 support by default these days, does your aarch64 hardware support AArch32/armv7 code, at least for EL0? Most of the hardware around probabaly does. Having WITH_LLVM_TARGET_AARCH64=3D may override any attempt to disable code generation for the likely hardware-supported type of code. But, if it is possible to have aarch64 disable armv7 code generation, you would also need: WITHOUT_LIB32=3D Otherwise, you would be asking for armv7 code generation to be done in order to build lib32. (Since AARch32/armv7 also supports armv6, that is likely also involved. But I keep the wording generally simpler.) =3D=3D=3D Mark Millard marklmi at yahoo.com