gptel icon indicating copy to clipboard operation
gptel copied to clipboard

gptel-menu transient-setup: Native compiler error on Windows

Open ronnac opened this issue 4 months ago • 0 comments

When I run gptel-menu, the menu quickly appears and is immediately replaced by an error:

transient-setup: Native compiler error: (lambda (&optional) (let ((f #'recursive-edit)) (funcall f))), "Compiling c:/Users/xxxxx/.emacs.d/.local/cache/eln/30.0.50-2ce89b29/subr--trampoline-7265637572736976652d65646974_recursive_edit_0.eln...

Error: native-lisp-load-failed (\"c:/Users/xxxxx/.emacs.d/.local/cache/eln/30.0.50-2ce89b29/cl-macs-7ae82f81-bd01b5b8.eln\" \"%1 is not a valid Win32 application.\")
  cl-struct-slot-offset(comp-ctxt d-default)
  comp--alloc-class-to-container(d-default)
  comp--add-const-to-relocs(nil)
  mapc(comp--add-const-to-relocs (nil t consp listp symbol-with-pos-p))
  comp--finalize-relocs()
  comp--compile-ctxt-to-file(\"c:/Users/xxxxx/.emacs.d/.local/cache/eln/30.0.50-2ce89b29/subr--trampoline-7265637572736976652d65646974_recursive_edit_0.eln\")
  comp--final1()
  load-with-code-conversion(\"c:/Users/xxxxx/AppData/Local/Temp/2/emacs-int-comp-subr--trampoline-7265637572736976652d65646974_recursive_edit_0-nMqNKL.el\" \"c:/Users/xxxxx/AppData/Local/Temp/2/emacs-int-comp-subr--trampoline-7265637572736976652d65646974_recursive_edit_0-nMqNKL.el\" nil t)
  command-line-1((\"-l\" \"c:/Users/xxxxx/AppData/Local/Temp/2/emacs-int-comp-subr--trampoline-7265637572736976652d65646974_recursive_edit_0-nMqNKL.el\"))
  command-line()
  normal-top-level()
Native elisp load failed: \"c:/Users/xxxxx/.emacs.d/.local/cache/eln/30.0.50-2ce89b29/cl-macs-7ae82f81-bd01b5b8.eln\", \"%1 is not a valid Win32 application.\"
"

gtpel-send works fine. In doom emacs, transient is a builtin package, v0.5.2

Doom info:

generated  Oct 05, 2024 11:25:56
system     Windows Unknown MINGW64_NT-10.0-19045 3.1.7-340.x86_64 x86_64 w32
emacs      30.0.50 master 3e76e1a91 EMACSDIR=~/.emacs.d/
           EMACS=c:/Users/xxxxx/Documents/Utilities/emacs-master-x86_64-full/bin/emacs
doom       3.0.0-pre PROFILE=_@0 HEAD -> master 8b9168de 2024-10-03 02:26:28 -0400
           ~/.doom.d/
shell      C:\Users\$USER\AppData\Local\Programs\Git\usr\bin\bash.exe
features   ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
           NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TOOLKIT_SCROLL_BARS
           TREE_SITTER WEBP XPM ZLIB
traits     gui server-running envvar-file custom-file
custom     package-selected-packages
modules    :config use-package :completion company vertico :ui doom doom-dashboard
           doom-quit hl-todo modeline ophints (popup +defaults) vc-gutter
           vi-tilde-fringe workspaces :editor (evil +everywhere) file-templates fold
           snippets :emacs dired electric undo :checkers syntax (spell +aspell) :tools
           (debugger +lsp) (eval +overlay) lookup lsp :os tty :lang emacs-lisp
           markdown (org +journal +roam2) plantuml (python +lsp +pyright) sh :config
           (default +bindings +smartparens)
packages   (ox-pandoc :recipe (:host github :repo kawabata/ox-pandoc)) (openwith
           :recipe (:host github :repo thisirs/openwith)) (stripe-buffer :recipe
           (:host github :repo sabof/stripe-buffer)) (gptel :recipe (:host github
           :repo karthink/gptel))

ronnac avatar Oct 05 '24 09:10 ronnac