Bug 256749

Summary: ref machines do not have profiling libraries
Product: Services Reporter: Ed Maste <emaste>
Component: Core InfrastructureAssignee: Cluster Admin <clusteradm>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: philip
Priority: ---    
Version: unspecified   
Hardware: Any   
OS: Any   

Description Ed Maste freebsd_committer 2021-06-21 15:13:51 UTC
As part of the process of disabling profiling (PROFILE option) support by default I wanted to verify that it operates as I expect today, but the ref*.freebsd.org machines do not have the _p libraries installed:

ref13-amd64% cc -pg -O0 profil.c
/usr/local/bin/x86_64-unknown-freebsd13.0-ld: cannot find -lgcc_p
/usr/local/bin/x86_64-unknown-freebsd13.0-ld: cannot find -lgcc_eh_p
/usr/local/bin/x86_64-unknown-freebsd13.0-ld: cannot find -lc_p
/usr/local/bin/x86_64-unknown-freebsd13.0-ld: cannot find -lgcc_p
/usr/local/bin/x86_64-unknown-freebsd13.0-ld: cannot find -lgcc_eh_p
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 Philip Paeps freebsd_committer 2021-06-21 16:14:58 UTC
I don't think we build the _p libraries for cluster builds.  I'll take a look.
Comment 2 Philip Paeps freebsd_committer 2021-06-21 16:21:36 UTC
As I suspected ... we've had this for a while:

make-10.conf:WITHOUT_PROFILE=	yes
make-11.conf:WITHOUT_PROFILE=	yes
make-12.conf:WITHOUT_PROFILE=	yes
make-13.conf:WITHOUT_PROFILE=	yes
make-14.conf:WITHOUT_PROFILE=	yes

I can probably turn this on for the next cluster build.  The trade off is some additional build time and disk space.
Comment 3 Ed Maste freebsd_committer 2021-08-06 23:31:27 UTC
I have work in progress to remove the _p.a libraries and don't particularly care about this issue any longer, although IMO these reference machines should match the default config.