[Pkg-ofed-devel] Bug#811695: FTBFS with GCC 6: invalid suffix on literal
Martin Michlmayr
tbm at hpe.com
Wed Jan 20 01:03:55 UTC 2016
Package: mstflint
Version: 4.1.0+1.46.gb1cdaf7-1
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-literal-suffix
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.
> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> g++: warning: ../tools_layouts: linker input file unused because linking not done
> g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../include/mtcr_ul -I../mtcr_ul -I../common -I -I ../tools_layouts -I/zlib -I ../mft_utils -I../dev_mgt -I../cmdif -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -W -g -MP -MD -pipe -DMLXCFG_NAME=\"mstconfig\" -DMST_DEV_EXAMPLE=\"04:00.0\" -DMST_DEV_EXAMPLE2=\"05:00.0\" -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -DHAVE_TERMIOS_H -Werror -DMST_UL -c -o mlxcfg_parser.o mlxcfg_parser.cpp
> mlxcfg_parser.cpp:215:78: error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
> printf(IDENT2"%-35s: %s\n", "To query current configuration", MLXCFG_NAME" -d "MST_DEV_EXAMPLE" query");
> ^
>
> mlxcfg_parser.cpp:216:68: error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
> printf(IDENT2"%-35s: %s\n", "To set configuration", MLXCFG_NAME" -d "MST_DEV_EXAMPLE" set SRIOV_EN=1 NUM_OF_VFS=16 WOL_MAGIC_EN_P1=1");
> ^
>
> mlxcfg_parser.cpp:217:72: error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
> printf(IDENT2"%-35s: %s\n", "To set raw configuration", MLXCFG_NAME" -d "MST_DEV_EXAMPLE2" -f conf_file set_raw");
> ^
>
> mlxcfg_parser.cpp:218:70: error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
> printf(IDENT2"%-35s: %s\n", "To reset configuration", MLXCFG_NAME" -d "MST_DEV_EXAMPLE" reset");
> ^
>
> mlxcfg_parser.cpp:234:12: error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
> printf("\n"IDENT"Usage:\n"
> ^
>
> mlxcfg_parser.cpp:371:26: error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
> return err(true, "No command found. For more information please run "MLXCFG_NAME" -h|--help.");
> ^
>
> mlxcfg_parser.cpp:375:26: error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
> return err(true, "missing configuration arguments. For more information please run "MLXCFG_NAME" -h|--help.");
> ^
>
> cc1plus: all warnings being treated as errors
> Makefile:466: recipe for target 'mlxcfg_parser.o' failed
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise
More information about the Pkg-ofed-devel
mailing list