From nobody Fri Apr 29 20:12:57 2022 X-Original-To: freebsd-current@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 19B751AB2A8C for ; Fri, 29 Apr 2022 20:13:00 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (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 (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KqkF71HR2z560g for ; Fri, 29 Apr 2022 20:12:59 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.16.1/8.16.1) with ESMTPS id 23TKCvNZ021945 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 29 Apr 2022 13:12:57 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.16.1/8.16.1/Submit) id 23TKCvlI021944; Fri, 29 Apr 2022 13:12:57 -0700 (PDT) (envelope-from sgk) Date: Fri, 29 Apr 2022 13:12:57 -0700 From: Steve Kargl To: Mark Millard Cc: freebsd-current Subject: Re: Profiled libraries on freebsd-current Message-ID: Reply-To: sgk@troutmask.apl.washington.edu References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4KqkF71HR2z560g X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=washington.edu (policy=none); spf=none (mx1.freebsd.org: domain of sgk@troutmask.apl.washington.edu has no SPF policy when checking 128.95.76.21) smtp.mailfrom=sgk@troutmask.apl.washington.edu X-Spamd-Result: default: False [-0.68 / 15.00]; HAS_REPLYTO(0.00)[sgk@troutmask.apl.washington.edu]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_NA(0.00)[no SPF record]; NEURAL_HAM_LONG(-0.68)[-0.678]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; NEURAL_SPAM_MEDIUM(1.00)[0.996]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.997]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-current]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[washington.edu : No valid SPF, No valid DKIM,none] X-ThisMailContainsUnwantedMimeParts: N On Fri, Apr 29, 2022 at 12:51:12PM -0700, Mark Millard wrote: > On 2022-Apr-29, at 12:38, Mark Millard wrote: > > > https://cgit.freebsd.org/src/commit/?id=175841285e289edebb6603da39f02549521ce950 > > says the following (later), but first I quote the part tbat dirves the > > interpretation: > > > > QUOTE > > Clang's -pg support and mcount() remain, so building with -pg can still > > be used on code that the user builds; we just do not provide prebuilt > > libraries compiled with -pg. > > END QUOTE > > > > No WITH_PROFILE options means no "prebuilt libraries compiled with -pg". > > > > > > The overall notice was: > > > > author Ed Maste 2021-06-27 17:21:26 +0000 > > committer Ed Maste 2021-06-28 15:36:59 +0000 > > commit 175841285e289edebb6603da39f02549521ce950 (patch) > > tree 9c2d3b05546961457bb18faeebd2302a25559b49 > > parent 243b95978debac3db06df6d26ca9f8d84f6cbd83 (diff) > > download src-175841285e289edebb6603da39f02549521ce950.tar.gz > > src-175841285e289edebb6603da39f02549521ce950.zip > > > > Add deprecation notice for WITH_PROFILE option > > > > As discussed on freebsd-current [1] and freebsd-arch [2] and review > > D30833, FreeBSD 14 will ship without the _p.a libraries built with -pg. > > Both upstream and base system (in commit b762974cf4b9) Clang have been > > modified to remove the special case for linking against these libraries. > > > > Clang's -pg support and mcount() remain, so building with -pg can still > > be used on code that the user builds; we just do not provide prebuilt > > libraries compiled with -pg. A similar change is still needed for GCC. > > > > [1] > > https://lists.freebsd.org/pipermail/freebsd-current/2020-January/075105.html > > > > [2] > > https://lists.freebsd.org/archives/freebsd-arch/2021-June/000016.html > > > > > > MFC after: 1 week > > Sponsored by: The FreeBSD Foundation > > END QUOTE > > > > I probably should have been explicit: the actual removal of WITH_PROFILE > has not happened yet. So testing attempts to use it are not yet expected > to have the new behavior yet. > The evenual absence of libc_p.a and libm_p.a will break GCC's -pg option in GCC. One will then need to know how to change the GCC source or install symlinks for to point *_p.a a the *.a libs. -- Steve