From nobody Sun Aug 13 21:37:56 2023 X-Original-To: freebsd-current@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 4RP9r64v4nz4qFLX; Sun, 13 Aug 2023 21:38:14 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RP9r64McFz4Nrc; Sun, 13 Aug 2023 21:38:14 +0000 (UTC) (envelope-from otis@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691962694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ui9DoWSYCUTsCrgR6iFfN4nqkzXPv7wy7sC69x/2nPE=; b=SjHrpcobC9P6mALGfpHXXnUTkAgzIzB6jRwgS1jTPh5SNRdIPP0OjkE9z18CWC32U5H0+E XA5ZW45fBzY+11Lw5vbIYUEwUA5zAyd+v7YxPuYYHO4k6RQIm9Wg9gJxLa+R41+jjTNXQQ S8AkCTw+8zAoP/fBEQDgVcJ/8E+m5S7LIH2JxQcON8k1qKjlvEFhZzhi8OirEk+ZWRiplp He5hU+hbsuKqVXEJRGfMc2QDac6n5UcxYxgvt+WKGU2vbHTlHGCn6OeoBWbhkVW2q3UtFK rwzObnAqbSsyF4vM/CSUZDKJgslbqHLlhQLzYDDfU2WF2swrCHX5p5OtMZL6sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691962694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ui9DoWSYCUTsCrgR6iFfN4nqkzXPv7wy7sC69x/2nPE=; b=PYBDUsLFjGQIZSp2r+Kh3qXfHm96USSynUPTnXSwBQQhyOnKxDvTnXvfnv5VLBtV/CgBzQ Cum8flw1fH9C5QpyvRdkVtfYL0DkJyls1lCBdiYKfKMJ6Aa/W23OSmx9Ej7pneBylGidXr MQoiJ/z/nKl58I51WGy89qP+INE9LEhldC1MgfyGXcfVD1NHiRY3JlNKgDeKfXZKwUGNyy p4XYjj4PijtyHmFN8+4nPQ6f7kFYkBFjEIvGkUvoSeA1IKlv7BSwXXlAH6XfXcwQ34vaOu Xa+nW6+ri8Pg76FQ4cICG1ASeQT44jkHmFgvHAnPzbwGfd4V1TQnVfkjVSnFlQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691962694; a=rsa-sha256; cv=none; b=qi2G6VpwJloEoJJEGFAWIS9B7vx2ryRPQHx8Q4aFpP7Dc9WFH5YF6YJtQZO95HSAgdtkMI 4TiOjrUIfTaEl7M8A+G34GtZ1JW5BbvmYinaFp53697rj7iqQ2QPzt/CYRfi6sRK+sDqqP ax98h3xfD9/d1vzNnHubV3ulaARViNdiHuDh4FMb0AT8YeZs4OMQGb3YGn0L+JvN06nCdY ZqhQhoyn7zF3Dfhr+jU3HWYhy8BwgJzs7Baq9wh5qXMwYTWK770T6i5uNTox325K0DooK7 sxDHS5uCeCi6Ad4LgHsvNrrbA5lrZMHXj+WeYV7z0p5WzWQXNdPjnArlcPKmqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from ns2.wilbury.net (ns2.wilbury.net [IPv6:2a01:b200:0:1:f816:3eff:fecd:13e6]) (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-signature ECDSA (P-256) client-digest SHA256) (Client CN "svc.wilbury.net", Issuer "R3" (verified OK)) (Authenticated sender: otis) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RP9r62dHHz150H; Sun, 13 Aug 2023 21:38:14 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtpclient.apple (gw-upc.owhome.net [188.167.168.254]) (Authenticated sender: juraj@lutter.sk) by svc.wilbury.net (Postfix) with ESMTPSA id 5A6AB61F91; Sun, 13 Aug 2023 23:38:07 +0200 (CEST) Content-Type: text/plain; charset=utf-8 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64 From: Juraj Lutter In-Reply-To: <3C630E2F-959E-46BC-8DAE-DA19C3A6912E@yahoo.com> Date: Sun, 13 Aug 2023 23:37:56 +0200 Cc: Mike Karels , FreeBSD Toolchain , Current FreeBSD Content-Transfer-Encoding: quoted-printable Message-Id: References: <3B0BBEB1-D16C-405A-B2FA-F53022CFC925.ref@yahoo.com> <3B0BBEB1-D16C-405A-B2FA-F53022CFC925@yahoo.com> <3AE647E3-B988-4387-BF56-A2DB6533B5FD@FreeBSD.org> <3C630E2F-959E-46BC-8DAE-DA19C3A6912E@yahoo.com> To: Mark Millard X-Mailer: Apple Mail (2.3731.700.6) > On 13 Aug 2023, at 23:13, Mark Millard wrote: >=20 > On Aug 13, 2023, at 14:01, Mark Millard wrote: >=20 >> On Aug 13, 2023, at 13:19, Juraj Lutter wrote: >>=20 >>>> On 13 Aug 2023, at 21:13, Mark Millard wrote: >>>>=20 >>>> But the offical CI builds on amd64 do not have the problem. >>>>=20 >>>> We still have not found what is different about your context from = the >>>> standard context used for CI builds and snapshot builds, all of = which >>>> have worked find building on amd64 to target aarch64 with armv7 = support. >>>=20 >>> My src.conf: >>>=20 >>> WITHOUT_PROFILE=3Dyes >>> WITHOUT_TESTS=3Dyes >>> WITHOUT_STATIC=3Dyes >>>=20 >>> WITHOUT_LLVM_TARGET_ALL=3Dyes >>=20 >> Starting below this is wrong presuming all >> builds are actually done on amd64: >>=20 >>> .if "${TARGET}" =3D=3D "arm64" && "${TARGET_ARCH}" =3D=3D "aarch64" >>> KERNCONF?=3DGENERIC-MMCCAM >>> REPODIR?=3D/data/poudriere/packages/pkgbase >>> MODULES_EXTRA=3D"rpi_ft5406" >>> WITH_LLVM_TARGET_AARCH64=3Dyes >>> WITH_LLVM_TARGET_ARM=3Dyes >>> .else >>> KERNCONF?=3DGENERIC-NODEBUG >>> REPODIR?=3D/data/poudriere/packages/pkgbase >>> WITH_LLVM_TARGET_AARCH64=3Dyes >>> WITH_LLVM_TARGET_X86=3Dyes >>> .endif >>=20 >> Ending here. >>=20 >> This is written as if there were separate toolchains for >> each target. That is not how llvm/clang/lld works, >> unlike gcc. One toolchain covers all the targets. That >> is what the FreBSD llvm support is structured for. >>=20 >> You want the one llvm/clang/lld toolchain that includes >> everything required to build any/all of: >>=20 >> A) amd64 >> B) i386 for amd64's lib32 >> C) aarch64 >> D) armv7 for aarch64's lib32 >>=20 >> So the *_LLVM_TARGET_* parts would be more like: >>=20 >> WITHOUT_PROFILE=3Dyes >> WITHOUT_TESTS=3Dyes >> WITHOUT_STATIC=3Dyes >>=20 >> WITHOUT_LLVM_TARGET_ALL=3Dyes >> WITH_LLVM_TARGET_AARCH64=3Dyes >> WITH_LLVM_TARGET_X86=3Dyes >> WITH_LLVM_TARGET_AARCH64=3Dyes >> WITH_LLVM_TARGET_ARM=3Dyes >=20 If you look closer, you will see that: WITH_LLVM_TARGET_AARCH64=3Dyes WITH_LLVM_TARGET_X86=3Dyes is in effect when I do =E2=80=9Cmake buildworld=E2=80=9D without any = TARGET and TARGET_ARCH, i.e. when I build the OS for the host (that is, = 14.0/amd64). But once I specify make TARGET=3Darm64 TARGET_ARCH=3Daarch64, only the = lines: WITH_LLVM_TARGET_AARCH64=3Dyes WITH_LLVM_TARGET_ARM=3Dyes are in effect. The line =E2=80=9CWITH_LLVM_TARGET_ARM=3Dyes=E2=80=9D has = only been added today for a test, but it did not make any difference. =E2=80=94 Juraj Lutter otis@FreeBSD.org