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

Unable to build with latest GCC #25

Closed
justin8 opened this issue Jun 9, 2015 · 2 comments
Closed

Unable to build with latest GCC #25

justin8 opened this issue Jun 9, 2015 · 2 comments

Comments

@justin8
Copy link

justin8 commented Jun 9, 2015

The latest GCC throws errors about inline crc64. Completely not a C programmer, but the fix on the debian mailing lists appears to be below:

--- a/bcache.c
+++ b/bcache.c
@@ -115,7 +115,7 @@ static const uint64_t crc_table[256] = {
0x9AFCE626CE85B507ULL
};

-inline uint64_t crc64(const void *_data, size_t len)
+uint64_t crc64(const void *_data, size_t len)
{
uint64_t crc = 0xFFFFFFFFFFFFFFFFULL;
const unsigned char *data = _data;

@rolffokkens
Copy link
Contributor

Seems like a nice fix. Which reminds me about the fact that the issue was raised earlier:
#24

@justin8
Copy link
Author

justin8 commented Jun 12, 2015

Ah, I tried searching but must've failed my google fu. I'll close this one then since it is a duplicate and you've got the actual code change done already.

@justin8 justin8 closed this as completed Jun 12, 2015
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

2 participants