Re: [fedora-india] Upgrading gcc from source on Fedora / RHEL

2010-01-08 Thread Shakthi Kannan
Hi,

--- On Sat, Jan 9, 2010 at 7:40 AM, Syam Krishnan sya...@gmail.com wrote:
| Is it possible to upgrade gcc on an older Fedora (F6, for example) or RHEL
| 5 system by compiling it from sources?
\--

You can. If the dependency packages are compatible with the gcc you
are upgrading you can re-use them, or you will need to re-compile the
dependency packages themselves.

---
| My doubt is whether it will
| automatically replace with glibc
\--

Replace? Whatever is installed on your system doesn't change unless
you uninstall the packages. You can have multiple versions of a
package installed in /usr/local, for example.

---
| Or don't I need to bother about glibc at all?
| Somebody hinted that binutils will also need to be rebuilt with the new
| gcc. Is that true?
\--

When building a gcc compiler, there are dependency packages. The
development/release cycle of these dependent packages is independent
of each other. So, not all releases will be able to produce a compiler
for you.

See Dan Kegel's matrix (for building cross-compilers), for example:

  http://kegel.com/crosstool/crosstool-0.43/buildlogs/

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com

___
Fedora-india mailing list
Fedora-india@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-india

Re: [fedora-india] Upgrading gcc from source on Fedora / RHEL

2010-01-08 Thread Syam Krishnan

On 01/09/2010 10:53 AM, Shakthi Kannan wrote:

Hi,

--- On Sat, Jan 9, 2010 at 7:40 AM, Syam Krishnansya...@gmail.com  wrote:
| Is it possible to upgrade gcc on an older Fedora (F6, for example) or RHEL
| 5 system by compiling it from sources?
\--

You can. If the dependency packages are compatible with the gcc you
are upgrading you can re-use them, or you will need to re-compile the
dependency packages themselves.
   
Thanks for the info. I was trying to identify which are these dependent 
packages. glibc seems to be one. binutils too is perhaps sensitive to 
gcc/glibc version. Are there any other packages I should be specifically 
worried about?


Syam

___
Fedora-india mailing list
Fedora-india@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-india


Re: [fedora-india] Upgrading gcc from source on Fedora / RHEL

2010-01-08 Thread Shakthi Kannan
Hi,

--- On Sat, Jan 9, 2010 at 11:24 AM, Syam Krishnan sya...@gmail.com wrote:
| Thanks for the info. I was trying to identify which are these dependent
| packages. glibc seems to be one. binutils too is perhaps sensitive to
| gcc/glibc version.
\--

My points were relevant for cross-builds. But, there is no harm in
trying to build gcc first, just to see what you might get.

---
| Are there any other packages I should be specifically
| worried about?
\--

Also refer:

  http://gcc.gnu.org/install/build.html

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com

___
Fedora-india mailing list
Fedora-india@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-india