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

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   We are compiling go code to so file using `go build` module. Detailed Trace 
log information is below
   
   `go build -mod=mod -buildmode=c-shared -tags cgo,ccalloc -o embedded_go.so 
.` this command generates following error (Tried go v8/ v12 versions):
   
   `
   --
   cmd had error: exit status 2  output:
   # github.com/apache/arrow/go/v8/arrow/memory/internal/cgoalloc
   In file included from allocator.cc:21:
   /usr/include/arrow/memory_pool.h:72:43: error: use of deleted function 
'std::atomic<long int>::atomic(const std::atomic<long int>&)'
   72 \|   std::atomic<int64_t> bytes_allocated_ = 0;
   \|                                           ^
   In file included from /usr/include/arrow/memory_pool.h:20:
   /usr/include/c++/12/atomic:877:7: note: declared here
   877 \|       atomic(const atomic&) = delete;
   \|       ^~~~~~
   /usr/include/c++/12/atomic:881:17: note:   after user-defined conversion: 
'constexpr std::atomic<long int>::atomic(__integral_type)'
   881 \|       constexpr atomic(__integral_type __i) noexcept : 
__base_type(__i) { }
   \|                 ^~~~~~
   /usr/include/arrow/memory_pool.h:73:38: error: use of deleted function 
'std::atomic<long int>::atomic(const std::atomic<long int>&)'
   73 \|   std::atomic<int64_t> max_memory_ = 0;
   \|                                      ^
   /usr/include/c++/12/atomic:877:7: note: declared here
   877 \|       atomic(const atomic&) = delete;
   \|       ^~~~~~
   /usr/include/c++/12/atomic:881:17: note:   after user-defined conversion: 
'constexpr std::atomic<long int>::atomic(__integral_type)'
   881 \|       constexpr atomic(__integral_type __i) noexcept : 
__base_type(__i) { }
   \|                 ^~~~~~
   /usr/include/arrow/memory_pool.h:74:49: error: use of deleted function 
'std::atomic<long int>::atomic(const std::atomic<long int>&)'
   74 \|   std::atomic<int64_t> total_allocated_bytes_ = 0;
   \|                                                 ^
   /usr/include/c++/12/atomic:877:7: note: declared here
   877 \|       atomic(const atomic&) = delete;
   \|       ^~~~~~
   /usr/include/c++/12/atomic:881:17: note:   after user-defined conversion: 
'constexpr std::atomic<long int>::atomic(__integral_type)'
   881 \|       constexpr atomic(__integral_type __i) noexcept : 
__base_type(__i) { }
   \|                 ^~~~~~
   /usr/include/arrow/memory_pool.h:75:38: error: use of deleted function 
'std::atomic<long int>::atomic(const std::atomic<long int>&)'
   75 \|   std::atomic<int64_t> num_allocs_ = 0;
   \|                                      ^
   /usr/include/c++/12/atomic:877:7: note: declared here
   877 \|       atomic(const atomic&) = delete;
   \|       ^~~~~~
   /usr/include/c++/12/atomic:881:17: note:   after user-defined conversion: 
'constexpr std::atomic<long int>::atomic(__integral_type)'
   881 \|       constexpr atomic(__integral_type __i) noexcept : 
__base_type(__i) { }
   \|                 ^~~~~~
   
   `
   
   
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to