From nobody Mon Mar 06 08:46:45 2023 X-Original-To: freebsd-ports@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 4PVXJC05Xjz3wdQq for ; Mon, 6 Mar 2023 08:47:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-20.consmr.mail.gq1.yahoo.com (sonic309-20.consmr.mail.gq1.yahoo.com [98.137.65.146]) (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 4PVXJ96HRmz45yN for ; Mon, 6 Mar 2023 08:47:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=QKNdrqfa; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.146 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1678092423; bh=GhN5TY53Onqz2AcJtt7FvQW1L1r7El4ev7kPP7vEoUU=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=QKNdrqfaplXaycoZYUi9Z2tscRT6Qw/oigFernkTHh5hkgUGC16jR0IEckYstQjAI5CNFxg59PRrXqzwYKM8NTz9HmOhGroDMkmzg9VO7zM5Yve06truMCTq/bAZPmifN45nPRQ3np0Ld8K2ktlvYGYrgE5rEybS95zufED2OIXF4jjIj2ntBdIAXyoa8F1SKGdaymcWX7Gxhx3uRwECx6FJowuD4BJDxPNXWBVW/Qu4AL/qYw+SoSecKCPxyT318DICLJZ4UwQIiPsxPVlJbrbhN3yI8A0nLSUc9hNJsH8lzYoG3Sslr0zK0Av8FiCBJmmg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kLTVgQoOw4YOCWSXEJjEKJYljeyknMHzt9LXwBjCWYxQS 3pGQJZb0aySYdUd6LW7J89L_WENmwSGEeL8XFSwPp36_wlrfrAcWDCvxGBiJ3jTdq6H7zGmU.oI. Q945da6BeNGyD3ukvucDffeMIVPt5zah6W7.3nsyFCNuNLzsqKsxiWDokYy8ETurPJbYrvWsx9Wj IagQsgF.39GkPvoQi9Y3NOLQ3wguEXKR7.ttA6HYHn5QsWZpILMxq5loDhgBxsXkZhqiRTGIDzPg ygdibXJeES2nLJxSmyCtbU6JF3fGd67Ftwt6vLGNvcz2kmUvDVXWRVuSYbxJTPpAzkiLARjvtSAv 5RV2RmVTM2l7upK8rMDGn2jB7ZMAPXz2yA1DIZMgcoerP2xpQazeeT_xUibxUXg9XOGHf_MTtJXt U7jpz2VLAzosA7v7MDDX.BZOGHQzYo2_WC92_Zq7UWydtsyf8PFGwLvhgpea1oZyUJ_tGaSbISwA nTTtSav56AFPEoO27KPtd.7TMSCJ.wykDqqNizxZnsRL47GQNeGvwP17WX8QV6URGjhoYfe_g7dY DVv9loBjaxYh.tTfMd6Ey6WnK_Qu30T03x4eq8dHezUffzgPqW3TOMGCEa5rqfZFhF1sbLkhPUcQ FJZRsicu97bNEGflMhaDWcW14YsbHo7T.ExGBB0n_iLb0f7J6G7bz3gRBsS8ougqJ3aY6g8hm5xg U X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Mon, 6 Mar 2023 08:47:03 +0000 Received: by hermes--production-bf1-777648578f-lk5ld (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a339fa17ee01003260a78bbca0a2c157; Mon, 06 Mar 2023 08:46:58 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: armv7 lang/gcc12 "no bootstrap" build via system clang 15.0.7 based poudriere build ends up stuck in a small loop Message-Id: Date: Mon, 6 Mar 2023 00:46:45 -0800 To: Brooks Davis , "salvadore@freebsd.org" , FreeBSD Mailing List X-Mailer: Apple Mail (2.3731.400.51.1.1) References: X-Spamd-Result: default: False [-2.67 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; NEURAL_HAM_SHORT(-0.17)[-0.171]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.146:from]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org] X-Rspamd-Queue-Id: 4PVXJ96HRmz45yN X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N Under main that has clang 15.0.7, I've had to locally switch to using the likes of: OPTIONS_DEFAULT_armv7=3DSTANDARD_BOOTSTRAP (to express it in Makefile terms) for lang/gcc12 in order to avoid the following. The no bootstrap build ends up stuck in small loop in partition_union (in cc1): (gdb) info threads Id Target Id Frame=20 * 1 LWP 632886 of process 27787 0x016eb82c in partition_union () (gdb) bt #0 0x016eb82c in partition_union () #1 0x0133e6ec in var_union(_var_map*, tree_node*, tree_node*) () #2 0x013218e4 in attempt_coalesce(_var_map*, ssa_conflicts*, int, int, = __sFILE*) () #3 0x013203d0 in coalesce_ssa_name(_var_map*) () #4 0x012c66b4 in rewrite_out_of_ssa(ssaexpand*) () #5 0x0082c094 in (anonymous namespace)::pass_expand::execute(function*) = () #6 0x00fd6ff0 in execute_one_pass(opt_pass*) () #7 0x00fd8380 in execute_pass_list_1(opt_pass*) () #8 0x00fc6df0 in execute_pass_list(function*, opt_pass*) () #9 0x00880c20 in cgraph_node::expand() () #10 0x00882d10 in symbol_table::compile() () #11 0x00883454 in symbol_table::finalize_compilation_unit() () #12 0x0120e204 in compile_file() () #13 0x0120d9d4 in toplev::main(int, char**) () #14 0x01646c28 in main () (gdb) finish Run till exit from #0 0x016eb82c in partition_union () It never exits. I've walked through the short loop that ends up with data that leads to no progress: bne always taken and reaches a status of no change in the values involved happens in the loop. truss shows no output and no subroutines are called in the few instruction long loop. I ran multiple tests of "no bootstrap" and all failed the same way. Such would not be a good thing for the FreeBSD armv7 package build server. Also seen via lldb: (lldb) bt * thread #1, name =3D 'cc1', stop reason =3D signal SIGSTOP * frame #0: 0x016eb82c cc1`partition_union + 152 frame #1: 0x0133e6ec cc1`var_union(_var_map*, tree_node*, = tree_node*) + 104 frame #2: 0x013218e4 cc1`attempt_coalesce(_var_map*, ssa_conflicts*, = int, int, __sFILE*) + 508 frame #3: 0x013203d0 cc1`coalesce_ssa_name(_var_map*) + 7240 frame #4: 0x012c66b4 cc1`rewrite_out_of_ssa(ssaexpand*) + 2020 frame #5: 0x0082c094 cc1`(anonymous = namespace)::pass_expand::execute(function*) + 68 frame #6: 0x00fd6ff0 cc1`execute_one_pass(opt_pass*) + 616 frame #7: 0x00fd8380 cc1`execute_pass_list_1(opt_pass*) + 44 frame #8: 0x00fc6df0 cc1`execute_pass_list(function*, opt_pass*) + = 40 frame #9: 0x00880c20 cc1`cgraph_node::expand() + 324 frame #10: 0x00882d10 cc1`symbol_table::compile() + 3860 frame #11: 0x00883454 cc1`symbol_table::finalize_compilation_unit() = + 300 frame #12: 0x0120e204 cc1`compile_file() + 236 frame #13: 0x0120d9d4 cc1`toplev::main(int, char**) + 7028 frame #14: 0x01646c28 cc1`main + 48 frame #15: 0x004ad3f0 cc1`__start(argc=3D31, argv=3D0xffffadec, = env=3D0xffffae6c, ps_strings=3D, obj=3D0x4181e004, = cleanup=3D0x417ed4d8) at crt1_c.c:92:7 The armv7 STANDARD_BOOTSTRAP change lead to it reaching completion. But the "no bootstrap" issue suggests that system-clang 15.0.7 has a problem for armv7 targeting. (I've not seen problems for targeting aarch64 or amd64.) For reference: # uname -apKU FreeBSD CA72_16Gp_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #88 = main-n261230-e78dc78e517a-dirty: Wed Mar 1 16:17:45 PST 2023 = root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm6= 4.aarch64/sys/GENERIC-NODBG-CA72 arm armv7 1400081 1400081 via: # poudriere jail -l JAILNAME VERSION ARCH METHOD TIMESTAMP = PATH . . . main-CA7 14.0-CURRENT arm.armv7 null 2021-06-27 = 17:58:33 /usr/obj/DESTDIRs/main-CA7-poud . . . on an aarch64 system, no qemu involved (or even installed): # uname -apKU FreeBSD CA72_16Gp_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #88 = main-n261230-e78dc78e517a-dirty: Wed Mar 1 16:17:45 PST 2023 = root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm6= 4.aarch64/sys/GENERIC-NODBG-CA72 arm64 aarch64 1400081 1400081 (It is a 16 Cortex-A72 HoneyComb.) =3D=3D=3D Mark Millard marklmi at yahoo.com