You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "felipecrv (via GitHub)" <gi...@apache.org> on 2023/02/15 17:42:29 UTC

[GitHub] [arrow] felipecrv opened a new issue, #34206: jemalloc prepocessor definitions causes unity builds to mix jemalloc and system allocator functions

felipecrv opened a new issue, #34206:
URL: https://github.com/apache/arrow/issues/34206

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   Since `jemalloc.h` does
   
       #  define malloc je_malloc
   
   when `JEMALLOC_MANGLE` is defined, we can get this error in CI during an unity build
   
       /arrow/cpp/src/arrow/vendored/ProducerConsumerQueue.h: In constructor 'arrow_vendored::folly::ProducerConsumerQueue<T>::ProducerConsumerQueue(uint32_t)':
   
       /arrow/cpp/src/arrow/vendored/ProducerConsumerQueue.h:82:39: error: 'je_arrow_malloc' is not a member of 'std'; did you mean 'je_arrow_malloc'?
   
          82 |         records_(static_cast<T*>(std::malloc(sizeof(T) * size))),
   
             |                                       ^~~~~~
   
       jemalloc_ep-prefix/src/jemalloc_ep/dist/include/jemalloc/jemalloc.h:254:32: note: 'je_arrow_malloc' declared here
   
         254 |     void JEMALLOC_SYS_NOTHROW *je_malloc(size_t size)
   
             |                                ^~~~~~~~~
   
       /arrow/cpp/src/arrow/vendored/ProducerConsumerQueue.h: In destructor 'arrow_vendored::folly::ProducerConsumerQueue<T>::~ProducerConsumerQueue()':
   
       /arrow/cpp/src/arrow/vendored/ProducerConsumerQueue.h:106:10: error: 'je_arrow_free' is not a member of 'std'; did you mean 'je_arrow_free'?
   
         106 |     std::free(records_);
   
             |          ^~~~
   
       jemalloc_ep-prefix/src/jemalloc_ep/dist/include/jemalloc/jemalloc.h:269:43: note: 'je_arrow_free' declared here
   
         269 | JEMALLOC_EXPORT void JEMALLOC_SYS_NOTHROW je_free(void *ptr)
   
             |                                           ^~~~~~~
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] felipecrv commented on issue #34206: jemalloc prepocessor definitions causes unity builds to mix jemalloc and system allocator functions

Posted by "felipecrv (via GitHub)" <gi...@apache.org>.
felipecrv commented on issue #34206:
URL: https://github.com/apache/arrow/issues/34206#issuecomment-1431760757

   take


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] kou closed issue #34206: [C++] jemalloc prepocessor definitions causes unity builds to mix jemalloc and system allocator functions

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou closed issue #34206: [C++] jemalloc prepocessor definitions causes unity builds to mix jemalloc and system allocator functions
URL: https://github.com/apache/arrow/issues/34206


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org