Operating System - HP-UX
1834090 Members
2102 Online
110063 Solutions
New Discussion

Re: floatformat.c parse erorr when building GCC 3.3.2 HPUX 11.11

 
SOLVED
Go to solution
Vinnie Lima
Advisor

floatformat.c parse erorr when building GCC 3.3.2 HPUX 11.11

Hi,

I keep running into the following errors when compiling GCC 3.3.2 on hpux 11i (11.11):

make[1]: Entering directory `/opt/patches/gcc-3.3.2/libiberty'
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wtraditional -pedantic floatformat.c -o pic/floatformat.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wtraditional -pedantic floatformat.c -o floatformat.o
floatformat.c:24: error: parse error before "size_t"
floatformat.c:25: error: parse error before "size_t"
make[1]: *** [floatformat.o] Error 1
make[1]: Leaving directory `/opt/patches/gcc-3.3.2/libiberty'
make: *** [all-libiberty] Error 2


I am using standard configure line:

./configure --prefix=/opt/gcc

Here are the compiled versions of surrounding apps:

bison (GNU Bison) 1.875
flex version 2.5.4
GNU Make 3.80
binutils 2.11.2

I have GCC 3.3.2 binary installed but i want to build from source. (The binary was pulled from one of these hpux porting sites around).

My issue in using a binary install is not so much the prebuilt package but its because its installing under /usr/local NOT /opt (sorry, must adhere to a standard).

Thanks for any help.
Vinnie Lima
vlima@csc.com
6 REPLIES 6
H.Merijn Brand (procura
Honored Contributor
Solution

Re: floatformat.c parse erorr when building GCC 3.3.2 HPUX 11.11

But you are using a gcc build on/for 11.00 which causes exactly this problem.

Get my 11.11 port from https://www.beepz.com/personal/merijn/, http://www.cmve.net/~merijn/, or http://ww.hpux.ws/merijn/ which also includes a much more recent set of binutils

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Vinnie Lima
Advisor

Re: floatformat.c parse erorr when building GCC 3.3.2 HPUX 11.11

Gotcha, let me try it out and see if it helps.

Thanks,
v.
Vinnie Lima
Advisor

Re: floatformat.c parse erorr when building GCC 3.3.2 HPUX 11.11

Hm, where in the http://www.cmve.net/~merijn/ is the information?

v.
H.Merijn Brand (procura
Honored Contributor

Re: floatformat.c parse erorr when building GCC 3.3.2 HPUX 11.11

What information?

downloads in http://www.cmve.net/~merijn/#Downloads
instructions in http://www.cmve.net/~merijn/#gcc

that's all there is to it

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Vinnie Lima
Advisor

Re: floatformat.c parse erorr when building GCC 3.3.2 HPUX 11.11

Hi There,

I have followed your instructions on your website, but i'm running into a compile syntax error. Here are the commands run so far:

../src/configure \^J--enable-languages=c,c++ \
--prefix=/opt/gcc --with-local-prefix=/opt/gcc \
--with-gnu-as --with-as=/usr/local/pa20_64/bin/as \
--with-gnu-ld --with-ld=/usr/local/pa20_64/bin/ld \
--disable-shared \
--disable-nls \
--host=hppa64-hp-hpux11


Then executed:

make bootstrap-lean

and the following error occurred:

/bin/sh ../../src/gcc/mkconfig.sh tconfig.h
./xgcc -B./ -B/opt/gcc/hppa64-hp-hpux11.11/bin/ -isystem /opt/gcc/hppa64-hp-hpux11.11/include -isystem /opt/gcc/hppa64-hp-hpux11.11/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/config -I../../src/gcc/../include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss \
-c ../../src/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from include/stdio.h:24,
from ../../src/gcc/tsystem.h:72,
from ../../src/gcc/crtstuff.c:62:
include/sys/types.h:48: error: parse error before "sbsize64_t"
include/sys/types.h:49: error: parse error before "bsize64_t"
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/opt/patches/obj/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/opt/patches/obj/gcc'
make: *** [bootstrap-lean] Error 2


Any suggestions? i've read a couple of posts on this forum about modifying the types.h file but I am not sure which one i'm supposed to modify in my system.

Thanks,
Vinnie Lima
vlima@csc.com
Vinnie Lima
Advisor

Re: floatformat.c parse erorr when building GCC 3.3.2 HPUX 11.11

Problem solved.

The root of all evil was an incorrectly built make installation on my platform.

To remediate this, I used merijn's gcc binaries, and rebuilt make 3.80 from source on my platform.

Then i proceeded to recompile gcc from source using the gcc binary from merijn's website.

No errors, everything installed perfectly fine!

Thanks for all the help.

Vinnie Lima
vlima@csc.com


/opt/gcc/bin> ./gcc -v
Reading specs from ./../lib/gcc-lib/hppa64-hp-hpux11.11/3.3.2/specs
Configured with: ../src/configure --enable-languages=c,c++ --prefix=/opt/gcc --with-local-prefix=/opt/gcc --with-gnu-as --with-as=/usr/local/pa20_64/bin/as --with-gnu-ld --with-ld=/usr/local/pa20_64/bin/ld --disable-shared --disable-nls --host=hppa64-hp-hpux11.11
Thread model: single
gcc version 3.3.2