Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2018 16:00:49 +0000
From:      tech-lists <tech-lists@zyxst.net>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        FreeBSD Ports ML <freebsd-ports@freebsd.org>
Subject:   Re: devel/arm-none-eabi-gcc fails to build on 11-stable
Message-ID:  <85e342ab-4ced-3319-40d0-8e823e382e26@zyxst.net>
In-Reply-To: <593FC9F6-D2E5-4524-9F65-FF494B12640F@FreeBSD.org>
References:  <e32e6e7f-842e-7a03-5f90-6e0fb07f7682@zyxst.net> <E7EE7372-5128-4FE0-8C12-1A4CA34E6CD2@FreeBSD.org> <593FC9F6-D2E5-4524-9F65-FF494B12640F@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 15/03/2018 10:26, Dimitry Andric wrote:
> On 14 Mar 2018, at 23:07, Dimitry Andric <dim@FreeBSD.org> wrote:
>>
>> On 14 Mar 2018, at 14:46, tech-lists <tech-lists@zyxst.net> wrote:
> ...
>>> In file included from
>>> /usr/ports/devel/arm-none-eabi-gcc/work/gcc-6.3.0/gcc/genpreds.c:26:
>>> In file included from ./tm.h:17:
>>> ./options.h:5327:3: error: redefinition of enumerator 'OPT_C'
>>> OPT_C = 127,                               /* -C */
>>> ^
>>
>> Try building the port with LANG=C in your environment.  If I recall
>> correctly, this was some problem with sed in combination with non-C
>> language settings.
> 
> 
> See also: https://bugs.freebsd.org/215882
>      and: https://svnweb.freebsd.org/changeset/ports/431796
> 
> It looks like some of the gcc ports were not updated for this issue.

Hi Dimitry, thank you for your help.

It seems not just LANG=C was required because it failed if I just did
that. In the end, this was needed (shell is bash here)

mv /etc/make.conf /etc/make-20180315.conf
set LANG=C
export LANG
set LC_ALL=C
export LC_ALL

[then make clean && make install]

maybe I caused the problem. My make.conf usually has
USE_LOCALE=en_GB.UTF-8 in it. What should I do in this circumstance -
not use USE_LOCALE=en_GB.UTF-8 in /etc/make.conf or raise (or re-open if
I can) a/that bug report?

thanks again,
-- 
J.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?85e342ab-4ced-3319-40d0-8e823e382e26>