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

[Bug] _lfortran_caimag and _lfortran_zaimag is defined as @ccall but is not defined anywhere #2703

Closed
Vipul-Cariappa opened this issue May 15, 2024 · 0 comments · Fixed by #2704

Comments

@Vipul-Cariappa
Copy link
Contributor

A bug arises when using the modulo operator with the interactive shell. LLVM jit cannot find _lfortran_caimag and _lfortran_zaimag functions. I used grep to find any definition of the two functions but I did not find any. I believe the functions are not required.

Example to replicate:

>>> print(2 % 3)
JIT session error: Symbols not found: [ _lfortran_zaimag, _lfortran_caimag ]
< Stack Track ... >

You will find that they are declared at

@ccall
def _lfortran_caimag(x: c32) -> f32:
pass
@ccall
def _lfortran_zaimag(x: c64) -> f64:
pass
.

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

Successfully merging a pull request may close this issue.

1 participant