7.0 Unable to make buildworld in Sweden!

From: Martin Nilsson <martin_at_gneto.com>
Date: Tue, 16 Oct 2007 07:55:00 +0200
And probably in several other countries too...

If I add the following lines to the default profile in /etc/login.conf
         :charset=ISO8859-1:\
         :lang=sv_SE.ISO_8859-1:\

Awk will do something really strange when creating an options.h file 
when building gcc. The build ends with the error:

cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H 
-DPREFIX=\"/usr\" 
-I/usr/obj/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../cc_tools 
-I/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../cc_tools 
-I/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc 
-I/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config 
-I/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/include 
-I/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include 
-I/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber 
-g -DGENERATOR_FILE -DHAVE_CONFIG_H 
-I/usr/obj/home/FreeBSD/RELENG_7/src/tmp/legacy/usr/include -c 
/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype.c
In file included from ./tm.h:4,
                  from 
/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype.c:24:
./options.h:901: error: redeclaration of enumerator 'OPT_w'
./options.h:899: error: previous definition of 'OPT_w' was here
*** Error code 1

Stop in /home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools.
*** Error code 1

Stop in /home/FreeBSD/RELENG_7/src.
*** Error code 1

Stop in /home/FreeBSD/RELENG_7/src.
*** Error code 1

Stop in /home/FreeBSD/RELENG_7/src.


I think this file is created with src/contrib/gcc/opth-gen.awk

tail /usr/obj/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/options.h
   OPT_trigraphs,                             /* -trigraphs */
   OPT_undef,                                 /* -undef */
   OPT_w,                                     /* -w */
   OPT_v,                                     /* -v */
   OPT_w,                                     /* -w */
   OPT_version,                               /* -version */
   N_OPTS
};

#endif /* OPTIONS_H */


OPT_w is present twice! The awk script is supposed to remove duplicates 
and sort the result but it does not seem to work with our i18n support.


/Martin
Received on Tue Oct 16 2007 - 04:16:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:19 UTC