-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Macos binary is using an absolute library path #254
Comments
Linux prebuilt binary seems to be also dynamically built.
Even in a container with all these dependencies, it still refused to run: /usr/share/py/sd # ldd sd /lib64/ld-linux-x86-64.so.2 (0x7f7898226000) Error loading shared library libstable-diffusion.so: No such file or directory (needed by sd) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f7898050000) libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f7898226000) libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f7898036000) libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f7898226000) Error relocating sd: __printf_chk: symbol not found Error relocating sd: free_sd_ctx: symbol not found Error relocating sd: txt2img: symbol not found Error relocating sd: new_upscaler_ctx: symbol not found Error relocating sd: sd_type_name: symbol not found Error relocating sd: __vsnprintf_chk: symbol not found Error relocating sd: upscale: symbol not found Error relocating sd: img2img: symbol not found Error relocating sd: sd_get_system_info: symbol not found Error relocating sd: sd_set_log_callback: symbol not found Error relocating sd: convert: symbol not found Error relocating sd: img2vid: symbol not found Error relocating sd: get_num_physical_cores: symbol not found Error relocating sd: new_sd_ctx: symbol not found Error relocating sd: __fprintf_chk: symbol not found Error relocating sd: preprocess_canny: symbol not found ldd libstable-diffusion.so /lib/ld-musl-x86_64.so.1 (0x7ffaa5193000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7ffaa4cb7000) libm.so.6 => /lib/ld-musl-x86_64.so.1 (0x7ffaa5193000) libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7ffaa4c9d000) libc.so.6 => /lib/ld-musl-x86_64.so.1 (0x7ffaa5193000) Error relocating libstable-diffusion.so: __printf_chk: symbol not found Error relocating libstable-diffusion.so: __strncat_chk: symbol not found Error relocating libstable-diffusion.so: __snprintf_chk: symbol not found Error relocating libstable-diffusion.so: getcpu: symbol not found Error relocating libstable-diffusion.so: _ZSt28__throw_bad_array_new_lengthv: symbol not found Error relocating libstable-diffusion.so: __vsnprintf_chk: symbol not found Error relocating libstable-diffusion.so: __sched_cpualloc: symbol not found Error relocating libstable-diffusion.so: __memset_chk: symbol not found Error relocating libstable-diffusion.so: __sched_cpufree: symbol not found Error relocating libstable-diffusion.so: __fprintf_chk: symbol not found Error relocating libstable-diffusion.so: __memcpy_chk: symbol not found Error relocating libstable-diffusion.so: __libc_single_threaded: symbol not found After moving libstable-diffusion.so to /usr/lib/ it still refused to run: Only managed to generate 64x64 images on a 2GB ram server with Q4_1. Build with flash attention. Generating higher resolution crashes with:
UPDATE: I commented out the line that asserts P in ggml.c and it worked! But the resulting image was not following the prompt at all, with default cfg scale, which is 7. |
set DYLD_LIBRARY_PATH Environment Variables for the process works for me |
Hi! There is a problem with the mac os build. When running ./sd binary, it outputs an error
I tried
The text was updated successfully, but these errors were encountered: