From nobody Thu Apr 25 01:14:48 2024 X-Original-To: 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 4VPyZY4cPmz5JWcq for ; Thu, 25 Apr 2024 01:15:01 +0000 (UTC) (envelope-from lexi@le-fay.org) Received: from fuchsia.eden.le-Fay.ORG (fuchsia.eden.le-fay.org [IPv6:2001:8b0:aab5:107::11]) by mx1.freebsd.org (Postfix) with ESMTP id 4VPyZX4bF0z43HR for ; Thu, 25 Apr 2024 01:15:00 +0000 (UTC) (envelope-from lexi@le-fay.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=le-fay.org header.s=fuchsia header.b=UYJOd3U3; dmarc=none; spf=pass (mx1.freebsd.org: domain of lexi@le-fay.org designates 2001:8b0:aab5:107::11 as permitted sender) smtp.mailfrom=lexi@le-fay.org Received: from iris.eden.le-Fay.ORG (iris.eden.le-fay.org [IPv6:2001:8b0:aab5:106:3::6]) by fuchsia.eden.le-Fay.ORG (Postfix) with ESMTP id 5C476985D for ; Thu, 25 Apr 2024 01:14:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=le-fay.org; s=fuchsia; t=1714007697; bh=oRcwsh0HElS3pdgPZDbu+pSlmBs7vhnpVyOlANOVx4Q=; h=Date:From:To:Subject; b=UYJOd3U3iwgDJkmUKUkZCF5MPXOMgj4OKtH3XTjaN6A/UxvY0dUitZQxUPOvatoij zE2hJXNcynh6qMJQNClWPFAWl/vIlRdu73VjzGl7hGoo30cqUYAz/5JwYJSkhqmssJ ZHgofeRphOXsyNYVGZlv0f7VCaMsDmpbNQa+gbM8= Received: from ilythia.eden.le-fay.org (ilythia.eden.le-fay.org [IPv6:2001:8b0:aab5:106:3::10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by iris.eden.le-Fay.ORG (Postfix) with ESMTPSA id 43ADF2C0421 for ; Thu, 25 Apr 2024 02:14:57 +0100 (BST) Date: Thu, 25 Apr 2024 02:14:48 +0100 From: Lexi Winter To: arm@freebsd.org Subject: arm64 buildkernel broken Message-ID: 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 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="teDZRvEpYxyiEguH" Content-Disposition: inline X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.50 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; R_DKIM_ALLOW(-0.20)[le-fay.org:s=fuchsia]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_SPF_ALLOW(-0.20)[+ip6:2001:8b0:aab5:107::11]; RCVD_NO_TLS_LAST(0.10)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:20712, ipnet:2001:8b0::/32, country:GB]; MISSING_XM_UA(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[le-fay.org:dkim]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[le-fay.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[arm@freebsd.org]; MLMMJ_DEST(0.00)[arm@freebsd.org]; DKIM_TRACE(0.00)[le-fay.org:+] X-Rspamd-Queue-Id: 4VPyZX4bF0z43HR --teDZRvEpYxyiEguH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable hello, using this kernel config: https://github.com/llfw/freebsd-src/blob/lf/main/sys/arm64/conf/LF i can't buildkernel on main 71b2ba9099115db3c63f15e5085c0a677511f8b8: Building /src/obj/src/freebsd/src/main/arm64.aarch64/sys/LF/kernel.full --- kernel.full --- linking kernel.full ld: error: undefined symbol: virtio_scmi_transport_get >>> referenced by scmi_virtio.c:271 (/src/freebsd/src/main/sys/dev/firmware= /arm/scmi_virtio.c:271) >>> scmi_virtio.o:(scmi_virtio_attach) ld: error: undefined symbol: virtio_scmi_channel_size_get >>> referenced by scmi_virtio.c:125 (/src/freebsd/src/main/sys/dev/firmware= /arm/scmi_virtio.c:125) >>> scmi_virtio.o:(scmi_virtio_transport_init) >>> referenced by scmi_virtio.c:127 (/src/freebsd/src/main/sys/dev/firmware= /arm/scmi_virtio.c:127) >>> scmi_virtio.o:(scmi_virtio_transport_init) ld: error: undefined symbol: virtio_scmi_message_enqueue >>> referenced by scmi_virtio.c:97 (/src/freebsd/src/main/sys/dev/firmware/= arm/scmi_virtio.c:97) >>> scmi_virtio.o:(scmi_virtio_transport_init) >>> referenced by scmi_virtio.c:201 (/src/freebsd/src/main/sys/dev/firmware= /arm/scmi_virtio.c:201) >>> scmi_virtio.o:(scmi_virtio_xfer_msg) >>> referenced by scmi_virtio.c:113 (/src/freebsd/src/main/sys/dev/firmware= /arm/scmi_virtio.c:113) >>> scmi_virtio.o:(scmi_virtio_clear_channel) ld: error: undefined symbol: virtio_scmi_channel_callback_set >>> referenced by scmi_virtio.c:147 (/src/freebsd/src/main/sys/dev/firmware= /arm/scmi_virtio.c:147) >>> scmi_virtio.o:(scmi_virtio_transport_init) >>> referenced by scmi_virtio.c:159 (/src/freebsd/src/main/sys/dev/firmware= /arm/scmi_virtio.c:159) >>> scmi_virtio.o:(scmi_virtio_transport_init) >>> referenced by scmi_virtio.c:185 (/src/freebsd/src/main/sys/dev/firmware= /arm/scmi_virtio.c:185) >>> scmi_virtio.o:(scmi_virtio_transport_cleanup) >>> referenced 1 more times ld: error: undefined symbol: virtio_scmi_message_poll >>> referenced by scmi_virtio.c:221 (/src/freebsd/src/main/sys/dev/firmware= /arm/scmi_virtio.c:221) >>> scmi_virtio.o:(scmi_virtio_poll_msg) *** [kernel.full] Error code 1 make[2]: stopped in /src/obj/src/freebsd/src/main/arm64.aarch64/sys/LF this patch appears to fix the problem: =46rom 295c20c1fa56bf995bf085a6aa68067132fd9ca0 Mon Sep 17 00:00:00 2001 =46rom: Lexi Winter Date: Thu, 25 Apr 2024 01:57:34 +0100 Subject: [PATCH] scmi: only build virtio_scmi.c if virtio_scmi is defined --- sys/conf/files.arm64 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/conf/files.arm64 b/sys/conf/files.arm64 index c7468b577dd8..c001b88dacde 100644 --- a/sys/conf/files.arm64 +++ b/sys/conf/files.arm64 @@ -275,7 +275,7 @@ dev/firmware/arm/scmi_clk.c optional fdt scmi dev/firmware/arm/scmi_if.m optional fdt scmi dev/firmware/arm/scmi_mailbox.c optional fdt scmi dev/firmware/arm/scmi_smc.c optional fdt scmi -dev/firmware/arm/scmi_virtio.c optional fdt scmi +dev/firmware/arm/scmi_virtio.c optional fdt scmi virtio_scmi dev/firmware/arm/scmi_shmem.c optional fdt scmi dev/gpio/pl061.c optional pl061 gpio -- 2.44.0 however, i'm not sure if this is the correct fix. --teDZRvEpYxyiEguH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEuwt6MaPcv/+Mo+ftDHqbqZ41x5kFAmYproUACgkQDHqbqZ41 x5kWYwv9G3azfXZnr/YulFQV6Vtva0Rw5JEbNSj1RevjFvXhk7PuNpyMaORePZHS rX0CRBvLZZI0DXjKbmvh1YQPFKHiYS5GBVb+/6RtArx0A9lHeC/RXue9Kvdyzao8 zaNRendurumJ+Efxo7OrX1B3YXYjun52GdJOjXbZN9C6eb2dZwNaqv+jgRVZtem2 ztsV16/UTv0+N7Z6NUcY04mpLKfYzWDX5jwXgx5h9ADRfeEoEPkxz020I9OaXjYB OPITNXplb/MgMnJgdMYT83ODDu2XHS9HrLuZXq6TIGkXIY5DUSgrEYt5IzkIWBmy 2U97fpKAiLQvF9MCj6tKy60HvpuEMhHDwTfzzd7+axsdccD9T5wSr2TUejTuabGw V/98kl0xL4f18GYXSJrMsDRfDzOGjp0aAXYXQZlaIzV9MQ3waU0BlIIcS0AAK+ir RE/akJHwWxsRQ3+L0gGWiwxS5/vFYl+jsC9jzKKgIgvSPQZyk1dZHMkfQtztJHaE aDWe9TRD =gP6s -----END PGP SIGNATURE----- --teDZRvEpYxyiEguH--