Upgrading Included GCC
Hello, I am on FreeBSD 5.5-STABLE and was wondering if there is a way to replace the system's GCC, shipped with 5.5, (GCC 3.4.2) to GCC 4.1 without upgrading the whole source tree to another release? Is there a way to do this that will not include much risk of breaking my system? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading Included GCC
In the last episode (Jul 10), Jacob Jennings said: Hello, I am on FreeBSD 5.5-STABLE and was wondering if there is a way to replace the system's GCC, shipped with 5.5, (GCC 3.4.2) to GCC 4.1 without upgrading the whole source tree to another release? Is there a way to do this that will not include much risk of breaking my system? Thanks. You can install ports/lang/gcc41, which will give you gcc41 and g++41 executables. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading Included GCC
On 7/10/06, Dan Nelson [EMAIL PROTECTED] wrote: In the last episode (Jul 10), Jacob Jennings said: Hello, I am on FreeBSD 5.5-STABLE and was wondering if there is a way to replace the system's GCC, shipped with 5.5, (GCC 3.4.2) to GCC 4.1 without upgrading the whole source tree to another release? Is there a way to do this that will not include much risk of breaking my system? Thanks. You can install ports/lang/gcc41, which will give you gcc41 and g++41 executables. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] If I'm reading the OP's comment right, he may try to do what I did the first time... I was smart enough to back up the overwritten files first... which saved me a reinstall. DO NOT replace teh gcc, g++, etc. base files for the GCC compiler with the newly compiled files, that will cause a lot of compilation issues for many core things and does not work properly. I don't know why, but it doesn't; it seems a lot of things get very tied to a particular version of the compiler. -Jim Stapleton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading Included GCC
--- Jim Stapleton [EMAIL PROTECTED] wrote: On 7/10/06, Dan Nelson [EMAIL PROTECTED] wrote: In the last episode (Jul 10), Jacob Jennings said: Hello, I am on FreeBSD 5.5-STABLE and was wondering if there is a way to replace the system's GCC, shipped with 5.5, (GCC 3.4.2) to GCC 4.1 without upgrading the whole source tree to another release? Is there a way to do this that will not include much risk of breaking my system? Thanks. You can install ports/lang/gcc41, which will give you gcc41 and g++41 executables. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] If I'm reading the OP's comment right, he may try to do what I did the first time... I was smart enough to back up the overwritten files first... which saved me a reinstall. DO NOT replace teh gcc, g++, etc. base files for the GCC compiler with the newly compiled files, that will cause a lot of compilation issues for many core things and does not work properly. I don't know why, but it doesn't; it seems a lot of things get very tied to a particular version of the compiler. -Jim Stapleton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] it just sounds like a bad idea to attempt to do this anyway. The developers of the Release you are running seem to think GCC 3.4.2 was a stable enough compiler to run the system and build things correctly. I'm not the worlds smartest programmer, but if GCC 4.1 was good enough to build FreeBSD I'm sure it would be part of the BASE system. Your best bet would be to install it from ports and use it with the appropriate environment variables. Keep in mind if this is anything like Gentoo the GCC 4.x and 3.x libraries ARE NOT compatible. If it works like Gentoo replacing 3.x with 4.x you WILL BREAK otherwise functioning software when the standard libraries change. Again if it works like Gentoo this is KDE at the very least. This means all the ports would likeley need to be upgraded. Of course if your do get GCC 4.1 to properly compile a FreeBSD World target (lots of hackign here to replace the Compiler portion of the World target) perhaps the hacker mailing list would be interested. And if I'm not mistaken Rel_6.X still uses the 3.X gcc suite. I would have to check it but I belive it is 3.4.x or 3.5.x... Latest and greatest isn't always the best thing, stable and old means consistent binaries. It's your call, but don't replace the BASE compiler unless you fully understand the implications, and like hacking code to make the World target build and the kernel so you can get benefit from using the newer version of GCC. I would suspect only marginal gains if any at all just because I would think it would be part of FreeBSD if it made the system components correctly. my two cents -brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading Included GCC
I've already installed it, I should have mentioned that--sorry. What I mean is there a way to where when I type 'gcc' or 'g++' it uses gcc41 or g++41? I know I could use symlinks but that would entail removing the gcc 3.4.2 binaries which I'm afraid might be insecure. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Upgrading Included GCC
I've already installed it, I should have mentioned that--sorry. What I mean is there a way to where when I type 'gcc' or 'g++' it uses gcc41 or g++41? I know I could use symlinks but that would entail removing the gcc 3.4.2 binaries which I'm afraid might be insecure. i don't know what you want to do with it, but if you compile some standards-aware software, you'd be able to set CC and CPP, CXX as environment variable to the binaries you installed export CC=/usr/local/gcc41/bin/gcc for example. maybe this works. dunno for sure, but worth a try ;-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]