bootstrap/5342: sparc-sun-solaris2.6 built 3.0.3 fails to bootstrap sparc-sun-solaris2.8 3.0.3: header problem

llib@computer.org llib@computer.org
Wed Jan 9 16:26:00 GMT 2002


>Number:         5342
>Category:       bootstrap
>Synopsis:       sparc-sun-solaris2.6 built 3.0.3 fails to bootstrap sparc-sun-solaris2.8 3.0.3: header problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 09 16:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Bill Clarke
>Release:        3.0.3
>Organization:
>Environment:
sparc-sun-solaris2.6 and sparc-sun-solaris2.8
>Description:
[Note: not really "bootstrap" category, but there isn't a fixincludes category?]
The fixincludes for 3.0.3 on sparc-sun-solaris2.6 produces a sys/types.h that is invalid for use on sparc-sun-solaris2.8 (e.g., on sparc-sun-solaris2.8 it needs to typedef blksize_t).  this makes it hard to use the sparc-sun-solaris2.6-built 3.0.3 to build anything that uses, e.g., fcntl.h, on sparc-sun-solaris2.8, including bootstrapping gcc 3.0.3.

this is the error i get:
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I/home/dcs/wpc/bullet/incoming/gcc-3.0.3/libiberty/../include  -W -Wall -Wtraditional -pedantic /home/dcs/wpc/bullet/incoming/gcc-3.0.3/libiberty/fdmatch.c
In file included from /home/dcs/wpc/bullet/incoming/gcc-3.0.3/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
/home/dcs/wpc/bullet/incoming/gcc-3.0.3/libiberty/fdmatch.c: In function `fdmatch':
/home/dcs/wpc/bullet/incoming/gcc-3.0.3/libiberty/fdmatch.c:59: storage size of `sbuf1' isn't known
/home/dcs/wpc/bullet/incoming/gcc-3.0.3/libiberty/fdmatch.c:60: storage size of `sbuf2' isn't known
/home/dcs/wpc/bullet/incoming/gcc-3.0.3/libiberty/fdmatch.c:59: warning: unused variable `sbuf1'
/home/dcs/wpc/bullet/incoming/gcc-3.0.3/libiberty/fdmatch.c:60: warning: unused variable `sbuf2'
gmake[1]: *** [fdmatch.o] Error 1
>How-To-Repeat:
- build and install 3.0.3 on sparc-sun-solaris2.6
- export that directory to a sparc-sun-solaris2.8 host
- try and bootstrap 3.0.3 with the 2.6-built 3.0.3.
>Fix:
workaround is to build both 2.6 and 2.8 versions, using Sun's cc to bootstrap
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list