From nobody Sun Jul 30 03:03:47 2023 X-Original-To: bugs@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 4RD5mg5KDgz4q4ns for ; Sun, 30 Jul 2023 03:03:47 +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 4RD5mg07Pjz4P0l for ; Sun, 30 Jul 2023 03:03:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690686227; 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; bh=md7Fvj2ykaXD6639xqGh2Nco38Qr7l890iga3WsEKPE=; b=RgwTl/WKQPY7i1Ztz4WEeZOcCX8x0Fk01Jr5ImmxSWwC5kW6OAeL9YcYZ4ZGs9tlwYaSk+ tE2cc7+nZiNhpGvrpJ48pBSv6HDfx35c0+kai0mwEN1eS+KOGdTmAr/vwthk+6XwdGixav ZYscr6NnKenwq0+Dg3OA3TBajghQ3Ip0DmC4rYE15nfTTXre4RNNTOL6ZsN3Y6jylpHJJv vLP/K0EfCob/6+r0igyOLTDmavc9Ar2OObGT9lJ15dCVGnxDZCMHsJWy4yM54i/zHJWmQT v810jxppUf/tknisKFHl+hVUvTimENs5L69ixzkISzNJRIJeMbRv6ttAmTnFsg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690686227; a=rsa-sha256; cv=none; b=yz/Sv38hr+G7cJ37rM7F+2c8JK/gLeeCaB1MULZsyKiiy5VJE+lgLxt57bYuZ6f7f2ZplR o81oexmCbMwDfs3A/75WZ+q4nYa2JGsDBing8qAOqkBhlxdUrNV1jhqQZSmzG+MnSoIKVK 82lVmTDwg2U9np68Yk5+wEES+0Vjv4C27GcFwUqVKoSq1u2av6iMRjX9uyzaMHSYRT2UKZ 8jRjmNpDqnhS8f9D9/29P1kVTH0TFSs0yQ+B6LYujoXNY/GQtOQR3IH2l9rB5SLeZ99TXu ybzT9u/b2QVULlL4cgXMnFu3EZcKiRfJ1386mKIqBuL9wMQDMtoLh1btZluPjQ== 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 4RD5mf6KHpzyBg for ; Sun, 30 Jul 2023 03:03:46 +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 36U33kRU094505 for ; Sun, 30 Jul 2023 03:03:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36U33kiw094504 for bugs@FreeBSD.org; Sun, 30 Jul 2023 03:03:46 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 272806] aarch64's -m32 for system-clang uses -triple armv7-unknown-freebsd14.0 instead of -target armv7-unknown-freebsd14.0-gnueabihf Date: Sun, 30 Jul 2023 03:03:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: marklmi26-fbsd@yahoo.com 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 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272806 Bug ID: 272806 Summary: aarch64's -m32 for system-clang uses -triple armv7-unknown-freebsd14.0 instead of -target armv7-unknown-freebsd14.0-gnueabihf Product: Base System Version: CURRENT Hardware: arm64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: marklmi26-fbsd@yahoo.com -m32 using -triple armv7-unknown-freebsd14.0 leads to attempted usage that involves floating point getting build problems like: ld.lld: error: undefined symbol: __muldf3 . . . did you mean: __muldc3 defined in: /usr/lib32/libgcc_s.so ld.lld: error: undefined symbol: __divdf3 . . . did you mean: __divdc3 defined in: /usr/lib32/libgcc_s.so ld.lld: error: undefined symbol: __ltdf2 . . . devel/llvm* ( or, at least, devel/llvm16+ ) likely should use the correct target for FreeBSD by default as well. For 14.0 that would be -m32 for aarch64 using: -target armv7-unknown-freebsd14.0-gnueabihf Of course, this will generalize to FreeBSD 14.1+ and 15+ as well and to llvm17+ for them. [It may be less certain what should be done for aarch64 FreeBSD versions that do not have lib32. (Less reason to be using -m32.)] I'll note that I would argue that requiring explicit -m32 -target armv7-unknown-freebsd14.0-gnueabihf like notation adds the the using code needing to track 14.x/15+/... as things progress, even when not trying to do a cross build. Even if made automatic, making it so ends up being explicit in more places. --=20 You are receiving this mail because: You are the assignee for the bug.=