microsoft / DiskANN

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

[BUG] Build fails on g++ >= 13 #570

Open MRandl opened 4 months ago

MRandl commented 4 months ago

Expected Behavior

make should compile the application

Actual Behavior

make fails in the middle of the compilation

Example Code

Follow the Readme

Dataset Description

Not applicable

Error

cstdint import missing?

#29 2.394 /home/randl/DiskANN/include/ann_exception.h:22:65: error: 'uint32_t' has not been declared
#29 2.394    22 |                                    const std::string &fileName, uint32_t lineNum);
#29 2.394       |                                                                 ^~~~~~~~
#29 2.394 compilation terminated due to -Wfatal-errors.
#29 2.398 In file included from /home/randl/DiskANN/src/ann_exception.cpp:4:
#29 2.398 /home/randl/DiskANN/include/ann_exception.h:22:65: error: 'uint32_t' has not been declared
#29 2.398    22 |                                    const std::string &fileName, uint32_t lineNum);
#29 2.398       | 

and cascading errors from there

Your Environment

Failing setup:

Working setup:

MRandl commented 4 months ago

It is possible that a transitive dependency was removed within the cpp stdlib implementation. Maybe related to this? https://www.reddit.com/r/Cplusplus/comments/17olfla/comment/k7zbkfz/

MRandl commented 4 months ago

I can try to do a quick PR ~by the end of the week~ if you'd like