Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917697 - media-gfx/prusaslicer-2.5.2-r1: PNGReadWrite.cpp fails to compile
Summary: media-gfx/prusaslicer-2.5.2-r1: PNGReadWrite.cpp fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: 3D Printing Team
URL:
Whiteboard:
Keywords:
Depends on: 917636
Blocks:
  Show dependency tree
 
Reported: 2023-11-22 06:27 UTC by Alex Orange
Modified: 2024-03-01 10:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,548.04 KB, text/x-log)
2023-11-22 06:34 UTC, Alex Orange
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Orange 2023-11-22 06:27:40 UTC
I believe this is a duplicate of #908379, I'll make sure to post my build log here.

Reproducible: Always

Steps to Reproduce:
1. emerge -av prusaslicer
2.
3.
Actual Results:  
Fails to compile, see build.log

Expected Results:  
Compiles

Running gcc-13.
Comment 1 Alex Orange 2023-11-22 06:29:14 UTC
Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.37-r7, 5.19.17-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.19.17-gentoo-x86_64-x86_64-12th_Gen_Intel-R-_Core-TM-_i7-1260P-with-glibc2.37
KiB Mem:    65543948 total,  46642428 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 19 Nov 2023 17:30:01 +0000
Head commit of repository gentoo: eaaa5dfd4055d05044e70c75714ef43d6206aa4e
Timestamp of repository gerislay: Sun, 19 Nov 2023 16:17:33 +0000
Head commit of repository gerislay: ddc14d63178bc5a9cf8759874ca55648fd156bc3

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.5::gentoo
dev-lang/rust:             1.71.1::gentoo
dev-util/cmake:            3.26.5-r2::gentoo
dev-util/meson:            1.2.2-r1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo, 13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            13.0.1::ghdl, 15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

cross-arm-android-linux-gnueabi
    location: /var/db/repos/cross-arm-android-linux-gnueabi
    masters: gentoo
    volatile: False

cross-arm-android-linux-gnueabihf
    location: /var/db/repos/cross-arm-android-linux-gnueabihf
    masters: gentoo
    volatile: False

gerislay
    location: /var/db/repos/gerislay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gerislay.git
    masters: gentoo
    volatile: False

ghdl
    location: /var/db/repos/ghdl
    masters: gentoo
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

Installed sets: @vlsi
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=alderlake -mtune=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=18432"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O3 -pipe -march=alderlake -mtune=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=18432"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y --autounmask-backtrack=y --autounmask-keep-masks=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O3 -pipe -march=alderlake -mtune=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=18432"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -pipe -march=alderlake -mtune=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=18432"
GENTOO_MIRRORS="http://gentoo-mirror.flux.utah.edu/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j17"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Alex Orange 2023-11-22 06:33:00 UTC
Start of the pertinent part of the build.log (I think):

/usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_DYN_LINK -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_DYN_LINK -DBOOST_LOCALE_NO_LIB -DBOOST_LOG_DYN_LINK -DBOOST_LOG_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DLIBNEST2D_GEOMETRIES_libslic3r -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DLIBNEST2D_THREADING_tbb -DOPENVDB_ABI_VERSION_NUMBER=10 -DOPENVDB_USE_DELAYED_LOADING -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.2/src -I/var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.2_build/src/platform -I/var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.2/src/libslic3r -I/var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.2_build/src/libslic3r -I/var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.2/src/libnest2d/include -I/var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.2/src/miniz -I/var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.2/src/glu-libtess/include -isystem /usr/include/eigen3 -isystem /var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.2/src/libigl -isystem /usr/include/Imath  -DNDEBUG -O3 -pipe -march=alderlake -mtune=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=18432 -fext-numeric-literals -Wall -Wno-reorder -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -MD -MT src/libslic3r/CMakeFiles/libslic3r.dir/PNGReadWrite.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r.dir/PNGReadWrite.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r.dir/PNGReadWrite.cpp.o -c /var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.2/src/libslic3r/PNGReadWrite.cpp
In file included from /var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.2/src/libslic3r/PNGReadWrite.cpp:1:
/var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.2/src/libslic3r/PNGReadWrite.hpp:13:25: error: ‘std::uint8_t’ has not been declared
   13 |     virtual size_t read(std::uint8_t *outp, size_t amount) = 0;
      |                         ^~~
/var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.2/src/libslic3r/PNGReadWrite.hpp:25:30: error: ‘uint8_t’ was not declared in this scope
   25 | using ImageGreyscale = Image<uint8_t>;
      |                              ^~~~~~~
/var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.2/src/libslic3r/PNGReadWrite.hpp:7:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
    6 | #include <istream>
  +++ |+#include <cstdint>
    7 |
/var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.2/src/libslic3r/PNGReadWrite.hpp:25:37: error: template argument 1 is invalid
   25 | using ImageGreyscale = Image<uint8_t>;
      |                                     ^
...        ^~~~
Comment 3 Alex Orange 2023-11-22 06:34:17 UTC
Created attachment 875320 [details]
build.log
Comment 4 Alex Orange 2023-11-22 06:35:13 UTC
[ebuild   R   ] media-gfx/prusaslicer-2.5.2-r1  USE="-test"
Comment 5 Larry the Git Cow gentoo-dev 2024-03-01 10:50:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f80a2d1e422c98c6c02ac9b5c7ec9524ecb14ca4

commit f80a2d1e422c98c6c02ac9b5c7ec9524ecb14ca4
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2024-03-01 10:50:18 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-03-01 10:50:31 +0000

    media-gfx/prusaslicer: dropped obsolete 2.5.2-r1 & 2.6.0-r1
    
    Closes: https://bugs.gentoo.org/917697
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 media-gfx/prusaslicer/Manifest                     |  2 -
 .../prusaslicer-2.5.0_alpha2-boost-fixes.patch     | 93 ----------------------
 ....0_boost-1.81-std-wxString-to-std-wstring.patch | 40 ----------
 .../files/prusaslicer-2.5.0_rc1-cereal-1.3.1.patch | 48 -----------
 .../files/prusaslicer-2.5.0_rc1-fix-tests.patch    | 14 ----
 .../files/prusaslicer-2.5.2-fix-slicing.patch      | 76 ------------------
 media-gfx/prusaslicer/prusaslicer-2.5.2-r1.ebuild  | 89 ---------------------
 media-gfx/prusaslicer/prusaslicer-2.6.0-r1.ebuild  | 88 --------------------
 8 files changed, 450 deletions(-)