Package Details: prusa-slicer-git 2.7.4-1

Git Clone URL: https://aur.archlinux.org/prusa-slicer-git.git (read-only, click to copy)
Package Base: prusa-slicer-git
Description: G-code generator for 3D printers (Prusa fork of Slic3r) (git version)
Upstream URL: https://github.com/prusa3d/PrusaSlicer
Licenses: AGPL3
Conflicts: prusa-slicer
Submitter: Salamandar
Maintainer: Salamandar
Last Packager: Salamandar
Votes: 14
Popularity: 0.001947
First Submitted: 2019-07-08 08:14 (UTC)
Last Updated: 2024-04-11 14:51 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 15 Next › Last »

ArchBoxHero commented on 2022-02-25 17:12 (UTC) (edited on 2022-02-25 17:17 (UTC) by ArchBoxHero)

I can confirm the same fail on another Arch Linux system as well as my main. Same exact errors as @DCengineer.

DCengineer commented on 2022-02-23 03:23 (UTC) (edited on 2022-02-23 03:23 (UTC) by DCengineer)

@Salamandar Well, that didn't take long. It built perfectly for a day. Now the patches are failing.

atching file src/libslic3r/MeshBoolean.cpp
patching file CMakeLists.txt
Hunk #1 FAILED at 474.
1 out of 1 hunk FAILED -- saving rejects to file CMakeLists.txt.rej
patching file src/CMakeLists.txt
Hunk #1 FAILED at 125.
1 out of 1 hunk FAILED -- saving rejects to file src/CMakeLists.txt.rej
patching file src/libslic3r/CMakeLists.txt
Hunk #1 FAILED at 337.
1 out of 1 hunk FAILED -- saving rejects to file src/libslic3r/CMakeLists.txt.rej
patching file src/slic3r/CMakeLists.txt
Hunk #1 FAILED at 260.
1 out of 1 hunk FAILED -- saving rejects to file src/slic3r/CMakeLists.txt.rej
==> ERROR: A failure occurred in prepare().
    Aborting...
error: failed to build 'prusa-slicer-git-2.5.0.alpha0.r43.g3a821d675-1': 
error: packages failed to build: prusa-slicer-git-2.5.0.alpha0.r43.g3a821d675-1

ArchBoxHero commented on 2022-02-22 01:06 (UTC) (edited on 2022-02-22 01:08 (UTC) by ArchBoxHero)

Snap Crackle POP! It builds. Thanks @Salamandar. Nice. And Ninja doesn't crash my system. It now takes up around 43% of 64G-RAM and pushes my cores while linking but does what it should be doing. Little new with the Ninja build system. I know a little bout how it works with Cmake and what not but not enough.

Salamandar commented on 2022-02-21 10:48 (UTC)

The build / RAM issues shouldn't occur anymore, as the package now uses Clang to build.

ArchBoxHero commented on 2022-02-11 06:17 (UTC) (edited on 2022-02-11 17:06 (UTC) by ArchBoxHero)

Hey I am wondering if anyone else is having this issue while trying to build this package(I cannot build it). I've tried it on 2 machines and get the same result when building:

  • AMD CPU=32Core, 64GB-Ram
  • Intel-4Core, 32GB-Ram

Its when the build gets to here:

ninja: Entering directory `build'
[8/153] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/DoubleSlider.cpp.o

It literally pushes my CPU 100% and maxes out my ram on both systems and if I don't exit out fast enough it will crash.

In the PKBUILD there's this trick:

    # This is a trick to workaround RAM issues that kill GCC
    ninja -C build -k0
    ninja -C build -j2

which I thought would avoid the RAM issue? I'm not familiar with ninja enough but I'll poke around now.

*I was able to get it to build without consuming all those resources adjusting those ninja build commands like this:

    # ninja -C build -k0
    ninja -C build -l .5
    ninja -C build -j20

Of course took some time(still building 10minutes later). Funny 32cores and 64GB-RAM and I am moving at a snails pace to build this. I'm sure I could have tinkered and adjusted it but this was fine for it to just build. I'm having some RAM issues with this prusa in general software since the last update. Hoping this might stop the slicer from crashing while taking all the RAM and crunching the CPU at 100%. No Idea what's going on with prusa libs.

Yea it fails here now:

 /usr/include/boost/function_output_iterator.hpp:14:1: note: ‘#pragma message: This header is deprecated. Use <boost/iterator/function_output_iterator.hpp> instead.’
   14 | BOOST_HEADER_DEPRECATED("<boost/iterator/function_output_iterator.hpp>")
      | ^~~~~~~~~~~~~~~~~~~~~~~
[11/166] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/GLCanvas3D.cpp.o
FAILED: src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/GLCanvas3D.cpp.o
/usr/bin/c++ -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_FIL
ESYSTEM_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_t
bb -DOPENVDB_ABI_VERSION_NUMBER=9 -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D_UNICODE -D__WXGTK__ -DwxNO_UNSAFE
_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src -I/home/me/AUR/3d-printing/prusa-slicer-g
it/src/build/src/platform -I/home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/hidapi/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib
-2.0/include -I/usr/include/sysprof-4 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/ca
iro -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/
include/at-spi-2.0 -I/home/me/AUR/3d-printing/prusa-slicer-git/src/build/src/libslic3r -I/home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/libnest2d/include -I/home/me/AUR/
3d-printing/prusa-slicer-git/src/PrusaSlicer/src/miniz -I/home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/glu-libtess/include -isystem /usr/include/eigen3 -isystem /usr/lib/wx/inc
lude/gtk3-unicode-3.0 -isystem /usr/include/wx-3.0 -isystem /home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/libigl -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions
      -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -fext-numeric-literals -Wall -Wno-reorder -pthread -O3 -DN
DEBUG -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -pthread -std=gnu++17 -MD -MT src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/GLCanvas3D.cpp.o -MF src/slic3r
/CMakeFiles/libslic3r_gui.dir/GUI/GLCanvas3D.cpp.o.d -o src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/GLCanvas3D.cpp.o -c /home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI
/GLCanvas3D.cpp
In file included from /home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI/Gizmos/GLGizmosCommon.hpp:7,
                 from /home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI/Gizmos/GLGizmosManager.hpp:7,
                 from /home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI/GLCanvas3D.hpp:12,
                 from /home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI/GLCanvas3D.cpp:2:
/home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI/MeshUtils.hpp: In constructor ‘Slic3r::GUI::MeshRaycaster::MeshRaycaster(const Slic3r::TriangleMesh&)’:
/home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI/MeshUtils.hpp:133:38: error: invalid use of incomplete type ‘const class Slic3r::TriangleMesh’
  133 |         , m_normals(its_face_normals(mesh.its))
      |                                      ^~~~
In file included from /home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI/Selection.hpp:5,
                 from /home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI/GLCanvas3D.hpp:11,
                 from /home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI/GLCanvas3D.cpp:2:
/home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI/GLModel.hpp:14:7: note: forward declaration of ‘class Slic3r::TriangleMesh’
   14 | class TriangleMesh;
      |       ^~~~~~~~~~~~
In file included from /home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI/Gizmos/GLGizmosCommon.hpp:7,
                 from /home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI/Gizmos/GLGizmosManager.hpp:7,
                 from /home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI/GLCanvas3D.hpp:12,
                 from /home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI/GLCanvas3D.cpp:2:
/home/me/AUR/3d-printing/prusa-slicer-git/src/PrusaSlicer/src/slic3r/GUI/MeshUtils.hpp:133:21: error: ‘its_face_normals’ was not declared in this scope
  133 |         , m_normals(its_face_normals(mesh.its))
      |                     ^~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

I don't see anyone else with this

I found that using this command

ninja $(grep -oP -- '-+[A-z]+ ?[0-9]*'<<<"${MAKEFLAGS:--j1}") -C "${srcdir}/build" 
lets it build without crashing the RAM in place of the
ninja -C build -k0
and
ninja -C build -j2
Lat thing, the build fails on my
Intel 4 core 
system running Arch.

seanahan commented on 2022-02-06 23:17 (UTC)

I'm not sure what causes this, but git describe --tags does not necessarily return the correct, latest tagged version. Currently, it returns version_2.4.0-beta4-487-gb88fc2896; however, the actual latest tag is version_2.4.1-beta1. (I think it's is an oddity with git itself.) This can cause Pacman to think incorrectly that the package freshly built off of the tip of master is a downgrade because the version number is using an older release as it's reference point.

One option might be to use git tag --sort=-taggerdate | head -n 1. The - before taggerdate tells git-sort to reverse the sort order.

❯ git describe --tags
version_2.4.0-beta4-487-gb88fc2896

❯ git tag --sort=-taggerdate | head -n 1
version_2.4.1-beta1

Here's a quick patch I hacked up:

From f94e174344b05d49eb498556b5201e0a3f97af7b Mon Sep 17 00:00:00 2001
From: Sean Monahan <1907654+seancmonahan@users.noreply.github.com>
Date: Sun, 6 Feb 2022 17:52:08 -0500
Subject: [PATCH] Detect latest git tagged release without using `git describe`

---
 PKGBUILD | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 5b4f708..f5b0794 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Salamandar <felix@piedallu.me>

 pkgname=prusa-slicer-git
-pkgver=2.4.1.alpha0.r47.g681712093
+pkgver=2.4.1.beta1.r240.gb88fc2896
 pkgrel=1
 pkgdesc='G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)'
 arch=('i686' 'x86_64' 'armv6' 'armv6h' 'armv7h')
@@ -40,7 +40,10 @@ sha256sums=(
 conflicts=('prusa-slicer')

 pkgver() {
-    git -C "${srcdir}/PrusaSlicer" describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^version_//'
+    GIT_TAG=$(git -C "${srcdir}/PrusaSlicer" tag --sort=-taggerdate | head -n 1)
+    GIT_CURRENT_HASH=$(git -C "${srcdir}/PrusaSlicer" rev-parse --short HEAD)
+    GIT_COMMIT_DISTANCE=$(git -C "${srcdir}/PrusaSlicer" rev-list --count "${GIT_TAG}..HEAD")
+    echo "${GIT_TAG}-${GIT_COMMIT_DISTANCE}-g${GIT_CURRENT_HASH}" | sed -e 's/\([^-]*-g\)/r\1/;s/-/./g;s/^version_//'
 }

 prepare() {
-- 
2.34.1

Salamandar commented on 2022-01-26 15:13 (UTC)

In the future you can check if the latest pkgbuild builds here : https://gitlab.com/Salamandar/aur_packages/-/pipelines/

sam_agasse commented on 2022-01-26 13:38 (UTC)

@dflemstr, @Salamandar : I confirm, downgrading fixes also the issue for me. Thanks to all for your support, I can now enjoy 3D printing ;-)

Salamandar commented on 2022-01-26 12:40 (UTC)

Alright, I can reproduce with the latest cereal package. This is already reported upstream : https://github.com/prusa3d/PrusaSlicer/pull/7809

I can't get my head around cereal completely changing their packaging/building process with a micro version change…

dflemstr commented on 2022-01-25 20:31 (UTC)

The package only fails to build with latest cereal (cereal-1.3.1-1)

Downgrading to cereal-1.3.0-1 lets me build the package again.