From owner-freebsd-bugs@freebsd.org Fri Nov 30 13:57:28 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB4EE1144AC7 for ; Fri, 30 Nov 2018 13:57:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 7DDE483394 for ; Fri, 30 Nov 2018 13:57:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 40BE51144AC6; Fri, 30 Nov 2018 13:57:27 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1DF711144AC5 for ; Fri, 30 Nov 2018 13:57:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B0FEE83392 for ; Fri, 30 Nov 2018 13:57:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id E383EF871 for ; Fri, 30 Nov 2018 13:57:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id wAUDvPkP026921 for ; Fri, 30 Nov 2018 13:57:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id wAUDvPsE026920 for bugs@FreeBSD.org; Fri, 30 Nov 2018 13:57:25 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: bugs@FreeBSD.org Subject: [Bug 233664] enable LLVM libunwind for armv7, armv6, arm Date: Fri, 30 Nov 2018 13:57:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter blocked Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: 7DDE483394 X-Spamd-Result: default: False [1.88 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_LONG(0.57)[0.567,0]; NEURAL_SPAM_SHORT(0.60)[0.601,0]; NEURAL_SPAM_MEDIUM(0.71)[0.714,0]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2018 13:57:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233664 Bug ID: 233664 Summary: enable LLVM libunwind for armv7, armv6, arm Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: emaste@freebsd.org Blocks: 233094 arm currently uses Clang and LLD, but LLVM_LIBUNWIND is not enabled. For armv7 there are a couple of minor conflicts with other unwind helpers, = and we need to update the symbol version map. The hack below gets it to build,= but needs to be cleaned up. arm and armv6 fail with: /.../arm.arm/tmp/usr/lib/libcxxrt.so: undefined reference to `__gnu_unwind_frame@GCC_3.5' /.../arm.arm/tmp/usr/lib/libcxxrt.so: undefined reference to `_Unwind_VRS_Set@GCC_3.5' /.../arm.arm/tmp/usr/lib/libcxxrt.so: undefined reference to `_Unwind_VRS_Get@GCC_3.5' armv7 hack patch: diff --git a/contrib/compiler-rt/lib/builtins/gcc_personality_v0.c b/contrib/compiler-rt/lib/builtins/gcc_personality_v0.c index 0bc765624564..034d323814c4 100644 --- a/contrib/compiler-rt/lib/builtins/gcc_personality_v0.c +++ b/contrib/compiler-rt/lib/builtins/gcc_personality_v0.c @@ -145,6 +145,7 @@ static uintptr_t readEncodedPointer(const uint8_t** dat= a, uint8_t encoding) #if defined(__arm__) && !defined(__USING_SJLJ_EXCEPTIONS__) &&=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 \ !defined(__ARM_DWARF_EH__) #define USING_ARM_EHABI 1 +struct _Unwind_Exception; _Unwind_Reason_Code __gnu_unwind_frame(struct _Unwind_Exception *, struct _Unwind_Context *); #endif diff --git a/contrib/compiler-rt/lib/builtins/unwind-ehabi-helpers.h b/contrib/compiler-rt/lib/builtins/unwind-ehabi-helpers.h index ccb0765975a9..864dba716e9b 100644 --- a/contrib/compiler-rt/lib/builtins/unwind-ehabi-helpers.h +++ b/contrib/compiler-rt/lib/builtins/unwind-ehabi-helpers.h @@ -39,8 +39,6 @@ #define _URC_OK 0 #define _URC_FAILURE 9 -typedef uint32_t _Unwind_State; - #if !defined(_US_UNWIND_FRAME_STARTING) #define _US_UNWIND_FRAME_STARTING ((_Unwind_State)1) #endif diff --git a/lib/libgcc_s/Version.map b/lib/libgcc_s/Version.map index 622732edb447..42a3b757d513 100644 --- a/lib/libgcc_s/Version.map +++ b/lib/libgcc_s/Version.map @@ -126,6 +126,12 @@ GCC_3.4.4 { __subvti3; } GCC_3.4.2; +GCC_3.5 { + __aeabi_unwind_cpp_pr0; + __aeabi_unwind_cpp_pr1; + __aeabi_unwind_cpp_pr2; +}; + GCC_4.0.0 { __divdc3; __divsc3; Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233094 [Bug 233094] [meta] Base system tool chain modernization tracking --=20 You are receiving this mail because: You are the assignee for the bug.=