sionescu/static-vectors

CCL's |memcpy| is often not found

borodust opened this issue · 5 comments

Few users report issues with CCL's |memcpy| mappings. But sometimes it just works (I cannot reproduce the issue myself). What could be a possible reason? Would you accept a PR changing |memcpy| usages with CFFI calls?

borodust/trivial-gamekit#31

SIGNAL Undefined function X86-LINUX64::|memcpy| called with arguments

borodust/hello-gamekit#2

Error: Undefined function WIN64::|memcpy| called with arguments

borodust/notalone#3

DEFAULT-UNDEFINED-FUNCTION-CALL-RESTARTS 10242206 X86-DARWIN64::|memcpy|

3b commented

also got Error: Foreign function not found: WIN64::|memset| on Clozure Common Lisp Version 1.11.5/v1.11.5 (WindowsX8664), windows 8.1

I think this should be reported upstream because I've had other reports where the released binaries worked, but recompiling CCL triggered this failure.

Sure, a patch that uses cffi:foreign-funcall is OK for me.

3b commented

Seems like my problem was a bad install of ccl, was missing the win64-headers/ directory which the "#_" apparently needs to find the functions.

@borodust can you also check if the headers were present in those bug reports ?