This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
bootstrap/5275: stat.h parse error in fdmatch.c on Solaris 2.8
- From: Laszlo dot Megyeri at eth dot ericsson dot se
- To: gcc-gnats at gcc dot gnu dot org
- Date: 4 Jan 2002 16:12:39 -0000
- Subject: bootstrap/5275: stat.h parse error in fdmatch.c on Solaris 2.8
- Reply-to: Laszlo dot Megyeri at eth dot ericsson dot se
>Number: 5275
>Category: bootstrap
>Synopsis: stat.h parse error in fdmatch.c on Solaris 2.8
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 04 08:16:03 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Laszlo.Megyeri@eth.ericsson.se
>Release: gcc 3.0.3
>Organization:
>Environment:
SunOS duna261 5.8 Generic_108528-12 sun4u sparc SUNW,Ultra-5_10
>Description:
I would have like to compile gcc 3.0.3 on Solaris 8:
config command was:
/mnt/adm/gnuowner/w1/gcc-3.0.2/configure --prefix=/usr/local/gnu/gcc3.0.3_test --with-local-prefix=/usr/local/gnu/gcc3.0.3_test --srcdir=/mnt/adm/gnuowner/w1/gcc-3.0.2 --enable-shared --with-as=/usr/local/gnu/bin/as --with-ld=/usr/local/gnu/bin/ld --enable-threads --disable-target-optspace
Then the bootstrap command:
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap
It stoped with this massage:
make[1]: Entering directory `/mnt/adm/gnuowner/w1-obj/libiberty'
if [ x"`case '-g -O2 -g -O2 -fno-implicit-templates' in *-fpic* ) echo -fpic ;; * ) echo -fPIC ;; esac`" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I/mnt/adm/gnuowner/w1/gcc-3.0.2/libiberty/../include -W -Wall -Wtraditional -pedantic `case '-g -O2 -g -O2 -fno-implicit-templates' in *-fpic* ) echo -fpic ;; * ) echo -fPIC ;; esac` /mnt/adm/gnuowner/w1/gcc-3.0.2/libiberty/fdmatch.c -o pic/fdmatch.o; \
else true; fi
In file included from /mnt/adm/gnuowner/w1/gcc-3.0.2/libiberty/fdmatch.c:53:
/usr/include/sys/stat.h:258: parse error before "blksize_t"
/usr/include/sys/stat.h:262: parse error before '}' token
/usr/include/sys/stat.h:318: parse error before "blksize_t"
/usr/include/sys/stat.h:319: conflicting types for `st_blocks'
/usr/include/sys/stat.h:259: previous declaration of `st_blocks'
/usr/include/sys/stat.h:322: parse error before '}' token
/mnt/adm/gnuowner/w1/gcc-3.0.2/libiberty/fdmatch.c: In function `fdmatch':
/mnt/adm/gnuowner/w1/gcc-3.0.2/libiberty/fdmatch.c:59: storage size of `sbuf1' isn't known
/mnt/adm/gnuowner/w1/gcc-3.0.2/libiberty/fdmatch.c:60: storage size of `sbuf2' isn't known
/mnt/adm/gnuowner/w1/gcc-3.0.2/libiberty/fdmatch.c:59: warning: unused variable `sbuf1'
/mnt/adm/gnuowner/w1/gcc-3.0.2/libiberty/fdmatch.c:60: warning: unused variable `sbuf2'
make[1]: *** [fdmatch.o] Error 1
make[1]: Leaving directory `/mnt/adm/gnuowner/w1-obj/libiberty'
make: *** [all-libiberty] Error 2
>How-To-Repeat:
It is reproducable.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: