Hi,

I am trying to install gcc compiler 3.4.0 on Red Hat Advance Server 2.1.
Current gcc version is 3.2.2-5 which is seems to bugy as I have tried to
compile and install some other packages and was getting error messages which
denoting that it is a problem with bugy gcc compiler version which had been
shipped with Red Hat Advanced Server2.1
After that I have decided to upgrade gcc compiler version from 3.2.2-5 to
3.4.0. For upgrading I am following steps given below.
Running ../gcc-3.4.0/configure --prefix=/usr/bin/gcc-3.4.0 command from
gcc-3.4.0-build directoy.
Configuration steps is getting completed without any errors.
Then from gcc-3.4.0-build directory I am running make command which is giving
following errors as given below..

gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.4.0/libiberty/../include  -W
-Wall -Wtraditional -pedantic ../../gcc-3.4.0/libiberty/getpwd.c -o getpwd.o
../../gcc-3.4.0/libiberty/getpwd.c: In function `getpwd':
../../gcc-3.4.0/libiberty/getpwd.c:74: storage size of `dotstat' isn't known
../../gcc-3.4.0/libiberty/getpwd.c:74: storage size of `pwdstat' isn't known
../../gcc-3.4.0/libiberty/getpwd.c:78: warning: implicit declaration of
function `getenv'
../../gcc-3.4.0/libiberty/getpwd.c:78: warning: assignment makes pointer from
integer without a cast
../../gcc-3.4.0/libiberty/getpwd.c:80: warning: implicit declaration of
function `stat'
../../gcc-3.4.0/libiberty/getpwd.c:86: warning: implicit declaration of
function `getcwd'
../../gcc-3.4.0/libiberty/getpwd.c:89: warning: implicit declaration of
function `free'
../../gcc-3.4.0/libiberty/getpwd.c:74: warning: unused variable `dotstat'
../../gcc-3.4.0/libiberty/getpwd.c:74: warning: unused variable `pwdstat'
make[1]: *** [getpwd.o] Error 1
make[1]: Leaving directory `/var/build/gcc-3.4.0-build/libiberty'
make: *** [all-libiberty] Error 2

Could anybody please tell me why I am getting this error and is there any way
to overcome these types of errors. Also I am not able to go forward with next
steps as I am not able to upgrade the current gcc compiler version.

Your help is much appreciated. Thanks in advance.

Also if you need any details please let me know.

Kind Regards
Sagar


-- 
           Summary: During installation of gcc-3.4.0 compiler getting an
                    error "make[1]: *** [getpwd.o] Error 1"
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sagar dot indalkar at ge dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27076

Reply via email to