microsoft / DiskANN

Graph-structured Indices for Scalable, Fast, Fresh and Filtered Approximate Nearest Neighbor Search
Other
1.02k stars 208 forks source link

fix compile error #531

Open zhjwpku opened 5 months ago

zhjwpku commented 5 months ago

I got the following compile error, this patch add libaio to the target's link libraries.

[ 43%] Linking CXX executable build_memory_index
/usr/bin/ld: ../src/libdiskann.so: undefined reference to `io_submit'
/usr/bin/ld: ../src/libdiskann.so: undefined reference to `io_getevents'
/usr/bin/ld: ../src/libdiskann.so: undefined reference to `io_setup'
/usr/bin/ld: ../src/libdiskann.so: undefined reference to `io_destroy'
collect2: error: ld returned 1 exit status
make[2]: *** [apps/CMakeFiles/build_memory_index.dir/build.make:99: apps/build_memory_index] Error 1
make[1]: *** [CMakeFiles/Makefile2:304: apps/CMakeFiles/build_memory_index.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Reference Issues/PRs

What does this implement/fix? Briefly explain your changes.

Any other comments?