We are working to move the default version of GCC in ports (lang/gcc) from GCC 4.8 to GCC 4.9. Sadly this port is one of a few that blocks this update, cf. http://package22.nyi.freebsd.org/data/101amd64-default-PR196712/2015-10-25_21h38m31s/logs/errors/pure-stldict-0.5_4.log
According the error log and defines of llvm+clang, I think it's the define issue of gcc49, not lang/pure -- more /usr/include/c++/v1/cstddef -- #if defined(__CLANG_MAX_ALIGN_T_DEFINED) || defined(_GCC_MAX_ALIGN_T) // Re-use the compiler's <stddef.h> max_align_t where possible. using ::max_align_t; #else typedef long double max_align_t; #endif
(In reply to Vanilla I. Shu from comment #1) It's FreeBSD libc's issue, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193594
https://gcc.gnu.org/gcc-4.9/porting_to.html A workaround until libraries get updated is to include <cstddef> or <stddef.h> before any headers from that library.
Created attachment 165897 [details] diff-devel_pure-stldict This should it be, worked for me.
Forgot: I have made make makepatch, maybe you has delete the lines 1-11.
A commit references this bug: Author: vanilla Date: Thu Jan 21 06:43:09 UTC 2016 New revision: 406827 URL: https://svnweb.freebsd.org/changeset/ports/406827 Log: Fix build with gcc4.9. PR: 204385 Submitted by: gerald@, w.schwarzenfeld@aon.at Approved by: maintainer via twitter. Changes: head/devel/pure-stldict/files/patch-Makefile head/devel/pure-stldict/files/patch-hashdict.cc head/devel/pure-stldict/files/patch-orddict.cc
Hi: I make another patch base on origin one, and it works on my testing. thanks.
@Vanilla, please assign issue to yourself prior to commit, or at least on close. Also, re-opening this for MFH
A commit references this bug: Author: vanilla Date: Fri Jan 22 15:56:27 UTC 2016 New revision: 406935 URL: https://svnweb.freebsd.org/changeset/ports/406935 Log: MFH: r406819 r406827 r406927 1: Upgrade to 0.8. 2: remove USE_GCC, it's compilable with clang. 3: Fix broken MASTER_SITES. 4: Fix build with gcc4.9. PR: 204385 Submitted by: gerald@, w.schwarzenfeld@aon.at Approved by: portmgr@ (antoine) Changes: _U branches/2016Q1/ branches/2016Q1/devel/pure-ffi/Makefile branches/2016Q1/devel/pure-stldict/Makefile branches/2016Q1/devel/pure-stldict/distinfo branches/2016Q1/devel/pure-stldict/files/patch-Makefile branches/2016Q1/devel/pure-stldict/files/patch-hashdict.cc branches/2016Q1/devel/pure-stldict/files/patch-orddict.cc