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

jemalloc can not compile with XCode 11.4 SDK #1801

Closed
vincentdchan opened this issue Mar 29, 2020 · 2 comments
Closed

jemalloc can not compile with XCode 11.4 SDK #1801

vincentdchan opened this issue Mar 29, 2020 · 2 comments

Comments

@vincentdchan
Copy link

I updated my XCode yesterday, now I can not compile jemalloc's master branch.

Error:

include/jemalloc/internal/../jemalloc.h:226:28: error: exception specification in declaration does not match previous declaration
    void JEMALLOC_NOTHROW       *je_malloc(size_t size)
                                 ^
include/jemalloc/internal/../jemalloc.h:69:21: note: expanded from macro 'je_malloc'
#  define je_malloc malloc
                    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:40:7: note:
      previous declaration is here
void    *malloc(size_t __size) __result_use_check __alloc_size(1);
         ^
In file included from src/jemalloc_cpp.cpp:9:
In file included from include/jemalloc/internal/jemalloc_preamble.h:21:
@davidtgoldblatt
Copy link
Member

This should be fixed in current DEV head -- patching in 3b4a03b should fix things. (If you're getting jemalloc via homebrew, I think that they've already backported the patch).

@vincentdchan
Copy link
Author

@davidtgoldblatt It's OK now, thank you very much!

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