Bug#1027504: calligra: FTBFS: src.cxx:9:17: error: invalid conversion from ‘const char**’ to ‘char**’ [-fpermissive]
Source: calligra
Version: 1:3.2.1+dfsg-6
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20230101 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> /usr/bin/c++ -DICONV_SECOND_ARGUMENT_IS_CONST -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-deprecated -Wno-deprecated-declarations -Wdate-time -D_FORTIFY_SOURCE=2 -fno-operator-names -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fexceptions -std=c++17 -o CMakeFiles/cmTC_2b120.dir/src.cxx.o -c /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-MwSqRe/src.cxx
> /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-MwSqRe/src.cxx: In function ‘int main()’:
> /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-MwSqRe/src.cxx:9:17: error: invalid conversion from ‘const char**’ to ‘char**’ [-fpermissive]
> 9 | iconv(conv, &in, &ilen, &out, &olen);
> | ^~~
> | |
> | const char**
> In file included from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-MwSqRe/src.cxx:2:
> /usr/include/iconv.h:49:54: note: initializing argument 2 of ‘size_t iconv(iconv_t, char**, size_t*, char**, size_t*)’
> 49 | extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
> | ~~~~~~~~~~~~~~~~~~^~~~~~~
> gmake[3]: *** [CMakeFiles/cmTC_2b120.dir/build.make:78: CMakeFiles/cmTC_2b120.dir/src.cxx.o] Error 1
> gmake[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-MwSqRe'
> gmake[2]: *** [Makefile:127: cmTC_2b120/fast] Error 2
> gmake[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-MwSqRe'
>
>
> Source file was:
>
> #include <iconv.h>
> int main(){
> iconv_t conv = 0;
> const char* in = 0;
> size_t ilen = 0;
> char* out = 0;
> size_t olen = 0;
> iconv(conv, &in, &ilen, &out, &olen);
> return 0;
> }
>
>
> Determining if the include file sys/iconv.h exists failed with the following output:
> Change Dir: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-QXKclh
>
> Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_c251f/fast && gmake[2]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-QXKclh'
> /usr/bin/gmake -f CMakeFiles/cmTC_c251f.dir/build.make CMakeFiles/cmTC_c251f.dir/build
> gmake[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-QXKclh'
> Building C object CMakeFiles/cmTC_c251f.dir/CheckIncludeFile.c.o
> /usr/bin/cc -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fno-common -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wmissing-format-attribute -Wwrite-strings -Werror=implicit-function-declaration -std=gnu90 -o CMakeFiles/cmTC_c251f.dir/CheckIncludeFile.c.o -c /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-QXKclh/CheckIncludeFile.c
> /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-QXKclh/CheckIncludeFile.c:1:10: fatal error: sys/iconv.h: No such file or directory
> 1 | #include <sys/iconv.h>
> | ^~~~~~~~~~~~~
> compilation terminated.
> gmake[3]: *** [CMakeFiles/cmTC_c251f.dir/build.make:78: CMakeFiles/cmTC_c251f.dir/CheckIncludeFile.c.o] Error 1
> gmake[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-QXKclh'
> gmake[2]: *** [Makefile:127: cmTC_c251f/fast] Error 2
> gmake[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-QXKclh'
>
>
>
> Determining if the include file ieeefp.h exists failed with the following output:
> Change Dir: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wjwPAx
>
> Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_291e9/fast && gmake[2]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wjwPAx'
> /usr/bin/gmake -f CMakeFiles/cmTC_291e9.dir/build.make CMakeFiles/cmTC_291e9.dir/build
> gmake[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wjwPAx'
> Building C object CMakeFiles/cmTC_291e9.dir/CheckIncludeFile.c.o
> /usr/bin/cc -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fno-common -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wmissing-format-attribute -Wwrite-strings -Werror=implicit-function-declaration -std=gnu90 -o CMakeFiles/cmTC_291e9.dir/CheckIncludeFile.c.o -c /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wjwPAx/CheckIncludeFile.c
> /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wjwPAx/CheckIncludeFile.c:1:10: fatal error: ieeefp.h: No such file or directory
> 1 | #include <ieeefp.h>
> | ^~~~~~~~~~
> compilation terminated.
> gmake[3]: *** [CMakeFiles/cmTC_291e9.dir/build.make:78: CMakeFiles/cmTC_291e9.dir/CheckIncludeFile.c.o] Error 1
> gmake[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wjwPAx'
> gmake[2]: *** [Makefile:127: cmTC_291e9/fast] Error 2
> gmake[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wjwPAx'
>
>
>
> Determining if the _finite exist failed with the following output:
> Change Dir: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wam6pk
>
> Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_399cb/fast && gmake[2]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wam6pk'
> /usr/bin/gmake -f CMakeFiles/cmTC_399cb.dir/build.make CMakeFiles/cmTC_399cb.dir/build
> gmake[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wam6pk'
> Building C object CMakeFiles/cmTC_399cb.dir/CheckSymbolExists.c.o
> /usr/bin/cc -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wam6pk/math.h -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Wdate-time -D_FORTIFY_SOURCE=2 -fno-common -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wmissing-format-attribute -Wwrite-strings -std=gnu90 -o CMakeFiles/cmTC_399cb.dir/CheckSymbolExists.c.o -c /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wam6pk/CheckSymbolExists.c
> /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wam6pk/CheckSymbolExists.c: In function ‘main’:
> /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wam6pk/CheckSymbolExists.c:8:19: error: ‘_finite’ undeclared (first use in this function); did you mean ‘finite’?
> 8 | return ((int*)(&_finite))[argc];
> | ^~~~~~~
> | finite
> /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wam6pk/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
> /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wam6pk/CheckSymbolExists.c:4:14: warning: parameter ‘argc’ set but not used [-Wunused-but-set-parameter]
> 4 | int main(int argc, char** argv)
> | ~~~~^~~~
> /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wam6pk/CheckSymbolExists.c:13:1: warning: control reaches end of non-void function [-Wreturn-type]
> 13 | }
> | ^
> gmake[3]: *** [CMakeFiles/cmTC_399cb.dir/build.make:78: CMakeFiles/cmTC_399cb.dir/CheckSymbolExists.c.o] Error 1
> gmake[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wam6pk'
> gmake[2]: *** [Makefile:127: cmTC_399cb/fast] Error 2
> gmake[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-wam6pk'
>
>
> File CheckSymbolExists.c:
> /* */
> #include <math.h>
>
> int main(int argc, char** argv)
> {
> (void)argv;
> #ifndef _finite
> return ((int*)(&_finite))[argc];
> #else
> (void)argc;
> return 0;
> #endif
> }
> dh_auto_configure: error: cd obj-x86_64-linux-gnu && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DCMAKE_BUILD_TYPE=Debian -DCMAKE_INSTALL_SYSCONFDIR=/etc -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DBUILD_TESTING=OFF -DBUILD_app_cstester=OFF -DBUILD_app_devtools=OFF -DCALLIGRA_SHOULD_BUILD_UNMAINTAINED=ON .. returned exit code 1
> make[1]: *** [debian/rules:13: override_dh_auto_configure] Error 25
The full build log is available from:
http://qa-logs.debian.net/2023/01/01/calligra_3.2.1+dfsg-6_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230101;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230101&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 mark 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: