[Pkg-crosswire-devel] Bug#778183: xiphos: ftbfs with GCC-5

Brett Johnson brett at hp.com
Sat Jul 11 00:37:10 BST 2015


tags 778183 +patch
thanks

gcc5 makes exceeding the max template instantiation depth a fatal error, rather
than a warning, and the previous max depth of 25 was insufficient. Simply
increasing the debug maximum to 250 fixes the problem.


--- xiphos-3.2.2+dfsg1.orig/wscript
+++ xiphos-3.2.2+dfsg1/wscript
@@ -199,8 +199,8 @@ def configure(conf):
         env['CXXFLAGS']            = []
         env['CXXFLAGS_OPTIMIZED']  = ['-O2']
         env['CXXFLAGS_RELEASE']    = ['-O2']
-        env['CXXFLAGS_DEBUG']      = ['-g', '-DDEBUG', '-ftemplate-depth-25']
-        env['CXXFLAGS_ULTRADEBUG'] = ['-g3', '-O0', '-DDEBUG', '-ftemplate-depth-25']
+        env['CXXFLAGS_DEBUG']      = ['-g', '-DDEBUG', '-ftemplate-depth=250']
+        env['CXXFLAGS_ULTRADEBUG'] = ['-g3', '-O0', '-DDEBUG', '-ftemplate-depth=250']

     if env['IS_WIN32']:
         ## setup for Winsock on Windows (required for read-aloud)

-- 
Brett Johnson <brett at hp.com>




More information about the Pkg-crosswire-devel mailing list