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

lpython_floordiv causes linker error #2147

Open
certik opened this issue Jul 11, 2023 · 1 comment
Open

lpython_floordiv causes linker error #2147

certik opened this issue Jul 11, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@certik
Copy link
Contributor

certik commented Jul 11, 2023

duplicate symbol '___lpython_overloaded_6___lpython_floordiv' in:
    CMakeFiles/matvec.dir/mat_vec-host-generated.c.o
    device/libmatvec.mod.a(mat_vec_device-generated.c.o)
ld: 1 duplicate symbol for architecture arm64

This is the same error as #2129, but now for a function from a different module.

@certik certik added bug Something isn't working high priority The issue is blocking other projects, not easy to workaround, must be fixed as soon as possible labels Jul 11, 2023
@certik
Copy link
Contributor Author

certik commented Jul 11, 2023

I have a very hackish workaround (I postprocess the generated C file with a Python script and remove the duplication...), so it's not a blocker, but this is a high priority.

@certik certik removed the high priority The issue is blocking other projects, not easy to workaround, must be fixed as soon as possible label Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant