Error while 'make buildworld'
Michal Mertl
mime at traveller.cz
Mon Aug 13 01:23:01 PDT 2007
Trigve Siver wrote:
> Hi all,
>
> I'm trying to compile freebsd current (to test PMC) from cvs... But when I try to 'make buildworld' it throw me this error:
> //--------------
> ...
> /usr/local/libexec/ccache/world-cc -O1 -pipe -O2 -pipe -s -O2 -pipe -s -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber -g -DGENERATOR_FILE -DHAVE_CONFIG_H -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype.c
> In file included from ./tm.h:4,
> from /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype.c:24:
> ./options.h:375: error: redeclaration of enumerator `OPT_d'
> ./options.h:373: error: previous definition of 'OPT_d' was here
> ./options.h:898: error: redeclaration of enumerator `OPT_w'
> ./options.h:896: error: previous definition of 'OPT_w' was here
> *** Error code 1
>
> Stop in /usr/src/gnu/usr.bin/cc/cc_tools.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
> //-----------------
>
> uname:
>
> FreeBSD pentium4.domain 6.2-STABLE FreeBSD 6.2-STABLE #0: Sat Aug 11
> 12:16:01 UTC 2007
> dodes at pentium4.domain:/usr/obj/usr/src/sys/CUSTOM i386
>
> I've tried to search the net but haven't found anything.
I encounter the problem too and I am quite certain it is cause by the
locale settings (at least in my case).
As src/UPDATING suggests, you should build with "sanitized" environment
(e.g. precede your build sesssion by 'env -i' or unset LC_* or LANG or
similar.
HTH
Michal
More information about the freebsd-current
mailing list