How to properly use -fprofile-use
Hello the list, I'm using dosbox to run an old game and as for all emulators, the CPU ressources needed are quite high. After playing with dosbox configuration there are almost no slowdowns anymore (yipee). So to remove the last few lag I started to look into gcc flags and in particular profiling which seems just great to optimize speed for one specific port. I deactivated ccache since it mess with the .gcda files creation, and after adding -fprofile-generate to CFLAGS and recompile it runs awfully slowly and a bunch of .gcda and .gcno are created in the work directory. So I believe this part works as it should. The problem is when I later recompile: replace -fprofile-generate by -fprofile-use then make -DFORCE_PKG_REGISTER install clean, the first thing make do is... delete the .gcda (but not the .gcno). Quite annoying isn't it? I then have a lot of warning complaining about xxx.gcda not found. My question is, how should I do to correctly use profiling for a port? In src.conf (I use RELENG_7) I have WITHOUT_PROFILE, does it have any influence? Best regards Frederic ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Firefox crashing
-- Message transféré -- From: Neil Munro [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Date: Mon, 29 Oct 2007 12:43:02 + Subject: Firefox crashing Hey, I have recently gotten FreeBSD working for the first time ever. I am very happy with it, however there are a few things I have having trouble getting to work, firefox is my main issue atm, it got installed along with Gnome 2.20 as you would expect however when I tried to run it nothing happened, now while I am new to FreeBSD I am not new to *Nix systems, so I used a tip I picked up from adjusting portupgrade to use BDB4 and ran 'make config' in the firefox ports directory, I enabled logging and debug etc just to see if it could provide any useful output as to what might be the cause of firefox crashing. It worked, and attached is the log of what happens when I try to start Firefox. I am cvsup'ing now and will try recompiling firefox again, see if that makes a difference, but I have been playing with FreeBSD all week and not gotten Firefox to work yet. Thanks Niadh Hello I had problems also to get firefox running, maybe it will help: first of all, firefox is very sensitive to optimization options and I had to keep conservative flags in make.conf (never had a crash during compilation but impossible to launch later) second, there is a problem of ownership: the first time you launch it, it creates a directory in home directory, but since the directory owner is root you don't have read-write access and can't launch as user. Try to sudo the first launch to see if it works, if it does chmod rw the home/.firefox directory to user (not sure about the name of directory, I'm not on my machine now). Maybe the directory is created under /root, you must move it to home and chmod it. It worked for me, hope it helps. Fred ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Firefox crashing
2007/10/30, Frederic Chardon [EMAIL PROTECTED]: -- Message transféré -- From: Neil Munro [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Date: Mon, 29 Oct 2007 12:43:02 + Subject: Firefox crashing Hey, I have recently gotten FreeBSD working for the first time ever. I am very happy with it, however there are a few things I have having trouble getting to work, firefox is my main issue atm, it got installed along with Gnome 2.20 as you would expect however when I tried to run it nothing happened, now while I am new to FreeBSD I am not new to *Nix systems, so I used a tip I picked up from adjusting portupgrade to use BDB4 and ran 'make config' in the firefox ports directory, I enabled logging and debug etc just to see if it could provide any useful output as to what might be the cause of firefox crashing. It worked, and attached is the log of what happens when I try to start Firefox. I am cvsup'ing now and will try recompiling firefox again, see if that makes a difference, but I have been playing with FreeBSD all week and not gotten Firefox to work yet. Thanks Niadh Hello I had problems also to get firefox running, maybe it will help: first of all, firefox is very sensitive to optimization options and I had to keep conservative flags in make.conf (never had a crash during compilation but impossible to launch later) second, there is a problem of ownership: the first time you launch it, it creates a directory in home directory, but since the directory owner is root you don't have read-write access and can't launch as user. Try to sudo the first launch to see if it works, if it does chmod rw the home/.firefox directory to user (not sure about the name of directory, I'm not on my machine now). Maybe the directory is created under /root, you must move it to home and chmod it. It worked for me, hope it helps. Fred I meant chown, but I'm sure you corrected yourself ;-) Fred ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]