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

Build error with gcc 10.3.0 #777

Open
mellis13 opened this issue Jun 3, 2021 · 2 comments
Open

Build error with gcc 10.3.0 #777

mellis13 opened this issue Jun 3, 2021 · 2 comments
Assignees

Comments

@mellis13
Copy link

mellis13 commented Jun 3, 2021

Describe the bug
RedisAI fails to link when using gcc 10.3.0. Numerous errors are generated that have the form:

/usr/bin/ld: src/CMakeFiles/redisai_obj.dir/serialization/ai_datatypes.c.o:(.bss+0x410): multiple definition of `RedisAI_ClearError'; src/CMakeFiles/redisai_obj.dir/redisai.c.o:(.bss+0x410): first defined here
/usr/bin/ld: src/CMakeFiles/redisai_obj.dir/serialization/ai_datatypes.c.o:(.bss+0x418): multiple definition of `RedisAI_InitError'; src/CMakeFiles/redisai_obj.dir/redisai.c.o:(.bss+0x418): first defined here

On the same system, using gcc 8.3.0 RedisAI compiled and linked successfully.

To Reproduce

# with gcc 10.3.0
bash get_deps.sh cpu
ALL=1 make -C opt clean build

Expected behavior

No linking errors.

Environment:

  • OS: Linux
  • Version master and 1.2 branches.
  • Platfrom x86
  • Runtime CPU
@DvirDukhan
Copy link
Collaborator

@mellis13 thanks for reporting
we are aware of build issues with gcc version >= 10 and we will try to deliver a proper solution for that
Thanks

@Spartee
Copy link
Contributor

Spartee commented Jun 4, 2021

Just wanted to add this as it seems to be related: Shopify/semian#261 (comment)

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

4 participants