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

[BUILD] jemalloc build error on macOS Catalina #121

Open
Neroli1108 opened this issue Sep 3, 2020 · 1 comment
Open

[BUILD] jemalloc build error on macOS Catalina #121

Neroli1108 opened this issue Sep 3, 2020 · 1 comment

Comments

@Neroli1108
Copy link
Collaborator

What OS are you using?

macOS Catalina

What compiler are you using? What version?

Apple clang version 11.0.3

What's your CMake arguments?

cmake .. -DBUILD_JAVA_CLIENT=OFF

What is the output of the CMake and make commands on a fresh build? (Please sanitize any sensitive information)

make

 In file included from src/jemalloc_cpp.cpp:9:
 In file included from include/jemalloc/internal/jemalloc_preamble.h:21:
 include/jemalloc/internal/../jemalloc.h:215:28: error: exception specification  in declaration does not match previous declaration
     void JEMALLOC_NOTHROW       *je_malloc(size_t size)
                                  ^
 include/jemalloc/internal/../jemalloc.h:66: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);
          ^

Work around by switching to the gcc.

@Kevincklhhh
Copy link

What OS are you using?

macOS Catalina

What compiler are you using? What version?

Apple clang version 11.0.3

What's your CMake arguments?

cmake .. -DBUILD_JAVA_CLIENT=OFF

What is the output of the CMake and make commands on a fresh build? (Please sanitize any sensitive information)

make

 In file included from src/jemalloc_cpp.cpp:9:
 In file included from include/jemalloc/internal/jemalloc_preamble.h:21:
 include/jemalloc/internal/../jemalloc.h:215:28: error: exception specification  in declaration does not match previous declaration
     void JEMALLOC_NOTHROW       *je_malloc(size_t size)
                                  ^
 include/jemalloc/internal/../jemalloc.h:66: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);
          ^

Work around by switching to the gcc.

Could you explain how did you work around this issue? How did you switch to gcc in this case?
Thanks

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