Jason Bacon <bacon4000%gmail.com@localhost> writes:
> On 12/26/17 09:27, Takahiro Kambe wrote:
>> Hi,
>>
>> Is there anyone care for devel/glibmm requires gcc 4.9?
>>
> Are you suggesting the addition of a gcc49 dependency?
I noticed that glibmm has GCC_REQD of 4.8. It fails to build for me, on
nebsd-7 amd64. Does anybody know how to patch it cleanly to be ok, or
are we stuck choosing between it failing and changing to 4.9 (but
firefox already has that)?
===> Building for glibmm-2.54.1
/usr/pkg/bin/gmake all-recursive
gmake[1]: Entering directory '/u0/n0/gdt/NetBSD-current/pkgsrc/devel/glibmm/work/glibmm-2.54.1'
Making all in tools
gmake[2]: Entering directory '/u0/n0/gdt/NetBSD-current/pkgsrc/devel/glibmm/work/glibmm-2.54.1/tools'
CXX extra_defs_gen/generate_extra_defs.lo
extra_defs_gen/generate_extra_defs.cc: In function 'std::string get_property_with_node_name(GParamSpec*, const string&, const string&)':
extra_defs_gen/generate_extra_defs.cc:90:73: error: no matching function for call to 'regex_replace(const char*&, std::regex, const char [3])'
defString = std::regex_replace(defCString, std::regex("\n"), "\\n");
^
extra_defs_gen/generate_extra_defs.cc:90:73: note: candidates are:
In file included from /usr/include/g++/regex:62:0,
from extra_defs_gen/generate_extra_defs.cc:21:
/usr/include/g++/bits/regex.h:2162:5: note: template<class _Out_iter, class _Bi_iter, class _Rx_traits, class _Ch_type> _Out_iter std::regex_replace(_Out_iter, _Bi_iter, _Bi_iter, const std::basic_regex<_Ch_type, _Rx_traits>&, const std::basic_string<_Ch_type>&, std::regex_constants::match_flag_type)
regex_replace(_Out_iter __out, _Bi_iter __first, _Bi_iter __last,
^
/usr/include/g++/bits/regex.h:2162:5: note: template argument deduction/substitution failed:
extra_defs_gen/generate_extra_defs.cc:90:73: note: deduced conflicting types for parameter '_Bi_iter' ('std::basic_regex<char>' and 'const char*')
defString = std::regex_replace(defCString, std::regex("\n"), "\\n");
^
In file included from /usr/include/g++/regex:62:0,
from extra_defs_gen/generate_extra_defs.cc:21:
/usr/include/g++/bits/regex.h:2182:5: note: template<class _Rx_traits, class _Ch_type> std::basic_string<_Ch_type> std::regex_replace(const std::basic_string<_Ch_type>&, const std::basic_regex<_Ch_type, _Rx_traits>&, const std::basic_string<_Ch_type>&, std::regex_constants::match_flag_type)
regex_replace(const basic_string<_Ch_type>& __s,
^
/usr/include/g++/bits/regex.h:2182:5: note: template argument deduction/substitution failed:
extra_defs_gen/generate_extra_defs.cc:90:73: note: mismatched types 'const std::basic_string<_Ch_type>' and 'const char*'
defString = std::regex_replace(defCString, std::regex("\n"), "\\n");
^
Makefile:658: recipe for target 'extra_defs_gen/generate_extra_defs.lo' failed
gmake[2]: *** [extra_defs_gen/generate_extra_defs.lo] Error 1
gmake[2]: Leaving directory '/u0/n0/gdt/NetBSD-current/pkgsrc/devel/glibmm/work/glibmm-2.54.1/tools'
Makefile:711: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/u0/n0/gdt/NetBSD-current/pkgsrc/devel/glibmm/work/glibmm-2.54.1'
Makefile:507: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2
> I'm adding at least a gcc48 requirement to all my pkgsrc builds at
> this point, so this would be fine with me. Forcing gcc48 or better
> appears to add about 3000 successful pbulk builds on CentOS 6 vs using
> the stock GCC 4.4.7 from yum.
Sure - and what we end up doing about that is going to be a much
larger-scale change. And after the branch :-)
Attachment:
signature.asc
Description: PGP signature