Help Needed with GCC 3.0 on 64-bit HPUX 11

John Jung jung@ugs.com
Tue Jun 26 18:09:00 GMT 2001


Hi All,

  I just got a new HP B2000 last week and installed HPUX 11i/11.11 (64-bit
TCOE) on it.  However for the life of me I can't get GCC 3.0 to build on it
at all.  I don't have HP's ANSI C compiler but I do want to do some
development work with Apache, WU-FTPD, Perl, etc.

  I've already successfully built make 3.79.1, sed 3.02, binutils 2.11.2,
bison 1.28, and flex 2.5.4a but GCC 3.0 eludes me.  My company has a
networked /usr/local, so I put all my binaries in /usr/local1.  Here are my
configure options:

configure --prefix=/usr/local1 --with-gnu-as --with-as=/usr/local1/bin/as

  I then do a "make bootstrap" and everything seems to go fine until:

stage1/xgcc -Bstage1/ -B/usr/local1/hppa2.0w-hp-hpux11.11/bin/ -c  -DIN_GCC
-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE   
-I. -I. -I. -I./. -I./config -I./../include \
        obstack.c -o obstack.o
In file included from obstack.c:43:
include/stdio.h:608: parse error before "va_list"
make[2]: *** [obstack.o] Error 1
make[2]: Leaving directory `/opt/tmp/opt/src/gcc-3.0/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/opt/tmp/opt/src/gcc-3.0/gcc'
make: *** [bootstrap] Error 2

  Here are the two lines above and below the line in question:

#  if defined(__STDC__) || defined(__cplusplus)
     extern int snprintf(char *, __size_t, const char *,...);
     extern int vsnprintf(char *, __size_t, const char *, __va__list);
     extern int vscanf(const char *, __gnuc_va_list);
     extern int vfscanf(__FILE *, const char *, __gnuc_va_list);

  I've tried GCC 2.95.3 (I know it's not supported), GCC 3.0, and GCC 3.0
20010625 (latest snapshot) and they all exhibit the same problem.  If I
replace gcc/include/stdio.h with /usr/include/stdio.h obstac.c compiles fine
but then I hit other compilation problems down the line with Java (and it's
not a good fix anyway).

  I've tried using the pre-compiled binaries at the HP Porting Center sites
but none of them work properly.  I've resorted to using a copy of GCC 2.95.2
that I built earlier this year on an HPUX 10.20 box.  It seems to work fine
(Perl only died on one test case) but I don't really trust it.

  Nothing in the GCC 3.0 docs talk about any problems (except to use binutils
2.11 or later, which I am).  I suspect that all the testing done on HPUX
11.00 was with 32-bit HPUX 11.00 only or they had the HP ANSI compiler, or
both.  I searched the mailing list and checked AltaVista for any pointers,
but no luck.

  Does anybody have any suggestions, hints, or ideas on how to fix this
problem?  Has anybody gotten GCC 3.0 to build successfully on a 64-bit HPUX
11.x box?

  Thanks for anyhelp you can provide.

						John

-- 
+----------------------------I speak for myself.----------------------------+
|   John Jung  (jung@ugs.com)         |   Unigraphics Solutions             |
|   Global Technical Access Center    |   10824 Hope Street, Cypress Pointe |
|   Operating Systems Group           |   Cypress, California 90630         |
+------------------------------(800) 955-0000-------------------------------+



More information about the Gcc-help mailing list