[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1020001: gdb-bpf: FTBFS: completer.c:2014:10: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]



Source: gdb-bpf
Version: 4
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20220917 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> g++ -x c++    -I. -I/<<PKGBUILDDIR>>/upstream/gdb -I/<<PKGBUILDDIR>>/upstream/gdb/config -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -I/<<PKGBUILDDIR>>/upstream/gdb/../include/opcode   -I../bfd -I/<<PKGBUILDDIR>>/upstream/gdb/../bfd -I/<<PKGBUILDDIR>>/upstream/gdb/../include -I../libdecnumber -I/<<PKGBUILDDIR>>/upstream/gdb/../libdecnumber  -I/<<PKGBUILDDIR>>/upstream/gdb/../gnulib/import -I../gnulib/import -I/<<PKGBUILDDIR>>/upstream/gdb/.. -I.. -I/<<PKGBUILDDIR>>/upstream/gdb/../libbacktrace/ -I../libbacktrace/  -DTUI=1  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/python3.10 -I/usr/include/python3.10   -I/<<PKGBUILDDIR>>/upstream/gdb/.. -pthread  -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-variable -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-error=maybe-uninitialized -Wno-mismatched-tags -Wsuggest-override -Wimplicit-fallthrough=3 -Wduplicated-cond -Wshadow=local -Wdeprecated-copy -Wdeprecated-copy-dtor -Wredundant-move -Wmissing-declarations -Wstrict-null-sentinel -Wformat -Wformat-nonliteral  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong     -c -o cp-name-parser.o -MT cp-name-parser.o -MMD -MP -MF ./.deps/cp-name-parser.Tpo /<<PKGBUILDDIR>>/upstream/gdb/cp-name-parser.c
> /<<PKGBUILDDIR>>/upstream/gdb/completer.c: In function ‘char* gdb_completion_word_break_characters_throw()’:
> /<<PKGBUILDDIR>>/upstream/gdb/completer.c:2014:10: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
>  2014 |   return rl_completer_word_break_characters;
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>       |          |
>       |          const char*
> g++ -x c++    -I. -I/<<PKGBUILDDIR>>/upstream/gdb -I/<<PKGBUILDDIR>>/upstream/gdb/config -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -I/<<PKGBUILDDIR>>/upstream/gdb/../include/opcode   -I../bfd -I/<<PKGBUILDDIR>>/upstream/gdb/../bfd -I/<<PKGBUILDDIR>>/upstream/gdb/../include -I../libdecnumber -I/<<PKGBUILDDIR>>/upstream/gdb/../libdecnumber  -I/<<PKGBUILDDIR>>/upstream/gdb/../gnulib/import -I../gnulib/import -I/<<PKGBUILDDIR>>/upstream/gdb/.. -I.. -I/<<PKGBUILDDIR>>/upstream/gdb/../libbacktrace/ -I../libbacktrace/  -DTUI=1  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/python3.10 -I/usr/include/python3.10   -I/<<PKGBUILDDIR>>/upstream/gdb/.. -pthread  -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-variable -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-error=maybe-uninitialized -Wno-mismatched-tags -Wsuggest-override -Wimplicit-fallthrough=3 -Wduplicated-cond -Wshadow=local -Wdeprecated-copy -Wdeprecated-copy-dtor -Wredundant-move -Wmissing-declarations -Wstrict-null-sentinel -Wformat -Wformat-nonliteral  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong     -c -o cp-namespace.o -MT cp-namespace.o -MMD -MP -MF ./.deps/cp-namespace.Tpo /<<PKGBUILDDIR>>/upstream/gdb/cp-namespace.c
> g++ -x c++    -I. -I/<<PKGBUILDDIR>>/upstream/gdb -I/<<PKGBUILDDIR>>/upstream/gdb/config -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -I/<<PKGBUILDDIR>>/upstream/gdb/../include/opcode   -I../bfd -I/<<PKGBUILDDIR>>/upstream/gdb/../bfd -I/<<PKGBUILDDIR>>/upstream/gdb/../include -I../libdecnumber -I/<<PKGBUILDDIR>>/upstream/gdb/../libdecnumber  -I/<<PKGBUILDDIR>>/upstream/gdb/../gnulib/import -I../gnulib/import -I/<<PKGBUILDDIR>>/upstream/gdb/.. -I.. -I/<<PKGBUILDDIR>>/upstream/gdb/../libbacktrace/ -I../libbacktrace/  -DTUI=1  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/python3.10 -I/usr/include/python3.10   -I/<<PKGBUILDDIR>>/upstream/gdb/.. -pthread  -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-variable -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-error=maybe-uninitialized -Wno-mismatched-tags -Wsuggest-override -Wimplicit-fallthrough=3 -Wduplicated-cond -Wshadow=local -Wdeprecated-copy -Wdeprecated-copy-dtor -Wredundant-move -Wmissing-declarations -Wstrict-null-sentinel -Wformat -Wformat-nonliteral  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong     -c -o cp-support.o -MT cp-support.o -MMD -MP -MF ./.deps/cp-support.Tpo /<<PKGBUILDDIR>>/upstream/gdb/cp-support.c
> g++ -x c++    -I. -I/<<PKGBUILDDIR>>/upstream/gdb -I/<<PKGBUILDDIR>>/upstream/gdb/config -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -I/<<PKGBUILDDIR>>/upstream/gdb/../include/opcode   -I../bfd -I/<<PKGBUILDDIR>>/upstream/gdb/../bfd -I/<<PKGBUILDDIR>>/upstream/gdb/../include -I../libdecnumber -I/<<PKGBUILDDIR>>/upstream/gdb/../libdecnumber  -I/<<PKGBUILDDIR>>/upstream/gdb/../gnulib/import -I../gnulib/import -I/<<PKGBUILDDIR>>/upstream/gdb/.. -I.. -I/<<PKGBUILDDIR>>/upstream/gdb/../libbacktrace/ -I../libbacktrace/  -DTUI=1  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/python3.10 -I/usr/include/python3.10   -I/<<PKGBUILDDIR>>/upstream/gdb/.. -pthread  -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-variable -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-error=maybe-uninitialized -Wno-mismatched-tags -Wsuggest-override -Wimplicit-fallthrough=3 -Wduplicated-cond -Wshadow=local -Wdeprecated-copy -Wdeprecated-copy-dtor -Wredundant-move -Wmissing-declarations -Wstrict-null-sentinel -Wformat -Wformat-nonliteral  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong     -c -o cp-valprint.o -MT cp-valprint.o -MMD -MP -MF ./.deps/cp-valprint.Tpo /<<PKGBUILDDIR>>/upstream/gdb/cp-valprint.c
> make[4]: *** [Makefile:1655: completer.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/09/17/gdb-bpf_4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220917;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220917&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

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!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.


Reply to: