Bug 256874 - lang/gcc*: stop linking against _p.a libraries
Summary: lang/gcc*: stop linking against _p.a libraries
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-toolchain (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-28 19:48 UTC by Ed Maste
Modified: 2022-01-22 00:10 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer freebsd_triage 2021-06-28 19:48:54 UTC
We plan to deprecate the PROFILE option / _p.a archives - see https://reviews.freebsd.org/D30833.

Clang upstream and in base no longer links against _p.a archives when -pg is specified:

commit b762974cf4b9ea77f1decf4a6d829372f0a97f75
Author: Ed Maste <emaste@FreeBSD.org>
Date:   Sat Jun 26 19:58:16 2021 -0400

    clang: stop linking _p libs for -pg as of FreeBSD 14
    
    In FreeBSD 14 we will stop providing _p libraries (compiled with -pg).
    
    Reviewed by:    dim (upstream)
    Obtained from:  LLVM 699d47472c3f
    MFC after:      2 weeks
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D30861

We'll need to make the same change in gcc. AFAICT at present only libc_p.a and libpthread_p.a have this special case in gcc.
Comment 1 Gerald Pfeifer freebsd_committer freebsd_triage 2021-07-11 19:54:53 UTC
I understand andreast@ has a patch for upstream in the works. Thank you!
Comment 2 Gerald Pfeifer freebsd_committer freebsd_triage 2022-01-22 00:10:34 UTC
I'm in the process of relinquishing maintainership of more and more
of the lang/gcc* ports, so over to toolchain@.


Andreas, 

you indicated you had a draft patch ready? Any chance you can push
that upstream (which would be vastly better than a local patch).