Installing gcc 3.3.1 as default
Hi all, What is the right way to install gcc 3.3.1 on FreeBSD 5.1 Release as the default compiler suite? I installed it from ports in /usr/local/bin/. C compiler is gcc33 and C++ is g++33. Should I create soft links in the /usr/bin to corresponding files in /usr/local/bin? Should I have used the 'setenv PREFIX /usr' before installing? Thanks, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Installing gcc 3.3.1 as default
On Wed, Sep 24, 2003 at 04:16:45PM -0700, Andrew Terekhov wrote: Hi all, What is the right way to install gcc 3.3.1 on FreeBSD 5.1 Release as the default compiler suite? Replacing the system compiler is not supported and will generally cause your system sources to become unbuildable. If you really want to compile your base system with gcc 3.3, upgrade to 5.1-CURRENT (read the handbook section on running -CURRENT before attempting this, of course) Kris pgp0.pgp Description: PGP signature
Re: gcc 3.3.1
On Sat, Sep 20, 2003 at 07:40:45PM -0700, Kris Kennaway wrote: On Sat, Sep 20, 2003 at 05:46:27PM -0500, Vulpes Velox wrote: Do I have any thing to worry about upgrading versions of gcc, from ports, in stable? Depends what your intentions are. You can use it to compile your own code, and most ports, but some ports and the FreeBSD 4.x base system cannot be compiled with gcc 3.x. I forgot to mention that you'll run into problems if you try and mix and match C++ libraries and code compiled with different gcc revisions (they periodically break C++ binary compatibility). Kris pgp0.pgp Description: PGP signature
gcc 3.3.1
Do I have any thing to worry about upgrading versions of gcc, from ports, in stable? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: GCC 3.3.1 + Pentium 4
Mo wrote: If anyone knows how to make it use Pentium 4 optimizations, please let me know. By the way, if this is a mailing list, I am not subscribed, so please CC all replies to my e-mail address. Hi Mo, at first I consider you ask those questions in the current@ list, because it's not a generic bsd question but a current optimization one. Next I recommend to read the archives of current@, because someone else asked the same and got an answer. And last but not least I think if you care about such themes, you should subscribe as well to current@ and maybe question@, too. Best, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
GCC 3.3.1 + Pentium 4
I recently cvsupped my -CURRENT box (about a day ago), and I noticed that GCC 3.3.1 had been imported, so I decided to buildworld so I can use Pentium 4 optimizations when compiling ports and other things. I have p4 set for CPUTYPE in /etc/make.conf , but when I compile anything, it uses -march=pentium3. I know this was changed because GCC 3.2.2 used to produce broken code when pentium4 optimizations were set, but now that GCC 3.3.1 is imported, shouldn't this be resolved? http://www.freebsd.org/releases/5.1R/relnotes-i386.html#CONTRIB (under GCC): *GCC* has been updated to 3.2.2 (release version). *Note:* *GCC* is known to produce broken code with the -march=pentium4 option set. As a workaround to avoid this problem, setting the CPUTYPE=p4 Makefile variable (for example, in make.conf(5) http://www.FreeBSD.org/cgi/man.cgi?query=make.confsektion=5manpath=FreeBSD+5.1-release) enables GCC's -march=pentium3 option instead. This situation is expected to be resolved when GCC 3.3 is imported. If anyone knows how to make it use Pentium 4 optimizations, please let me know. By the way, if this is a mailing list, I am not subscribed, so please CC all replies to my e-mail address. Thank you, I appreciate it. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]