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

GCC 5 support #8

Open
dschnabel opened this issue Feb 23, 2021 · 3 comments
Open

GCC 5 support #8

dschnabel opened this issue Feb 23, 2021 · 3 comments

Comments

@dschnabel
Copy link

dschnabel commented Feb 23, 2021

I'm using libsnowboy-detect.a in my project. In order to make the linker happy I need to run my linker command with -D_GLIBCXX_USE_CXX11_ABI=0 or it will not work. This option instructs the linker to use the the old ABI (see here for more info).

If I don't use other third party libraries, this would be fine. However, I also need to link against additional libraries that require the new ABI and won't work in combination with -D_GLIBCXX_USE_CXX11_ABI=0.

Can you provide libraries that are compatible with the new ABI (GCC >= 5.1) please?

Edit:
I see there's already a discussion and workaround under Kitt-AI#99

@chenguoguo
Copy link
Collaborator

Could you add that to the Makefile so that it can handle both GCC >= 5.1 and GCC < 5.1?

@dschnabel
Copy link
Author

I actually had better success applying the wrapper provided in Kitt-AI#99 (comment).

I guess you could make that wrapper part of the source code and modify the Makefile so that it will use the wrapper script when compiling with GCC >= 5.1. I'm not very familiar with Makefile development, so I'll leave the implementation to somebody who has better expertise.

@Thalhammer
Copy link

Hi @dschnabel

You can use https://github.com/Thalhammer/snowman and compile it for your os/cpu arch. It should be compatible with the original snowboy models and can be compiled for any os/arch you like (we even have webassembly support).

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