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

Blank output when compiled with GCC and ASM is enabled #14

Open
shssoichiro opened this issue May 3, 2022 · 3 comments
Open

Blank output when compiled with GCC and ASM is enabled #14

shssoichiro opened this issue May 3, 2022 · 3 comments

Comments

@shssoichiro
Copy link

shssoichiro commented May 3, 2022

Initially brought this up in #13 (comment), thought it made sense to create an issue to track this, even if there's no clue on a solution. Several others have reproduced it, so I wanted to document the workaround as well.

The workaround is to build this plugin with Clang or MSVC. You can use clang by prefixing CC=clang CXX=clang++ to the meson build step.

@Stefan-Olt
Copy link

Any idea what causes this issue? I have created a build repo for Linux (and macOS) that uses gcc, supporting another compiler is quite difficult (it's a custom build compiler using an old libc6 for compatibility with many Linux distributions).
So I would rather fix the issue here. Additionally this could be an issue that may not be GCC specific and could occur with newer clang versions or optimization options as well

@Stefan-Olt
Copy link

Investigation:
I started replacing all SSE2 functions with their C equivalent, I had to replace all functions used to make it work correctly. This told me it is a general issue, not a single line.
And I found it auto&causes the problem, if I just use auto everything is fine. Can someone test if changing that does brake Clang/MSVC support?

@Stefan-Olt
Copy link

Have now open a pull request for a fix (also including Neon optimizations)

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

2 participants