Closed Nihlus closed 3 months ago
There seems to be some build failures. Need some help looking into it.
There's going to be some fiddling here on my part as I get all the platforms in line with each other.
Got no clue on this, fire I think did the build system for linux. But mostly I would say it's looking at the CMake from whisper and try to replicate in SConstruct.
Would be really cool tho if we could get all platforms(web included) work and build.
However not in this PR, if build passes thats great already and probl can be merged.
The remaining build errors appear to be either transient problems (x86_64 on Android) or permisson-related things (Mac build succeeds but can't be signed), so I think we're good to go.
However, I'm only getting nonsense back when I try any input on my device, so it's probably prudent to test on someone else's machine with the built binaries to see if it's a local issue.
Mac signing will pass on main branch. Will make a pr to disable it on non main.
I guess we can disable android x86 if it's not that used
Android x86_64 passed in a previous commit, so it's probably a temporary issue that'd go away with a re-run. Try restarting the workflow :)
This PR adds
_GNU_SOURCE
to the defines, matching what ggml has in its build system. Not having this defined results in a number of macros being taken up as implicitly-defined functions, which are then not found at runtime.Additionally,
OpenCL
is added to the linked libraries unless overridden withOpenCL_LIBRARY
in the environment variables. This fixesclBuildProgram
not being resolved at runtime.Android and wasm are currently unhandled by this PR - if anyone from the dev team could take a look at that and give me some pointers, I'd very much appreciate it.
Fixes #73.