This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bootstrap/7716: can't compile getpwd.c during build
- From: "Robert W. Hasker" <hasker at baobab dot cs dot uwplatt dot edu>
- To: gcc-gnats at gcc dot gnu dot org
- Date: Sun, 25 Aug 2002 15:53:48 -0500 (CDT)
- Subject: bootstrap/7716: can't compile getpwd.c during build
>Number: 7716
>Category: bootstrap
>Synopsis: can't compile getpwd.c during build
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Aug 25 13:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Robert W. Hasker
>Release: 3.2
>Organization:
UW-Platteville
>Environment:
System: OSF1 baobab.cs.uwplatt.edu V4.0 1530 alpha
Machine: alpha
host: alpha-dec-osf4.0g
build: alpha-dec-osf4.0g
target: alpha-dec-osf4.0g
configured with: ../gcc-3.2/configure --with-stabs --enable-languages=c,c++,f77,java
>Description:
On the alpha, it seems HAVE_SYS_STAT_H is not being set properly. When I
build ("make bootstrap" followed by "make install"), I get the following
error:
/usr2/sys/usr/local/src/b/gcc/xgcc -B/usr2/sys/usr/local/src/b/gcc/ -B/usr/local/alpha-dec-osf4.0g/bin/ -B/usr/local/alpha-dec-osf4.0g/lib/ -isystem /usr/local/alpha-dec-osf4.0g/include -c -DHAVE_CONFIG_H -g -I. -I../../../gcc-3.2/libiberty/../include -W -Wall -Wtraditional -pedantic ../../../gcc-3.2/libiberty/getpwd.c
../../../gcc-3.2/libiberty/getpwd.c: In function `getpwd':
../../../gcc-3.2/libiberty/getpwd.c:74: storage size of `dotstat' isn't known
../../../gcc-3.2/libiberty/getpwd.c:74: storage size of `pwdstat' isn't known
../../../gcc-3.2/libiberty/getpwd.c:78: warning: implicit declaration of function `getenv'
../../../gcc-3.2/libiberty/getpwd.c:78: warning: assignment makes pointer from integer without a cast
../../../gcc-3.2/libiberty/getpwd.c:80: warning: implicit declaration of function `stat'
../../../gcc-3.2/libiberty/getpwd.c:86: warning: implicit declaration of function `getcwd'
../../../gcc-3.2/libiberty/getpwd.c:89: warning: implicit declaration of function `free'
../../../gcc-3.2/libiberty/getpwd.c:74: warning: unused variable `dotstat'
../../../gcc-3.2/libiberty/getpwd.c:74: warning: unused variable `pwdstat'
*** Exit 1
Stop.
*** Exit 1
Stop.
I then edited getpwd.c to change the line
#if HAVE_SYS_STAT_H
to
#if 1
and getpwd.c builds just fine.
>How-To-Repeat:
"make bootstrap" (which requires a number of fixes for Digial Unix; see
earlier PR'S) followed by "make install".
>Fix:
See description.
>Release-Note:
>Audit-Trail:
>Unformatted: