[EMAIL PROTECTED] wrote:
> 
> Hi all.
> 
> We're developing on stock RH 6.2 (for product compliency), but ran into a
> gcc bug when overriding new/delete operators. It was fixed in later
> versions of gcc (2.95.2 +) , so now we want to upgrade compiler.
> 
> Question:
> What does upping to gcc 3.x involve (other than installing an RPM), what
> could be the ramifications on how our (quite big) project compiles, and how
> well is its backwards-compatibility with gcc 2.x? Should I just take 2.95.3
> if I want to sleep well at night?

I would go with 3.0.x if you can. If not, 2.96 is much better than
2,95.3, IF you get the latest version. The first releases of 2.96 were
beta and buggy. gcc-2.96-69 is fine.


Actually it's very simple.

1. Decide which glibc you want to use. If you want a later one, install it
   first (from RPMs). Note that I had C++ problems linking when I used
   a C library earlier than glibc-2.2.4-19 and gcc-3.0.2. 
   I did not try very many, it may be ok for you.

2. Download the latest (or near leatest) gcc tar from ftp.gnu.org.

3. unpack the tar file

        for example tar xvzf gcc-3.0.2.tar.gz 

3a. I like to do this under /usr/local/src or /usr/src, but build the
    compiler as root, so I do:

        cd /usr/local/src
        sudo tar xvzf ~/gsm/ftp/gcc-3.0.2.tar.gz
        cd gcc-3.0.2

4. make a directory under the gcc root.

        cd gcc-3.0.2
        mkdir object

4a. again so that I'm not root.
        sudo mkdir objdir
        sudo chown gsm objdir

5. configure gcc to your local system and to put it in a different directory:
        cd object
        ../configure --prefix=/usr/local/gcc-3.0.2

6. Build gcc
        make

7. Install it.
        (as root or sudo)
        make install

8. Update library cache (again as root)
        add "/usr/local/gcc-3.0.2/lib" to /etc/ld.so.conf
        ldconfig

9. add the following to your startup script or whatever:
        PATH=:.:~/bin:/usr/local/gcc-3.0.2/bin:$PATH:
        export PATH
        

have fun.    
-- 
Geoffrey S. Mendelson
Bloomberg L.P., BFM (Israel) 2 hours ahead of London, 7 hours ahead of New York.
Tel:  972-(0)3-754-1158 Fax 972-(0)3-754-1236 Email: [EMAIL PROTECTED] 


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to