Bug 1306677 - zinnia-0.06-27.fc24 FTBFS: no matching function for call to 'make_pair(const string&, zinnia::FeatureNode*&)'
zinnia-0.06-27.fc24 FTBFS: no matching function for call to 'make_pair(const ...
Status: CLOSED DUPLICATE of bug 1308267
Product: Fedora
Classification: Fedora
Component: zinnia (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Peng Wu
Fedora Extras Quality Assurance
https://koji.fedoraproject.org/koji/b...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-11 09:57 EST by Petr Pisar
Modified: 2016-02-16 23:18 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-02-16 23:18:05 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Petr Pisar 2016-02-11 09:57:21 EST
zinnia-0.06-27.fc24 fails to build in F24:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c trainer.cpp  -fPIC -DPIC -o .libs/trainer.o
[...]
trainer.cpp: In member function 'virtual bool zinnia::TrainerImpl::add(const zinnia::Character&)':
trainer.cpp:106:66: error: no matching function for call to 'make_pair(const string&, zinnia::FeatureNode*&)'
     x_.push_back(std::make_pair<std::string, FeatureNode *>(y, fn));
                                                                  ^
In file included from /usr/include/c++/6.0.0/bits/stl_algobase.h:64:0,
                 from /usr/include/c++/6.0.0/vector:60,
                 from trainer.cpp:8:
/usr/include/c++/6.0.0/bits/stl_pair.h:406:5: note: candidate: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
     make_pair(_T1&& __x, _T2&& __y)
     ^~~~~~~~~
/usr/include/c++/6.0.0/bits/stl_pair.h:406:5: note:   template argument deduction/substitution failed:
trainer.cpp:106:66: note:   cannot convert 'y' (type 'const string {aka const std::__cxx11::basic_string<char>}') to type 'std::__cxx11::basic_string<char>&&'
     x_.push_back(std::make_pair<std::string, FeatureNode *>(y, fn));
                                                                  ^

Difference between working and failing build root is:

libgcc 	5.3.1-3.fc24 	> 	6.0.0-0.5.fc24
	openssl-libs 	1:1.0.2e-5.fc24 	> 	1:1.0.2f-1.fc24
	krb5-libs 	1.14-18.fc24 	> 	1.14-19.fc24
	libstdc++ 	5.3.1-3.fc24 	> 	6.0.0-0.5.fc24
	filesystem 	3.2-35.fc24 	> 	3.2-36.fc24
	python3-dnf-plugins-core 	0.1.16-1.fc24 	> 	0.1.16-3.fc24
	rpm-build 	4.13.0-0.rc1.18.fc24 	> 	4.13.0-0.rc1.19.fc24
	elfutils-libs 	0.165-2.fc24 	> 	0.165-3.fc24
	dnf-plugins-core 	0.1.16-1.fc24 	> 	0.1.16-3.fc24
	rpm-libs 	4.13.0-0.rc1.18.fc24 	> 	4.13.0-0.rc1.19.fc24
	kernel-headers 	4.5.0-0.rc1.git0.2.... 	> 	4.5.0-0.rc1.git1.1....
	libtool-ltdl 	2.4.6-8.fc24 	> 	2.4.6-9.fc24
	rpm-plugin-selinux 	4.13.0-0.rc1.18.fc24 	> 	4.13.0-0.rc1.19.fc24
	gcc-c++ 	5.3.1-3.fc24 	> 	6.0.0-0.5.fc24
	rpm-python3 	4.13.0-0.rc1.18.fc24 	> 	4.13.0-0.rc1.19.fc24
	elfutils-libelf 	0.165-2.fc24 	> 	0.165-3.fc24
	elfutils 	0.165-2.fc24 	> 	0.165-3.fc24
	libstdc++-devel 	5.3.1-3.fc24 	> 	6.0.0-0.5.fc24
	gcc 	5.3.1-3.fc24 	> 	6.0.0-0.5.fc24
	rpm 	4.13.0-0.rc1.18.fc24 	> 	4.13.0-0.rc1.19.fc24
	file 	5.25-4.fc24 	> 	5.25-5.fc24
	rpm-build-libs 	4.13.0-0.rc1.18.fc24 	> 	4.13.0-0.rc1.19.fc24
	file-libs 	5.25-4.fc24 	> 	5.25-5.fc24
	go-srpm-macros 	2-4.fc24 	> 	2-5.fc24
	rpm-plugin-systemd-inhibit 	4.13.0-0.rc1.18.fc24 	> 	4.13.0-0.rc1.19.fc24
	cpp 	5.3.1-3.fc24 	> 	6.0.0-0.5.fc24
	elfutils-default-yama-scope 	0.165-2.fc24 	> 	0.165-3.fc24
	gcc-gdb-plugin 	5.3.1-3.fc24 	> 	6.0.0-0.5.fc24
	libgomp 	5.3.1-3.fc24 	> 	6.0.0-0.5.fc24
Comment 1 Peng Wu 2016-02-16 23:18:05 EST

*** This bug has been marked as a duplicate of bug 1308267 ***

Note You need to log in before you can comment on or make changes to this bug.