hpux 11.11 build
Michael Eager
eager@mvista.com
Fri Aug 24 16:00:00 GMT 2001
The lines at floatformat.c:24-25:
extern void *memcpy (void *s1, const void *s2, size_t n);
extern void *memset (void *s, int c, size_t n);
The error message says that there was a parse error before "size_t"
in both of these lines. There may be a macro which is causing a
error before the "size_t" token.
Compile by hand, replacing the -c command line option with -E to
see the preprocessor output. Direct the output to floatformat.i,
rather than the normal object file.
Take a look at the preprocessed source and see exactly what the compiler
is complaining about in these two lines.
Gary Bell wrote:
>
> I have been trying to Build gcc-3.0 on a HPUX 11.11 workstation. I have
> run
> in to several problems and have have a developer friend to help me
> with the
> compilation. I have gotten stuck on this part of the build and not
> being
> very C literate, have been told to post this information here to see
> if you
> had any insight as to how I can overcome this message.
>
> Thank you,
> Gary Bell
>
> ---snip---
>
> if [ x"" != x ]; then \
> /temp/gcc-3.0/gcc/xgcc -B/temp/gcc-3.0/gcc/
> -B/usr/local/gcc-3.0/hppa1.1-hp-hpux11.11/bin/
> -B/usr/local/gcc-3.0/hppa1.1-hp-hpux11.11/lib/ -isystem
> /usr/local/gcc-3.0/hppa1.1-hp-hpux11.11/include -c -DHAVE_CONFIG_H -g
> -O2
> -I. -I./../../include -W -Wall -Wtraditional -pedantic floatformat.c
> -o
> pic/floatformat.o; \
> else true; fi
> /temp/gcc-3.0/gcc/xgcc -B/temp/gcc-3.0/gcc/
> -B/usr/local/gcc-3.0/hppa1.1-hp-hpux11.11/bin/
> -B/usr/local/gcc-3.0/hppa1.1-hp-hpux11.11/lib/ -isystem
> /usr/local/gcc-3.0/hppa1.1-hp-hpux11.11/include -c -DHAVE_CONFIG_H -g
> -O2
> -I. -I./../../include -W -Wall -Wtraditional -pedantic floatformat.c
> floatformat.c:24: parse error before "size_t"
> floatformat.c:25: parse error before "size_t"
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
--
Michael Eager eager@mvista.com 408-328-8426
MontaVista Software, Inc. 1237 E. Arques Ave., Sunnyvale, CA 94085
More information about the Gcc
mailing list