Skip to content

[BUILD] jemalloc build error on macOS Catalina #121

@Neroli1108

Description

@Neroli1108

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions