[Pkg-ime-devel] Bug#811951: libucimf: FTBFS with GCC 6: unable to find string literal operator

Martin Michlmayr tbm at hpe.com
Wed Jan 20 03:59:06 UTC 2016


Package: libucimf
Version: 2.3.8-6
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-literal-operator

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> /bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  -I../include -I../include/imf -I../font  -I../display -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -c -o libucimf_la-options.lo `test -f 'options.cpp' || echo './'`options.cpp
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/imf -I../font -I../display -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -c options.cpp  -fPIC -DPIC -o .libs/libucimf_la-options.o
> In file included from options.cpp:29:0:
> options.cpp: In constructor 'Options::Options()':
> ../include/debug.h:6:93: error: unable to find string literal operator 'operator""format' with 'const char [9]', 'long unsigned int' arguments
>  #define UCIMF_DEBUG(format...)          {extern int LogFd; if( LogFd >=0 ){ dprintf( LogFd, "[DEBUG]:"format);} }
>                                                                                              ^
> 
> ../include/debug.h:9:28: note: in expansion of macro 'UCIMF_DEBUG'
>  #define UrDEBUG(format...) UCIMF_DEBUG(format)
>                             ^~~~~~~~~~~
> 
> options.cpp:50:3: note: in expansion of macro 'UrDEBUG'
>    UrDEBUG("Checking config file: %s \n", conf.c_str() );
>    ^~~~~~~
> 
> ../include/debug.h:6:93: error: unable to find string literal operator 'operator""format' with 'const char [9]', 'long unsigned int' arguments
>  #define UCIMF_DEBUG(format...)          {extern int LogFd; if( LogFd >=0 ){ dprintf( LogFd, "[DEBUG]:"format);} }
>                                                                                              ^
> 
> ../include/debug.h:9:28: note: in expansion of macro 'UCIMF_DEBUG'
>  #define UrDEBUG(format...) UCIMF_DEBUG(format)
>                             ^~~~~~~~~~~
> 
> options.cpp:53:5: note: in expansion of macro 'UrDEBUG'
>      UrDEBUG("Could not open config file: %s \n",conf.c_str() );
>      ^~~~~~~
> 
> ../include/debug.h:6:93: error: unable to find string literal operator 'operator""format' with 'const char [9]', 'long unsigned int' arguments
>  #define UCIMF_DEBUG(format...)          {extern int LogFd; if( LogFd >=0 ){ dprintf( LogFd, "[DEBUG]:"format);} }
>                                                                                              ^
> 
> ../include/debug.h:9:28: note: in expansion of macro 'UCIMF_DEBUG'
>  #define UrDEBUG(format...) UCIMF_DEBUG(format)
>                             ^~~~~~~~~~~
> 
> options.cpp:57:3: note: in expansion of macro 'UrDEBUG'
>    UrDEBUG("Checking config file: %s \n", conf.c_str() );
>    ^~~~~~~
> 
> ../include/debug.h:6:93: error: unable to find string literal operator 'operator""format' with 'const char [9]', 'long unsigned int' arguments
>  #define UCIMF_DEBUG(format...)          {extern int LogFd; if( LogFd >=0 ){ dprintf( LogFd, "[DEBUG]:"format);} }
>                                                                                              ^
> 
> ../include/debug.h:9:28: note: in expansion of macro 'UCIMF_DEBUG'
>  #define UrDEBUG(format...) UCIMF_DEBUG(format)
>                             ^~~~~~~~~~~
> 
> options.cpp:60:5: note: in expansion of macro 'UrDEBUG'
>      UrDEBUG("Could not open config file: %s \n", conf.c_str() );
>      ^~~~~~~
> 
> ../include/debug.h:6:93: error: unable to find string literal operator 'operator""format' with 'const char [9]', 'long unsigned int' arguments
>  #define UCIMF_DEBUG(format...)          {extern int LogFd; if( LogFd >=0 ){ dprintf( LogFd, "[DEBUG]:"format);} }
>                                                                                              ^
> 
> ../include/debug.h:9:28: note: in expansion of macro 'UCIMF_DEBUG'
>  #define UrDEBUG(format...) UCIMF_DEBUG(format)
>                             ^~~~~~~~~~~
> 
> options.cpp:64:3: note: in expansion of macro 'UrDEBUG'
>    UrDEBUG("Reading config file: %s \n", conf.c_str() );
>    ^~~~~~~
> 
> ../include/debug.h:6:93: error: unable to find string literal operator 'operator""format' with 'const char [9]', 'long unsigned int' arguments
>  #define UCIMF_DEBUG(format...)          {extern int LogFd; if( LogFd >=0 ){ dprintf( LogFd, "[DEBUG]:"format);} }
>                                                                                              ^
> 
> ../include/debug.h:9:28: note: in expansion of macro 'UCIMF_DEBUG'
>  #define UrDEBUG(format...) UCIMF_DEBUG(format)
>                             ^~~~~~~~~~~
> 
> options.cpp:70:7: note: in expansion of macro 'UrDEBUG'
>        UrDEBUG("Could not reading config file: %s \n", conf.c_str() );
>        ^~~~~~~
> 
> options.cpp: In member function 'bool Options::parse_file(std::ifstream&)':
> ../include/debug.h:6:93: error: unable to find string literal operator 'operator""format' with 'const char [9]', 'long unsigned int' arguments
>  #define UCIMF_DEBUG(format...)          {extern int LogFd; if( LogFd >=0 ){ dprintf( LogFd, "[DEBUG]:"format);} }
>                                                                                              ^
> 
> ../include/debug.h:9:28: note: in expansion of macro 'UCIMF_DEBUG'
>  #define UrDEBUG(format...) UCIMF_DEBUG(format)
>                             ^~~~~~~~~~~
> 
> options.cpp:102:2: note: in expansion of macro 'UrDEBUG'
>   UrDEBUG( "Option: %s = %s \n ", o.c_str() ,v.c_str() );
>   ^~~~~~~
> 
> Makefile:345: recipe for target 'libucimf_la-options.lo' failed
> make[3]: *** [libucimf_la-options.lo] Error 1

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise



More information about the Pkg-ime-devel mailing list