Created attachment 174934 [details] Include <new> in gcc/system.h During the exp-run for bug 212343, devel/arm-none-eabi-gcc492 encounters a similar problem as with bug 212465 for lang/gcc49, and bug 212696 for devel/avr-gcc, namely: In file included from /wrkdirs/usr/ports/devel/arm-none-eabi-gcc492/work/gcc-4.9.2/gcc/c/c-objc-common.c:33: In file included from /usr/include/c++/v1/new:70: /usr/include/c++/v1/exception:267:5: error: no member named 'fancy_abort' in namespace 'std::__1'; did you mean simply 'fancy_abort'? _VSTD::abort(); ^~~~~~~ This is because gcc's system.h redefines abort to fancy_abort, and then includes a number of C++ standard headers. I propose to fix this with the same patch as I submitted for bug 212465 and bug 212696.
We still need gcc492 to compile a few of the older uboot ports. Could a ports commit please commit this?
(In reply to Ian Lepore from comment #1) We don't need gcc 4.9.2 anymore for the old u-boot ports. They have all been updated. And if I've missed one, the compilation fix is trivial.
Let me help with this... After all, someone cared enough to create and provide a patch, and letting this sit isn't helpful nor encouraging.
A commit references this bug: Author: gerald Date: Sun Apr 16 02:40:18 UTC 2017 New revision: 438614 URL: https://svnweb.freebsd.org/changeset/ports/438614 Log: Copy files/patch-gcc_system.h over from lang/gcc49 to fix the build with libc++ 3.9.0. PR: 212804 Submitted by: dim Approved by: ian (maintainer) Changes: head/devel/arm-none-eabi-gcc492/files/patch-gcc_system.h
I applied the patch, thank you. As a note about this port, I recommend to not go for minor releases when it comes to GCC, but would have named this just arm-none-eabi-gcc49 (and updated to GCC 4.9.4 from 4.9.2).