scimacs icon indicating copy to clipboard operation
scimacs copied to clipboard

WIP: build: initial linux x86_64 support using nix

Open bennyandresen opened this issue 1 year ago • 6 comments

it basically builds without error. Both the shared graal library "LibScimacs" and the Rust library "scimacs". It can't be loaded for a reason I don't yet understand.

Module could not be opened: "/home/benny/Code/Playground/scimacs/scimacs.so", "/home/benny/Code/Playground/scimacs/scimacs.so: undefined symbol: graal_create_isolate"

Full results:

$ emacs --script test.el
Testing scimacs...
Loadable module found: /home/benny/Code/Playground/scimacs/scimacs.so

Error: module-open-failed ("/home/benny/Code/Playground/scimacs/scimacs.so" "/home/benny/Code/Playground/scimacs/scimacs.so: undefined symbol: graal_create_isolate")
  mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode 0x10aa1fbde7aef0ea>))
  debug-early-backtrace()
  debug-early(error (module-open-failed "/home/benny/Code/Playground/scimacs/scimacs.so" "/home/benny/Code/Playground/scimacs/scimacs.so: undefined symbol: graal_create_isolate"))
  require(scimacs)
  (progn (message (format "Loadable module found: %s" location)) (require 'scimacs) (message "Symbols loaded from scimacs:") (mapatoms #'(lambda (symbol) (let ((symbol-name (symbol-name symbol))) (if (string-prefix-p "scimacs-" symbol-name) (message (format "  %s" symbol-name)))))) (message "Evaluating forms with sci:") (mapcar #'(lambda (form) (message (format "  %s ; => %s" form (scimacs-eval-sci form)))) '("[1 2 3]" "(+ 1 1)" "(mapv inc (range 5))" "(reduce + (range 5))")))
  (if location (progn (message (format "Loadable module found: %s" location)) (require 'scimacs) (message "Symbols loaded from scimacs:") (mapatoms #'(lambda (symbol) (let ((symbol-name (symbol-name symbol))) (if (string-prefix-p "scimacs-" symbol-name) (message (format "  %s" symbol-name)))))) (message "Evaluating forms with sci:") (mapcar #'(lambda (form) (message (format "  %s ; => %s" form (scimacs-eval-sci form)))) '("[1 2 3]" "(+ 1 1)" "(mapv inc (range 5))" "(reduce + (range 5))"))) (message "Could not find loadable module!"))
  (let* ((location (and t (locate-library "scimacs")))) (if location (progn (message (format "Loadable module found: %s" location)) (require 'scimacs) (message "Symbols loaded from scimacs:") (mapatoms #'(lambda (symbol) (let ((symbol-name (symbol-name symbol))) (if (string-prefix-p "scimacs-" symbol-name) (message (format "  %s" symbol-name)))))) (message "Evaluating forms with sci:") (mapcar #'(lambda (form) (message (format "  %s ; => %s" form (scimacs-eval-sci form)))) '("[1 2 3]" "(+ 1 1)" "(mapv inc (range 5))" "(reduce + (range 5))"))) (message "Could not find loadable module!")))
  #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_99>(#<buffer  *load*> "/home/benny/Code/Playground/scimacs/test.el")
  load-with-code-conversion("/home/benny/Code/Playground/scimacs/test.el" "/home/benny/Code/Playground/scimacs/test.el" nil t #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_99>)
  command-line--load-script("/home/benny/Code/Playground/scimacs/test.el")
  command-line-1(("-scriptload" "test.el"))
  command-line()
  normal-top-level()
Module could not be opened: "/home/benny/Code/Playground/scimacs/scimacs.so", "/home/benny/Code/Playground/scimacs/scimacs.so: undefined symbol: graal_create_isolate"

bennyandresen avatar Mar 21 '23 19:03 bennyandresen