egcs-2.95-19990629 on HP-UX 11

James B. Byrne ByrneJB@Harte-Lyne.ca
Mon Jul 12 11:49:00 GMT 1999


I have done the following things for egcs on hpux11

1.	Create new gcc/pa/pa-hpux11.h file with the following changes from 
pa-hpux10.h

#define SIZE_T unsigned long
#define PTRDIFF_T long

2.	Modify gcc/configure.in to handle hpux-11.

3.	Hand include alteration to configure.in to gcc/configure.  I have 
not run autoconfig against the new configure.in file.

4.	Modified gcc/po/POTFILES.in to add reference to pa-hpux11.h

5.	#CC=cc egcssrc/.configure --with-gnu-as

6.	make bootstrap-lean

and this is what happens

In file included from include/stdlib.h:9,
                 from ../egcsrc/gcc/libgcc2.c:41:
include/sys/types.h:344: size of array `r' is too large
include/sys/types.h:345: size of array `val' is too large
include/sys/types.h:365: size of array `lbl_s' is too large
include/sys/types.h:366: size of array `lbl_ss' is too large
include/sys/types.h:367: size of array `lbl_sf' is too large
include/sys/types.h:377: size of array `lk_pad' is too large
In file included from include/sys/types.h:412,
                 from include/stdlib.h:9,
                 from ../egcsrc/gcc/libgcc2.c:41:
/usr/include/sys/_fd_macros.h:61: variable-size type declared outside of
any fun
ction
/usr/include/sys/_fd_macros.h:61: size of array `fds_bits' is too large
In file included from /usr/include/sys/time.h:15,
                 from /usr/include/sys/resource.h:26,
                 from /usr/include/sys/wait.h:83,
                 from include/stdlib.h:221,
                 from ../egcsrc/gcc/libgcc2.c:41:
/usr/include/sys/sigevent.h:70: size of array `__sigev_reserved' is too
large
In file included from /usr/include/sys/resource.h:26,
                 from /usr/include/sys/wait.h:83,
                 from include/stdlib.h:221,
                 from ../egcsrc/gcc/libgcc2.c:41:
/usr/include/sys/time.h:398: size of array `tzname' is too large
/usr/include/sys/time.h:484: size of array `amtimes' is too large
In file included from /usr/include/sys/signal.h:16,
                 from /usr/include/sys/wait.h:123,
                 from include/stdlib.h:221,
                 from ../egcsrc/gcc/libgcc2.c:41:
/usr/include/sys/siginfo.h:72: size of array `__pad' is too large
In file included from /usr/include/sys/signal.h:17,
                 from /usr/include/sys/wait.h:123,
                 from include/stdlib.h:221,
                 from ../egcsrc/gcc/libgcc2.c:41:
/usr/include/sys/newsig.h:26: size of array `sigset' is too large
In file included from /usr/include/sys/newsig.h:43,
                 from /usr/include/sys/signal.h:17,
                 from /usr/include/sys/wait.h:123,
                 from include/stdlib.h:221,
                 from ../egcsrc/gcc/libgcc2.c:41:
/usr/include/machine/save_state.h:420: size of array `ss_reserved' is too
large
/usr/include/machine/save_state.h:429: size of array `ss_reserved' is too
large
/usr/include/machine/save_state.h:550: size of array `ss_reserved2' is too
large

/usr/include/machine/save_state.h:650: size of array `ss_xor' is too
large
In file included from /usr/include/sys/signal.h:17,
                 from /usr/include/sys/wait.h:123,
                 from include/stdlib.h:221,
                 from ../egcsrc/gcc/libgcc2.c:41:
/usr/include/sys/newsig.h:80: size of array `uc_spares' is too large
In file included from /usr/include/sys/wait.h:123,
                 from include/stdlib.h:221,
                 from ../egcsrc/gcc/libgcc2.c:41:
/usr/include/sys/signal.h:545: size of array `sm_arg' is too large
/usr/include/sys/signal.h:619: size of array `sc_args' is too large
In file included from /usr/include/pwd.h:79,
                 from include/stdlib.h:317,
                 from ../egcsrc/gcc/libgcc2.c:41:
include/stdio.h:61: size of array `__smbuf' is too large
In file included from /usr/include/unistd.h:11,
                 from ../egcsrc/gcc/libgcc2.c:42:
/usr/include/sys/unistd.h:197: size of array `type name' is too large
make[4]: *** [libgcc2.a] Error 1
make[4]: Leaving directory
`/usr/local/opt/gnu/gcc/obj/egcs-19990629/gcc'
make[3]: *** [stmp-multilib-sub] Error 2
make[3]: Leaving directory
`/usr/local/opt/gnu/gcc/obj/egcs-19990629/gcc'
make[2]: *** [stmp-multilib] Error 1
make[2]: Leaving directory
`/usr/local/opt/gnu/gcc/obj/egcs-19990629/gcc'
make[1]: *** [bootstrap-lean] Error 2
make[1]: Leaving directory
`/usr/local/opt/gnu/gcc/obj/egcs-19990629/gcc'
make: *** [bootstrap-lean] Error 2
# 


Now I presume that this is due to the fact that HP-UX 11 is running 
on a 32 bit machine, so that while size_t and ptrdiff_t are set to 64 
bit integers, the physical address space is still only 32 bit.  So my 
questions are:

one.  How does one determine if the hardware is actually 64 bit 
native?  Is this given by the hppa number (hppa-2.?) 

two.  How do I handle the 32 bit limitation when the OS supports 64 
bits?

three.	If I was building on a 64 bit architecture, would these errors 
go away?

A bit of guidence would be appreciated here.

Regards,
Jim


--
James B. Byrne                      ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited                http://www.harte-lyne.ca
9 Brockley Drive       
Hamilton, Ontario                   fax:+1 905 561 0757
Canada    L8E 3C3                   vox:+1 905 561 1241


More information about the Gcc-bugs mailing list