Subject: gcc 2.95 on netbsd alpha
To: None <port-alpha@netbsd.org>
From: Tobias Ernst <tobi@bland.fido.de>
List: port-alpha
Date: 10/16/2000 13:53:32
Hallo!

Has anyone managed to get gcc 2.95 going on NetBSD/Alpha? I know that
the pkgsrc Makefile says Alpha is not supported, but I need gcc 2.95 to
compile an application that requires the latest C++ features. So I
overrided this check in the makefile (by adding alpha to the list of
supported platfroms) and compiled. It failed at this point:

cc -c  -DIN_GCC -DHAIFA    -O2  -DHAVE_CONFIG_H  \
(lots of define and include stuff deleted)
  /usr/pkgsrc/lang/gcc/work/gcc-2.95.2/gcc/protoize.c
In file included from /usr/pkgsrc/lang/gcc/work/gcc-2.95.2/gcc/system.h:149,
                 from /usr/pkgsrc/lang/gcc/work/gcc-2.95.2/gcc/protoize.c:60:
/usr/include/unistd.h:270: syntax error before `fd_set'
/usr/include/unistd.h:302: syntax error before `u_long'
gmake[1]: *** [protoize.o] Error 1

To me it is completely nonobvious why it fails exactly at this point.
If it fails at these lines, my first guess would be that the __P macro
somehow didn't work, but on the other hand then there are many many
lines where it should fail as well in this file.

My system is a
holmes# uname -a
NetBSD holmes 1.4 NetBSD 1.4 (HOLMES-UK) #9: Mon Mar 20 15:54:39 MET
2000     root@holmes:/usr/src/sys/arch/alpha/compile/HOLMES-UK alpha

Maybe I'd need to upgrade to a newer NetBSD to get a prober unistd.h?

Viele Gr=FC=DFe,
Tobias