From nobody Mon Mar 21 20:20:34 2022 X-Original-To: toolchain@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 549A41A06D77 for ; Mon, 21 Mar 2022 20:20:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KMmFs6xZbz4gYJ for ; Mon, 21 Mar 2022 20:20:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CBD1921A69 for ; Mon, 21 Mar 2022 20:20:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22LKKX0V033121 for ; Mon, 21 Mar 2022 20:20:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22LKKXuR033120 for toolchain@FreeBSD.org; Mon, 21 Mar 2022 20:20:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 262706] Build on arm64 fails to find libclang_rt.asan-aarch64.a Date: Mon, 21 Mar 2022 20:20:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647894034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HovjgexGUmMOiuTCLzDwpOSPq20SIrVpFxDoZBmtamw=; b=H8NeVWzefNMlJfwV9x5bHs8nW1UkvLmCwR/59c+3a6d0F2uj0liHdGxRurmNNNHk6qyw2q P+i8q6mkmlHKl3DXZHhmVkPWdMkpnfmi3fChUXzyj89QVk83MW5BEE+TqOKKOd/E1oRQDj a+fhaVF16sR6e1w7kMn/V32Dkndaph8mGTVX7bTmJNuDFDnVSod4X7ytU0mU6WLVwM7O0o zRGGuM4Gh4yZaAtrHFNABm11tXhSzFHh82gSn4qDgGIl7JsMyL8FuU1KSt+48KdCxVEVfi cmMQ4+fROTxvGXuo+1iv1wDsLAB81bM2E2cD6oXoCGG4Z7UyLgtuYTCQzHJWVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647894034; a=rsa-sha256; cv=none; b=IfuBrRwlnxZIFS5ctFrgAd43eyoXw9CT+Kaq0wkywi3WHdoeevBHYQ+mBJFidenKRiraSW qmsfZOafqbNzhabdKKhR1SlfPCG9SZo1327UREZ+7XZdFBktE4MSOUAOAm4OKU52E5ji35 +VGLmTvZEKZr5+u7PUgVSGt+2ZA0Yjg5eYTD+ULJJ6+/006gTwYUHLA1vioXJ/EqE0WS7a X8WwvDyOtZ9pNvhSh/A9BIJVuR+xxftjtb/kyJSR1kqPvGeYNLAt8ky3m9jrEB6SJgARBz joDECYj8wk0l/vrXQr4RGjpraS0zOLNaZP+6VBikfJzDZTfhbx3cC+JMkG7kjQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262706 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #2 from Dimitry Andric --- Yep, upstream doesn't yet support aarch64 for the sanitizers. If I attempt = to build it on an aarch64 machine, I see: /home/dim/src/main/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sa= nitizer_linux.cpp:1811:23: error: field has incomplete type 'struct _aarch64_ctx' struct _aarch64_ctx head; ^ /home/dim/src/main/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sa= nitizer_linux.cpp:1811:10: note: forward declaration of '__sanitizer::_aarch64_ctx' struct _aarch64_ctx head; ^ /home/dim/src/main/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sa= nitizer_linux.cpp:1817:35: error: no member named '__reserved' in '__mcontext' u8 *aux =3D ucontext->uc_mcontext.__reserved; ~~~~~~~~~~~~~~~~~~~~~ ^ /home/dim/src/main/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sa= nitizer_linux.cpp:1820:12: error: member access into incomplete type '__sanitizer::_aarch64_ctx' if (ctx->size =3D=3D 0) break; ^ /home/dim/src/main/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sa= nitizer_linux.cpp:1811:10: note: forward declaration of '__sanitizer::_aarch64_ctx' struct _aarch64_ctx head; ^ /home/dim/src/main/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sa= nitizer_linux.cpp:1821:12: error: member access into incomplete type '__sanitizer::_aarch64_ctx' if (ctx->magic =3D=3D kEsrMagic) { ^ /home/dim/src/main/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sa= nitizer_linux.cpp:1811:10: note: forward declaration of '__sanitizer::_aarch64_ctx' struct _aarch64_ctx head; ^ /home/dim/src/main/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sa= nitizer_linux.cpp:1825:15: error: member access into incomplete type '__sanitizer::_aarch64_ctx' aux +=3D ctx->size; ^ /home/dim/src/main/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sa= nitizer_linux.cpp:1811:10: note: forward declaration of '__sanitizer::_aarch64_ctx' struct _aarch64_ctx head; ^ /home/dim/src/main/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sa= nitizer_linux.cpp:2055:31: error: no member named 'pc' in '__mcontext' *pc =3D ucontext->uc_mcontext.pc; ~~~~~~~~~~~~~~~~~~~~~ ^ /home/dim/src/main/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sa= nitizer_linux.cpp:2056:31: error: no member named 'regs' in '__mcontext' *bp =3D ucontext->uc_mcontext.regs[29]; ~~~~~~~~~~~~~~~~~~~~~ ^ /home/dim/src/main/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sa= nitizer_linux.cpp:2057:31: error: no member named 'sp' in '__mcontext' *sp =3D ucontext->uc_mcontext.sp; ~~~~~~~~~~~~~~~~~~~~~ ^ 8 errors generated. `_aarch64_ctx` is a Linux-specific context struct from /usr/include/aarch64-linux-gnu/asm/sigcontext.h: /* * Header to be used at the beginning of structures extending the user * context. Such structures must be placed after the rt_sigframe on the sta= ck * and be 16-byte aligned. The last structure must be a dummy one with the * magic and size set to 0. */ struct _aarch64_ctx { __u32 magic; __u32 size; }; but obviously it doesn't exist in FreeBSD. Similarly, struct ucontext and mcontext have different members, and aren't generally compatible. I think the only way to get this implemented is to have somebody with aarch= 64 knowledge, who can attempt to fix them up and submit reviews upstream. --=20 You are receiving this mail because: You are the assignee for the bug.=