Bug#831082: clanlib: FTBFS with GCC 6: IOData/Generic/datafile_inputprovider.h:147:48: error: no matching function for call to 'make_pair(int&, int&)'

Lucas Nussbaum lucas at debian.org
Thu Jul 14 06:51:06 UTC 2016


Source: clanlib
Version: 1.0~svn3827-5
Severity: serious
Tags: stretch sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20160713 qa-ftbfs
Justification: FTBFS with GCC 6 on amd64

Hi,

During a rebuild of all packages in sid using the gcc-defaults package
available in experimental to make GCC default to version 6, your package failed
to build on amd64. For more information about GCC 6 and Stretch, see:
- https://wiki.debian.org/GCC6
- https://lists.debian.org/debian-devel-announce/2016/06/msg00007.html

Relevant part (hopefully):
> /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"ClanLib\ 1.0.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"1.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DHAVE_SYS_SYSCTL_H=1 -DUSE_DYN=1 -DHAVE_FSTAB_H=1 -DEXTERN___PROGNAME=1 -DHAVE_LIBZ=1 -DHAVE_LIBSDL_GFX=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DHAVE_LINUX_JOYSTICK_H=1 -DHAVE_LINUX_INPUT_H=1 -DHAVE_SYS_SOUNDCARD_H=1 -DHAVE_ALSA_ASOUNDLIB_H=1 -DUSE_GETADDR=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/X11  -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DDEBUG=1  -I../../Sources -MT IOData/Generic/datafile_inputprovider.lo -MD -MP -MF $depbase.Tpo -c -o IOData/Generic/datafile_inputprovider.lo IOData/Generic/datafile_inputprovider.cpp &&\
> mv -f $depbase.Tpo $depbase.Plo
> libtool: compile:  g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"1.0.0\" "-DPACKAGE_STRING=\"ClanLib 1.0.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"1.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DHAVE_SYS_SYSCTL_H=1 -DUSE_DYN=1 -DHAVE_FSTAB_H=1 -DEXTERN___PROGNAME=1 -DHAVE_LIBZ=1 -DHAVE_LIBSDL_GFX=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DHAVE_LINUX_JOYSTICK_H=1 -DHAVE_LINUX_INPUT_H=1 -DHAVE_SYS_SOUNDCARD_H=1 -DHAVE_ALSA_ASOUNDLIB_H=1 -DUSE_GETADDR=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/X11 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DDEBUG=1 -I../../Sources -MT IOData/Generic/datafile_inputprovider.lo -MD -MP -MF IOData/Generic/.deps/datafile_inputprovider.Tpo -c IOData/Generic/datafile_inputprovider.cpp  -fPIC -DPIC -o IOData/Generic/.libs/datafile_inputprovider.o
> In file included from IOData/Generic/datafile_inputprovider.cpp:31:0:
> IOData/Generic/datafile_inputprovider.h: In member function 'void CL_InputSourceProvider_Datafile::IndexLocationCache::insert(const string&, int, int)':
> IOData/Generic/datafile_inputprovider.h:147:48: error: no matching function for call to 'make_pair(int&, int&)'
>      std::make_pair<int,int>(data_pos, data_size)));
>                                                 ^
> In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
>                  from /usr/include/c++/6/list:60,
>                  from ../../Sources/API/Signals/slot_generic.h:50,
>                  from ../../Sources/API/Signals/slot_v0.h:40,
>                  from ../../Sources/API/Signals/signal_v0.h:47,
>                  from ../../Sources/API/signals.h:49,
>                  from ../../Sources/Core/precomp.h:46,
>                  from IOData/Generic/datafile_inputprovider.cpp:30:
> /usr/include/c++/6/bits/stl_pair.h:425: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/bits/stl_pair.h:425:5: note:   template argument deduction/substitution failed:
> In file included from IOData/Generic/datafile_inputprovider.cpp:31:0:
> IOData/Generic/datafile_inputprovider.h:147:48: note:   cannot convert 'data_pos' (type 'int') to type 'int&&'
>      std::make_pair<int,int>(data_pos, data_size)));
>                                                 ^
> IOData/Generic/datafile_inputprovider.cpp: In member function 'void CL_InputSourceProvider_Datafile::open()':
> IOData/Generic/datafile_inputprovider.cpp:106:39: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
>   ::read(datafile_handle, temp, id_len);
>                                        ^
> IOData/Generic/datafile_inputprovider.cpp: In member function 'void CL_InputSourceProvider_Datafile::load_resource_ids()':
> IOData/Generic/datafile_inputprovider.cpp:128:50: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
>   ::read(datafile_handle, &index_pos, sizeof(int));
>                                                   ^
> IOData/Generic/datafile_inputprovider.cpp:132:52: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
>   ::read(datafile_handle, &num_indexes, sizeof(int));
>                                                     ^
> IOData/Generic/datafile_inputprovider.cpp:136:49: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
>    ::read(datafile_handle, &length,sizeof(short));
>                                                  ^
> IOData/Generic/datafile_inputprovider.cpp:142:43: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
>    ::read(datafile_handle, objname, length);
>                                            ^
> IOData/Generic/datafile_inputprovider.cpp:143:48: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
>    ::read(datafile_handle, &objpos, sizeof(int));
>                                                 ^
> IOData/Generic/datafile_inputprovider.cpp:144:49: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
>    ::read(datafile_handle, &objsize, sizeof(int));
>                                                  ^
> IOData/Generic/datafile_inputprovider.cpp: In member function 'virtual void CL_InputSource_Datafile::open()':
> IOData/Generic/datafile_inputprovider.cpp:217:53: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
>    ::read(datafile_handle, &compressed, sizeof(char));
>                                                      ^
> make[3]: *** [IOData/Generic/datafile_inputprovider.lo] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2016/07/13/clanlib_1.0~svn3827-5_unstable_gcc6.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-games-devel mailing list