Re: Versions for development tools included in FreeBSD
From: jpd (read_the_sig_at_do.not.spam.it.invalid)
Date: 06/22/05
- Next message: Robert Bonomi: "Re: Historical question"
- Previous message: jpd: "Re: 5.4 Stable - freeze on boot"
- In reply to: jfathman_at_aol.com: "Re: Versions for development tools included in FreeBSD"
- Next in thread: jfathman_at_aol.com: "Re: Versions for development tools included in FreeBSD"
- Reply: jfathman_at_aol.com: "Re: Versions for development tools included in FreeBSD"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Jun 2005 22:54:39 GMT
Begin <1119360654.141017.59420@g49g2000cwa.googlegroups.com>
On 2005-06-21, jfathman@aol.com <jfathman@aol.com> wrote:
> With Linux, installing a newer version of gcc than the version that the
> distribution was built with always caused problems (I recall one
> version of Red Hat that included *two* versions of gcc, one for
> building the kernel and another for building applications).
Rh has ueberhaubt a bad name in that respect. Like shipping the 7 series
with a nonexistent gcc release, custom patched so that if you find
source on the 'net that says ``developed under redhat 7 so it SHOULD
work on other linuxes'' you can be sure that it won't.
> Is this safer with FreeBSD? If I am running the latest or near latest
> FreeBSD 4.x or 5.x version, is it typically safe to install the latest
> version of gcc listed in the FreeBSD ports and packages collection?
Look at it this way: There is one system compiler. It comes with the
system and is used to build the system. You should not change or try
to replace this. It is what you get if you type cc or gcc.
You can install any other compiler, and the ports system will make
it accessible under some other name, like gcc34, gcc40, g++40, etc.
So apart from it not being the default when you type cc, yes, you
can have as many compilers as you like. Just set the CC and CXX
variables in your Makefiles.
> Please excuse what must be a very basic question. My motivation is to
> run the latest gcc and perhaps some boost libraries under FreeBSD so I
> can do some C++ development, and this compels me to user newer gcc than
> the gcc version that comes stock with the FreeBSD base system. My goal
> is: FreeBSD, latest gcc/boost, without corrupting the FreeBSD base
> system.
You can. Many do. I do, too: I think I mentioned earlier in this froup
that I normally compile my code regularly with at least two different
compilers, currently g++295 and g++34, simply to detect and remove
compiler specific dependencies. Not the newest, but there's enough
features in the language that both support to keep me occupied for a
while. :-)
-- j p d (at) d s b (dot) t u d e l f t (dot) n l .
- Next message: Robert Bonomi: "Re: Historical question"
- Previous message: jpd: "Re: 5.4 Stable - freeze on boot"
- In reply to: jfathman_at_aol.com: "Re: Versions for development tools included in FreeBSD"
- Next in thread: jfathman_at_aol.com: "Re: Versions for development tools included in FreeBSD"
- Reply: jfathman_at_aol.com: "Re: Versions for development tools included in FreeBSD"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|