Skip to content
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

Update Makefile #2

Merged
merged 1 commit into from
Feb 2, 2024
Merged

Update Makefile #2

merged 1 commit into from
Feb 2, 2024

Conversation

Cyb3rDudu
Copy link
Contributor

Deletes the SYMDEF file extracted from the former archive to avoid linking implications when creating libstablediffusion.a

The content of libncnn.a is taken to create libstablediffusion.a. However, this results in having two __.SYMDEF files in the new archive. This is tolerated by the linker on Linux because the gnu flavor just picks the first file, the bsd linker however refuses to link if 2 SYMDEF files live in the archive.
So to fix this issue, the SYMDEF file coming from ncnn has to be deleted before the new archive gets created.

Fixes mudler/LocalAI#1443

Deletes the SYMDEF file extracted from the former archive to avoid linking implications when creating libstablediffusion.a
@mudler mudler merged commit e6158aa into mudler:master Feb 2, 2024
@Cyb3rDudu Cyb3rDudu deleted the patch-1 branch February 2, 2024 18:46
@mudler
Copy link
Owner

mudler commented Feb 2, 2024

@jamu85 this actually broke again building on linux: https://github.com/mudler/LocalAI/actions/runs/7760966485/job/21168401558?pr=1674

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to build on macOS (m2 max, sonoma 14.2) with stablediffusion enabled.
2 participants