Bug#831078: supercollider-sc3-plugins: FTBFS with GCC 6: DWG.hpp:1271:53: error: no matching function for call to 'min(float, double)'

Lucas Nussbaum lucas at debian.org
Thu Jul 14 07:27:40 UTC 2016


Source: supercollider-sc3-plugins
Version: 3.7.1~repack-1
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):
> make[3]: Entering directory '/«PKGBUILDDIR»/obj-x86_64-linux-gnu'
> [ 26%] Building CXX object source/CMakeFiles/DWGPlucked.dir/DWGUGens/DWGPlucked.cpp.o
> cd "/«PKGBUILDDIR»/obj-x86_64-linux-gnu/source" && /usr/bin/c++   -DDWGPlucked_EXPORTS -DNOVA_SIMD -DSYSTEM_STK -I"/«PKGBUILDDIR»/external_libraries/nova-simd" -I"/«PKGBUILDDIR»/include" -I"/«PKGBUILDDIR»/source/scfft_old" -I/usr/include/SuperCollider/common -I/usr/include/SuperCollider/plugin_interface -I/usr/include/SuperCollider/include/plugin_interface -I/usr/include/SuperCollider/include/common -I/usr/include/SuperCollider/server/plugins -I/usr/include/SuperCollider/common/Headers/plugin_interface -I/usr/include/SuperCollider/common/Headers/common -I/usr/include/SuperCollider/common/Source/plugins -I/usr/include/SuperCollider/external_libraries/libsndfile -I"/«PKGBUILDDIR»/source/DEINDUGens/include" -I/usr/include/stk -I"/«PKGBUILDDIR»/source/AYUGens/AY_libayemu/include"  -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -msse -msse2 -mfpmath=sse -std=c++11 -O3 -DNDEBUG -fPIC   -fvisibility=hidden -o CMakeFiles/DWGPlucked.dir/DWGUGens/DWGPlucked.cpp.o -c "/«PKGBUILDDIR»/source/DWGUGens/DWGPlucked.cpp"
> In file included from /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.cpp:19:0,
>                  from /«PKGBUILDDIR»/source/DWGUGens/DWGPlucked.cpp:19:
> /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.hpp: In member function 'void TUBE::set_area(float, float)':
> /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.hpp:1271:53: error: no matching function for call to 'min(float, double)'
>              loss = 1.0 - std::min(lossF/sqrt(a1),1.0);
>                                                      ^
> In file included from /usr/include/c++/6/algorithm:61:0,
>                  from /usr/include/SuperCollider/common/SC_BoundsMacros.h:26,
>                  from /usr/include/SuperCollider/plugin_interface/SC_RGen.h:54,
>                  from /usr/include/SuperCollider/plugin_interface/SC_World.h:28,
>                  from /usr/include/SuperCollider/plugin_interface/SC_PlugIn.h:24,
>                  from /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.hpp:22,
>                  from /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.cpp:19,
>                  from /«PKGBUILDDIR»/source/DWGUGens/DWGPlucked.cpp:19:
> /usr/include/c++/6/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
>      min(const _Tp& __a, const _Tp& __b)
>      ^~~
> /usr/include/c++/6/bits/stl_algobase.h:195:5: note:   template argument deduction/substitution failed:
> In file included from /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.cpp:19:0,
>                  from /«PKGBUILDDIR»/source/DWGUGens/DWGPlucked.cpp:19:
> /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.hpp:1271:53: note:   deduced conflicting types for parameter 'const _Tp' ('float' and 'double')
>              loss = 1.0 - std::min(lossF/sqrt(a1),1.0);
>                                                      ^
> In file included from /usr/include/c++/6/algorithm:61:0,
>                  from /usr/include/SuperCollider/common/SC_BoundsMacros.h:26,
>                  from /usr/include/SuperCollider/plugin_interface/SC_RGen.h:54,
>                  from /usr/include/SuperCollider/plugin_interface/SC_World.h:28,
>                  from /usr/include/SuperCollider/plugin_interface/SC_PlugIn.h:24,
>                  from /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.hpp:22,
>                  from /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.cpp:19,
>                  from /«PKGBUILDDIR»/source/DWGUGens/DWGPlucked.cpp:19:
> /usr/include/c++/6/bits/stl_algobase.h:243:5: note: candidate: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
>      min(const _Tp& __a, const _Tp& __b, _Compare __comp)
>      ^~~
> /usr/include/c++/6/bits/stl_algobase.h:243:5: note:   template argument deduction/substitution failed:
> In file included from /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.cpp:19:0,
>                  from /«PKGBUILDDIR»/source/DWGUGens/DWGPlucked.cpp:19:
> /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.hpp:1271:53: note:   deduced conflicting types for parameter 'const _Tp' ('float' and 'double')
>              loss = 1.0 - std::min(lossF/sqrt(a1),1.0);
>                                                      ^
> In file included from /usr/include/c++/6/algorithm:62:0,
>                  from /usr/include/SuperCollider/common/SC_BoundsMacros.h:26,
>                  from /usr/include/SuperCollider/plugin_interface/SC_RGen.h:54,
>                  from /usr/include/SuperCollider/plugin_interface/SC_World.h:28,
>                  from /usr/include/SuperCollider/plugin_interface/SC_PlugIn.h:24,
>                  from /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.hpp:22,
>                  from /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.cpp:19,
>                  from /«PKGBUILDDIR»/source/DWGUGens/DWGPlucked.cpp:19:
> /usr/include/c++/6/bits/stl_algo.h:3447:5: note: candidate: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)
>      min(initializer_list<_Tp> __l)
>      ^~~
> /usr/include/c++/6/bits/stl_algo.h:3447:5: note:   template argument deduction/substitution failed:
> In file included from /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.cpp:19:0,
>                  from /«PKGBUILDDIR»/source/DWGUGens/DWGPlucked.cpp:19:
> /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.hpp:1271:53: note:   mismatched types 'std::initializer_list<_Tp>' and 'float'
>              loss = 1.0 - std::min(lossF/sqrt(a1),1.0);
>                                                      ^
> In file included from /usr/include/c++/6/algorithm:62:0,
>                  from /usr/include/SuperCollider/common/SC_BoundsMacros.h:26,
>                  from /usr/include/SuperCollider/plugin_interface/SC_RGen.h:54,
>                  from /usr/include/SuperCollider/plugin_interface/SC_World.h:28,
>                  from /usr/include/SuperCollider/plugin_interface/SC_PlugIn.h:24,
>                  from /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.hpp:22,
>                  from /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.cpp:19,
>                  from /«PKGBUILDDIR»/source/DWGUGens/DWGPlucked.cpp:19:
> /usr/include/c++/6/bits/stl_algo.h:3453:5: note: candidate: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)
>      min(initializer_list<_Tp> __l, _Compare __comp)
>      ^~~
> /usr/include/c++/6/bits/stl_algo.h:3453:5: note:   template argument deduction/substitution failed:
> In file included from /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.cpp:19:0,
>                  from /«PKGBUILDDIR»/source/DWGUGens/DWGPlucked.cpp:19:
> /«PKGBUILDDIR»/source/DWGUGens/dwglib/DWG.hpp:1271:53: note:   mismatched types 'std::initializer_list<_Tp>' and 'float'
>              loss = 1.0 - std::min(lossF/sqrt(a1),1.0);
>                                                      ^
> make[3]: *** [source/CMakeFiles/DWGPlucked.dir/DWGUGens/DWGPlucked.cpp.o] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2016/07/13/supercollider-sc3-plugins_3.7.1~repack-1_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-multimedia-maintainers mailing list