Bug#1083127: opencascade FTBFS: error: invalid conversion from ‘unsigned char*’ to ‘const char*’ [-fpermissive]
Helmut Grohne
helmut at subdivi.de
Wed Oct 2 06:37:21 BST 2024
Source: opencascade
Version: 7.8.1+dfsg1-2
Severity: serious
Tags: ftbfs
Hi,
opencascade fails to build from source in unstable. A non-parallel build
ends with:
| [ 40%] Building CXX object src/TKV3d/CMakeFiles/TKV3d.dir/__/StdPrs/StdPrs_BRepFont.cxx.o
| cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/TKV3d && /usr/bin/c++ -DHAVE_FREEIMAGE -DHAVE_FREETYPE -DHAVE_OPENGL -DHAVE_OPENGL_EXT -DHAVE_RAPIDJSON -DHAVE_TBB -DHAVE_TK -DHAVE_XLIB -DOCC_CONVERT_SIGNALS -DTKV3d_EXPORTS -I/usr/include/tcl -I/usr/include/freetype2 -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/include/opencascade -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fexceptions -fPIC -Wall -Wextra -O2 -g -DNDEBUG -std=gnu++11 -fPIC -MD -MT src/TKV3d/CMakeFiles/TKV3d.dir/__/StdPrs/StdPrs_BRepFont.cxx.o -MF CMakeFiles/TKV3d.dir/__/StdPrs/StdPrs_BRepFont.cxx.o.d -o CMakeFiles/TKV3d.dir/__/StdPrs/StdPrs_BRepFont.cxx.o -c /<<PKGBUILDDIR>>/src/StdPrs/StdPrs_BRepFont.cxx
| /<<PKGBUILDDIR>>/src/StdPrs/StdPrs_BRepFont.cxx: In member function ‘Standard_Boolean StdPrs_BRepFont::renderGlyph(Standard_Utf32Char, TopoDS_Shape&)’:
| /<<PKGBUILDDIR>>/src/StdPrs/StdPrs_BRepFont.cxx:460:30: error: invalid conversion from ‘unsigned char*’ to ‘const char*’ [-fpermissive]
| 460 | const char* aTags = &anOutline->tags[aStartIndex];
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | unsigned char*
| make[3]: *** [src/TKV3d/CMakeFiles/TKV3d.dir/build.make:793: src/TKV3d/CMakeFiles/TKV3d.dir/__/StdPrs/StdPrs_BRepFont.cxx.o] Error 1
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
| make[2]: *** [CMakeFiles/Makefile2:1961: src/TKV3d/CMakeFiles/TKV3d.dir/all] Error 2
| make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
| make[1]: *** [Makefile:139: all] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
| dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j1 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
| make: *** [debian/rules:13: binary] Error 25
| dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
This is also observed by the reproducible builds project.
Helmut
More information about the debian-science-maintainers
mailing list