Skip to content

Build error with gcc 10.3.0 #777

Open
@mellis13

Description

@mellis13

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

Metadata

Metadata

Assignees

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