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

asm-conditional-jump: '%+ branch type is currently unsupported #4905

Open
Antigen-1 opened this issue Jan 22, 2024 · 5 comments
Open

asm-conditional-jump: '%+ branch type is currently unsupported #4905

Antigen-1 opened this issue Jan 22, 2024 · 5 comments

Comments

@Antigen-1
Copy link
Contributor

Antigen-1 commented Jan 22, 2024

What version of Racket are you using?
Welcome to Racket v8.11.1 [cs].

What program did you run?
I'm writting programs using emacs, with racket-mode and racket-xp-mode enabled. racket-xp-mode reports an error which is hard to comprehend.

If you got an error message, please include it here.
asm-conditional-jump: '%+ branch type is currently unsupported

Please include any other relevant details

uname -a
Linux fedora 6.6.11-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jan 10 19:25:59 UTC 2024 x86_64 GNU/Linux
@sorawee
Copy link
Collaborator

sorawee commented Jan 22, 2024

That appears to be an error from Chez Scheme. Could you provide more information? What did you do exactly to trigger this error? What program are you running? Etc.

@Antigen-1
Copy link
Contributor Author

Well, it seems to be unstable. I can't reproduce the error after reopening emacs. I suppose it's racket-mode or racket-xp-mode that leads to the crash.

@sorawee
Copy link
Collaborator

sorawee commented Jan 22, 2024

Racket Mode doesn't run until you open a Racket file, though. Can you provide the content of that file?

@Antigen-1
Copy link
Contributor Author

test.rkt

(module main racket/base
  (module bs racket/base
    (require (for-syntax racket/base) syntax/parse/define)
    (provide top (rename-out (n:#%top #%top)))
    (define top (make-parameter values))
    (define-syntax-parse-rule (n:#%top . v:id)
      ((top) 'v)))
  (module ns racket/base
    (require (except-in (submod ".." bs) top))
    (define-namespace-anchor anchor)
    (provide anchor))
  (module help racket/base
    (provide a)
    (define a 1))

  (require racket/runtime-path (submod "." ns) (only-in (submod "." bs) top) syntax/parse/define (for-syntax racket/base))

  (define-runtime-module-path-index help '(submod "." help))
  (define-runtime-module-path-index exp '(submod "." bs))

  (define exp-ns (make-empty-namespace))
  (namespace-attach-module (namespace-anchor->empty-namespace anchor) (module-path-index-resolve exp) exp-ns)
  (namespace-require/expansion-time exp exp-ns)

  (define-syntax-parse-rule (new-begin mod form)
    (let ((ns (make-base-namespace)))
      (parameterize ((current-namespace ns))
        (namespace-require/constant mod))
      (parameterize ((current-namespace exp-ns)
                     (top (lambda (v) (namespace-variable-value v #t #f ns))))
        (eval 'form))))

  (new-begin help a))

@LiberalArtist
Copy link
Contributor

How did you install Racket? Did you use an RPM package, or the installer from https://download.racket-lang.org, or something else?

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

No branches or pull requests

3 participants