Package Details: stable-diffusion.cpp-git r256.5900ef6-1

Git Clone URL: https://aur.archlinux.org/stable-diffusion.cpp-git.git (read-only, click to copy)
Package Base: stable-diffusion.cpp-git
Description: Stable Diffusion in pure C/C++
Upstream URL: https://github.com/leejet/stable-diffusion.cpp
Licenses: MIT
Conflicts: stable-diffusion.cpp
Provides: stable-diffusion.cpp
Submitter: robertfoster
Maintainer: None
Last Packager: robertfoster
Votes: 3
Popularity: 0.003715
First Submitted: 2023-12-24 16:37 (UTC)
Last Updated: 2025-12-21 14:06 (UTC)

Latest Comments

1 2 Next › Last »

gwuensch commented on 2026-05-06 14:41 (UTC)

Since the last update, gcc defaults to C++20. This currently breaks the build. We can add the CMake option -DCMAKE_CXX_FLAGS=-fno-char8_t to restore the pre-C++20 behavior.

gwuensch commented on 2025-12-22 22:59 (UTC)

Why is ggml still pinned to a version from February? It doesn't build in this state. Latest commit works fine, why not just depend on libggml-git?

gwuensch commented on 2025-09-07 13:35 (UTC)

ggml needs a version bump. Doesn't build against the currently pinned commit.

grdgkjrpdihe commented on 2024-08-05 17:38 (UTC)

git -c protocol.file.allow=always submodule update

in prepare should be

git -c protocol.file.allow=always submodule update --remote

otherwise it wont update from ${srcdir}/ggml

dreieck commented on 2024-04-17 12:02 (UTC)

Please add the non-git packages to the provides and conflicts array.

Currently, e.g. stable-diffusion.cpp-git, has provides=("stable-diffusion.cpp-git=r116.036ba9e").
Providing itself is senseless.

Please use stable-diffusion.cpp in the conflicts and provides array.

Regards and thanks for maintaining!

dreieck commented on 2024-04-17 11:13 (UTC)

Can you please remove ccache from makedepends, so that the user is not forced to install/ use it?

The user can enable ccache builds by setting the ccache-options in e.. /etc/makepkg.conf -- give the user freedom, please.

Regards!

dreieck commented on 2024-03-27 09:40 (UTC)

In your PKGBUILD you have

  if [ ! -d "${srcdir}/${_name}-cublas" ]; then
    cp -r "${srcdir}/${_name}" "${srcdir}/${_name}-cublas"
    cp -r "${srcdir}/${_name}" "${srcdir}/${_name}-openblas"
    cp -r "${srcdir}/${_name}" "${srcdir}/${_name}-hipblas"
  fi

Shouln't there be a specific ! -d-test before each cp statement?

You test for non-existence of ${_name}-cublas, and decide on the cublas-case also what to do with the openblas and hipblas variants.

Regards!

dreieck commented on 2024-03-27 09:33 (UTC)

Since several packages use ggml I made an extra package for it:
libggml-git.

This conflicts with packages that install their own ggml files:


error: failed to commit transaction (conflicting files)
libggml-git: /usr/include/ggml/ggml-alloc.h exists in filesystem (owned by stable-diffusion.cpp-hipblas-git)
libggml-git: /usr/include/ggml/ggml-backend.h exists in filesystem (owned by stable-diffusion.cpp-hipblas-git)
libggml-git: /usr/include/ggml/ggml.h exists in filesystem (owned by stable-diffusion.cpp-hipblas-git)
libggml-git: /usr/share/pkgconfig/ggml.pc exists in filesystem (owned by stable-diffusion.cpp-hipblas-git)

Can you remove all ggml-specific files and if needed add libggml to the depends array?

Regards!

dreieck commented on 2024-03-25 22:00 (UTC) (edited on 2024-03-25 22:03 (UTC) by dreieck)

I now get the error PKGBUILD: line 112: cd: stable-diffusion.cpp-clblas: No such file or directory:

==> Starting package_stable-diffusion.cpp-cublas-git()...
/tmp/makepkg/yay/stable-diffusion.cpp-git/PKGBUILD: line 112: cd: stable-diffusion.cpp-clblas: No such file or directory
==> ERROR: A failure occurred in package_stable-diffusion.cpp-cublas-git().

Did you mean "${_name}-cublas" instead of "${_name}-clblas"?

Then it builds fine for me.

Regards!