[R-pkg-team] Bug#1081877: r-cran-ragg: FTBFS: agg/src/agg_font_freetype.cpp:182:35: error: invalid conversion from ‘unsigned char*’ to ‘char*’ [-fpermissive]
Santiago Vila
sanvila at debian.org
Sun Sep 15 18:32:22 BST 2024
Package: src:r-cran-ragg
Version: 1.3.2-1
Severity: serious
Tags: ftbfs
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules binary
dh binary --buildsystem R
dh_update_autotools_config -O--buildsystem=R
dh_autoreconf -O--buildsystem=R
dh_auto_configure -O--buildsystem=R
dh_auto_build -O--buildsystem=R
dh_auto_test -O--buildsystem=R
create-stamp debian/debhelper-build-stamp
dh_testroot -O--buildsystem=R
dh_prep -O--buildsystem=R
dh_auto_install --destdir=debian/r-cran-ragg/ -O--buildsystem=R
I: R packages needed for DEP8: covr, testthat (>= 3.0.0)
I: R Package: ragg Version: 1.3.2
I: Building using R version 4.4.1-3
I: R API version: r-api-4.0
I: Using built-time from d/changelog: Thu, 11 Jul 2024 10:44:10 +0900
mkdir -p /<<PKGBUILDDIR>>/debian/r-cran-ragg/usr/lib/R/site-library
R CMD INSTALL -l /<<PKGBUILDDIR>>/debian/r-cran-ragg/usr/lib/R/site-library --clean . "--built-timestamp='Thu, 11 Jul 2024 10:44:10 +0900'"
* installing *source* package ‘ragg’ ...
** package ‘ragg’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp
Using PKG_LIBS=-lfreetype -lpng16 -ltiff -ljpeg
** libs
using C++ compiler: ‘g++ (Debian 14.2.0-4) 14.2.0’
make[1]: Entering directory '/<<PKGBUILDDIR>>/src'
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I./agg/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I'/usr/lib/R/site-library/systemfonts/include' -I'/usr/lib/R/site-library/textshaping/include' -fpic -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.4.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c capture_dev.cpp -o capture_dev.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I./agg/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I'/usr/lib/R/site-library/systemfonts/include' -I'/usr/lib/R/site-library/textshaping/include' -fpic -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.4.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c init.cpp -o init.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I./agg/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I'/usr/lib/R/site-library/systemfonts/include' -I'/usr/lib/R/site-library/textshaping/include' -fpic -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.4.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c jpeg_dev.cpp -o jpeg_dev.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I./agg/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I'/usr/lib/R/site-library/systemfonts/include' -I'/usr/lib/R/site-library/textshaping/include' -fpic -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.4.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c png_dev.cpp -o png_dev.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I./agg/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I'/usr/lib/R/site-library/systemfonts/include' -I'/usr/lib/R/site-library/textshaping/include' -fpic -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.4.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c ppm_dev.cpp -o ppm_dev.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I./agg/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I'/usr/lib/R/site-library/systemfonts/include' -I'/usr/lib/R/site-library/textshaping/include' -fpic -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.4.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c tiff_dev.cpp -o tiff_dev.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I./agg/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I'/usr/lib/R/site-library/systemfonts/include' -I'/usr/lib/R/site-library/textshaping/include' -fpic -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.4.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c agg/src/agg_curves.cpp -o agg/src/agg_curves.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I./agg/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I'/usr/lib/R/site-library/systemfonts/include' -I'/usr/lib/R/site-library/textshaping/include' -fpic -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.4.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c agg/src/agg_font_freetype.cpp -o agg/src/agg_font_freetype.o
agg/src/agg_font_freetype.cpp: In instantiation of ‘bool agg::decompose_ft_outline(const FT_Outline&, bool, const trans_affine&, PathStorage&) [with PathStorage = path_storage_integer<int, 6>; FT_Outline = FT_Outline_]’:
agg/src/agg_font_freetype.cpp:1071:48: required from here
1071 | if(decompose_ft_outline(m_cur_face->glyph->outline,
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1072 | m_flip_y,
| ~~~~~~~~~
1073 | m_affine,
| ~~~~~~~~~
1074 | m_path32))
| ~~~~~~~~~
agg/src/agg_font_freetype.cpp:182:35: error: invalid conversion from ‘unsigned char*’ to ‘char*’ [-fpermissive]
182 | tags = outline.tags + first;
| ~~~~~~~~~~~~~~^~~~~~~
| |
| unsigned char*
agg/src/agg_font_freetype.cpp: In instantiation of ‘bool agg::decompose_ft_outline(const FT_Outline&, bool, const trans_affine&, PathStorage&) [with PathStorage = path_storage_integer<short int, 6>; FT_Outline = FT_Outline_]’:
agg/src/agg_font_freetype.cpp:1092:48: required from here
1092 | if(decompose_ft_outline(m_cur_face->glyph->outline,
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1093 | m_flip_y,
| ~~~~~~~~~
1094 | m_affine,
| ~~~~~~~~~
1095 | m_path16))
| ~~~~~~~~~
agg/src/agg_font_freetype.cpp:182:35: error: invalid conversion from ‘unsigned char*’ to ‘char*’ [-fpermissive]
182 | tags = outline.tags + first;
| ~~~~~~~~~~~~~~^~~~~~~
| |
| unsigned char*
make[1]: *** [/usr/lib/R/etc/Makeconf:204: agg/src/agg_font_freetype.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: Entering directory '/<<PKGBUILDDIR>>/src'
make[1]: Leaving directory '/<<PKGBUILDDIR>>/src'
ERROR: compilation failed for package ‘ragg’
* removing ‘/<<PKGBUILDDIR>>/debian/r-cran-ragg/usr/lib/R/site-library/ragg’
dh_auto_install: error: R CMD INSTALL -l /<<PKGBUILDDIR>>/debian/r-cran-ragg/usr/lib/R/site-library --clean . "--built-timestamp='Thu, 11 Jul 2024 10:44:10 +0900'" returned exit code 1
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202409/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.
Thanks.
More information about the R-pkg-team
mailing list