Re: gcc -pg and ld error, cannot find -lgcc_p
Use sysinstall to add the proflibs distribution. Or one could rebuild/install world (and kernel if necessary) after investigating the NO_PROFILE option in /etc/make.conf. There's only a PERL_VERSION in make.conf. Since sysinstall doesn't work (this is -p4, not a base media install), how does one go about installing proflibs? I didn't see anything related to proflibs in the csup files. If no corresponding binary distribution is available, and /usr/lib/libgcc_p.a and the other profiled libraries are not installed on your system, then you'll have to build them from source. Install the proper versions of the base system sources, if you don't already have them. Make sure that WITHOUT_PROFILE, NO_PROFILE, and NOPROFILE are not defined in your build environment, or in any included makefiles like /etc/make.conf or /etc/src.conf, and that MK_PROFILE is not defined to be no in those places, either. Then rebuild and reinstall world and kernel, as described in /usr/src/UPDATING. Or, if you know what you're doing, you can build and install only the needed libraries by hand. Most of the profiled libraries are automatically built along with their non-profiled counterparts by commands in /usr/share/mk/bsd.lib.mk. b. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: gcc -pg and ld error, cannot find -lgcc_p
On Wed, Oct 28, 2009 at 4:34 AM, free...@t41t.com wrote: Use sysinstall to add the proflibs distribution. Or one could rebuild/install world (and kernel if necessary) after investigating the NO_PROFILE option in /etc/make.conf. There's only a PERL_VERSION in make.conf. Since sysinstall doesn't work (this is -p4, not a base media install), how does one go about installing proflibs? I didn't see anything related to proflibs in the csup files. Well, on my 7.1-RELEASE-p8 system, sysinstall does warn, but subsequently asks whether I'd like to try and use this disc anyway. I did not try (as I already have proflibs installed) but maybe you could, and then you could configure /etc/freebsd-update.conf to select only the world/proflibs component, and then run freebsd-update. That should save you from having to build from sources. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
gcc -pg and ld error, cannot find -lgcc_p
On 7.2-RELEASE-p4, I have a very complicated C program: int main(int argc, char** argv) { return 5; } I can compile this program (cc example.c -o example) and it compiles and runs fine. However, if I try to enable profiling of this program by compiling it as cc example.c -pg -o example I get an error: /usr/bin/ld: cannot find -lgcc_p Is there some port/package that I'm missing? A configuration somewhere? Why is ld stumbling on the profiling flag? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: gcc -pg and ld error, cannot find -lgcc_p
Use sysinstall to add the proflibs distribution. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: gcc -pg and ld error, cannot find -lgcc_p
Vaibhav Gavane writes: Use sysinstall to add the proflibs distribution. Or one could rebuild/install world (and kernel if necessary) after investigating the NO_PROFILE option in /etc/make.conf. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: gcc -pg and ld error, cannot find -lgcc_p
Use sysinstall to add the proflibs distribution. Or one could rebuild/install world (and kernel if necessary) after investigating the NO_PROFILE option in /etc/make.conf. There's only a PERL_VERSION in make.conf. Since sysinstall doesn't work (this is -p4, not a base media install), how does one go about installing proflibs? I didn't see anything related to proflibs in the csup files. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org