Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#61419 closed defect (fixed)

jemalloc @5.2.1_0: error: exception specification in declaration does not match previous declaration

Reported by: rswail (Ron Wail) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: bigsur Cc:
Port: jemalloc

Description

Building jemalloc on Big Sur 11.0.1 Beta 2 with Xcode 12.2 Release Candidate.

Build fails with error about JEMALLOC_NOTHROW for declarations of je_malloc, je_calloc, je_posix_memalign, je_aligned_alloc, je_realloc, je_free, je_valloc:

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

Change History (3)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: bigsur added
Owner: set to ryandesign
Status: newaccepted
Summary: jemalloc @5.2.1_0 build failure on Big Sur 11.0.1 Beta 2jemalloc @5.2.1_0: error: exception specification in declaration does not match previous declaration

It sounds like a bug in jemalloc, not something specific to MacPorts.

It looks like it has already been reported to the developers and they committed a fix that we could add to the port.

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 266c23583f51836b8c386bdae14278c75fbd027e/macports-ports (master):

jemalloc: Fix build with Xcode 11.4 and later

Closes: #61419

comment:3 Changed 3 years ago by kimura wataru <kimuraw@…>

In a3f113354f39fb786cdc8e5633cb843a9674b132/macports-ports (master):

devel/jemalloc: revbump for issue 61419

closes: #63586

see: #61419

Note: See TracTickets for help on using tickets.