In order to build gcc 4.1.1 on HP-UX 10.20 I had to install GNU awk and also configure with --disable-threads. The vendor's awk did not build the options.h file correctly; the exact symptom was duplicated OPT_d and OPT_w symbols in the enum. Then, the build blew up when it tried to use pthreads (which don't exist on HP-UX 10.20, or at least not in a form that gcc expects).
Target: hppa2.0-hp-hpux10.20 Configured with: ../gcc-4.1.1/configure --prefix=/net/appl/gcc-4.1 --with-gnu-as --enable-languages=c,c++,java : (reconfigured) ../gcc-4.1.1/configure --prefix=/net/appl/gcc-4.1 --with-gnu-as --enable-languages=c,c++,java --disable-threads Thread model: single gcc version 4.1.1