devel/arm-none-eabi-gcc fails to build on 11-stable

Dimitry Andric dim at FreeBSD.org
Wed Mar 14 22:07:19 UTC 2018


On 14 Mar 2018, at 14:46, tech-lists <tech-lists at zyxst.net> wrote:
> 
> context:
> Working Copy Root Path: /usr/ports
> URL: https://svn.freebsd.org/ports/head
> Relative URL: ^/head
> Repository Root: https://svn.freebsd.org/ports
> Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
> Revision: 464450
> 
> $ uname -KU
> 1101509 1101509
> 
> devel/arm-none-eabi-gcc fails to build:
> 
> gmake[2]: Entering directory
> '/usr/ports/devel/arm-none-eabi-gcc/work/.build/gcc'
> c++ -c   -fbracket-depth=512 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE
> -fno-strict-aliasing -fno-exceptions -fno-rtti
> -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
> -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
> -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
> -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -I. -Ibuild
> -I/usr/ports/devel/arm-none-eabi-gcc/work/gcc-6.3.0/gcc
> -I/usr/ports/devel/arm-none-eabi-gcc/work/gcc-6.3.0/gcc/build
> -I/usr/ports/devel/arm-none-eabi-gcc/work/gcc-6.3.0/gcc/../include
> -I/usr/ports/devel/arm-none-eabi-gcc/work/gcc-6.3.0/gcc/../libcpp/include
> -DLIBICONV_PLUG \
> 	-o build/genpreds.o
> /usr/ports/devel/arm-none-eabi-gcc/work/gcc-6.3.0/gcc/genpreds.c
> c++: warning: treating 'c' input as 'c++' when in C++ mode, this
> behavior is deprecated [-Wdeprecated]
> In file included from
> /usr/ports/devel/arm-none-eabi-gcc/work/gcc-6.3.0/gcc/genpreds.c:25:
> /usr/ports/devel/arm-none-eabi-gcc/work/gcc-6.3.0/gcc/coretypes.h:62:1:
> warning: class 'rtx_def' was previously declared as a struct
> [-Wmismatched-tags]
> class rtx_def;
> ^
> /usr/ports/devel/arm-none-eabi-gcc/work/gcc-6.3.0/gcc/coretypes.h:55:8:
> note: previous use is here
> struct rtx_def;
>       ^
> 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.

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20180314/830bb1a4/attachment.sig>


More information about the freebsd-ports mailing list