-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Clang compilation errors #80
Comments
igorcanadi
added a commit
that referenced
this issue
Feb 10, 2014
Summary: Looks like gnu++11 is not very portable (see #80). We don't (yet) depend on any extensions of gnu++11, so I think we should switch back to c++11. More on this topic here: http://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Extensions.html Test Plan: make check works :) Reviewers: kailiu, dhruba, haobo Reviewed By: kailiu CC: leveldb Differential Revision: https://reviews.facebook.net/D16053
(1) is fixed |
Yes, 2nd case seems to be fixed in master. |
I use clang 5.0 MacOS but didn't reproduce it (but I do saw that problem in some other platform). I'll submit a diff to fix #3 soon. |
petermattis
pushed a commit
to petermattis/rocksdb
that referenced
this issue
May 1, 2020
util/channel.h: remove an invalid const specifier
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiling with clang-3.3 results in following errors:
The same bug is reported here:
http://llvm.org/bugs/show_bug.cgi?id=13530
Changing -std=gnu++11 to -std=c++11 seems to fix it.
This seems to be a well-known bug in the c++ standard library:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58982
A workaround was found that fixes that and works in both gcc-4.8 and clang-3.3:
This std::unordered_map constructor is declared explicit. A patch that makes this compile:
The text was updated successfully, but these errors were encountered: