Skip to content

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

Closed
@Vipul-Cariappa

Description

@Vipul-Cariappa

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
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions