You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "xumingming (via GitHub)" <gi...@apache.org> on 2024/05/21 14:26:25 UTC

[I] Build failed on macOS(again) [incubator-gluten]

xumingming opened a new issue, #5832:
URL: https://github.com/apache/incubator-gluten/issues/5832

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   ```
   In file included from gluten/cpp/core/memory/AllocationListener.cc:18:
   gluten/cpp/core/memory/AllocationListener.h:63:27: error: no member named 'max' in namespace 'std'; did you mean 'fmax'?
           peakBytes_ = std::max(peakBytes_, reservationBytes_);
                        ~~~~~^~~
                             fmax
   /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/cmath:434:9: note: 'fmax' declared here
   using ::fmax _LIBCPP_USING_IF_EXISTS;
           ^
   1 error generated.
   make[2]: *** [core/CMakeFiles/gluten.dir/memory/AllocationListener.cc.o] Error 1
   make[2]: *** Waiting for unfinished jobs....
   [ 51%] Building CXX object core/CMakeFiles/gluten.dir/jni/JniError.cc.o
   In file included from gluten/cpp/core/memory/MemoryAllocator.cc:18:
   In file included from gluten/cpp/core/memory/MemoryAllocator.h:26:
   gluten/cpp/core/memory/AllocationListener.h:63:27: error: no member named 'max' in namespace 'std'; did you mean 'fmax'?
           peakBytes_ = std::max(peakBytes_, reservationBytes_);
                        ~~~~~^~~
                             fmax
   /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/cmath:434:9: note: 'fmax' declared here
   using ::fmax _LIBCPP_USING_IF_EXISTS;
           ^
   1 error generated.
   make[2]: *** [core/CMakeFiles/gluten.dir/memory/MemoryAllocator.cc.o] Error 1
   make[1]: *** [core/CMakeFiles/gluten.dir/all] Error 2
   make: *** [all] Error 2
   ```
   
   ### Spark version
   
   None
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   _No response_


-- 
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: commits-unsubscribe@gluten.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [I] [CORE]Build failed on macOS(again) [incubator-gluten]

Posted by "Yohahaha (via GitHub)" <gi...@apache.org>.
Yohahaha closed issue #5832: [CORE]Build failed on macOS(again)
URL: https://github.com/apache/incubator-gluten/issues/5832


-- 
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: commits-unsubscribe@gluten.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [I] Build failed on macOS(again) [incubator-gluten]

Posted by "xumingming (via GitHub)" <gi...@apache.org>.
xumingming commented on issue #5832:
URL: https://github.com/apache/incubator-gluten/issues/5832#issuecomment-2122773015

   chatgpt tells me `std::max` is in header: `algorithm`
   
   ```
   In C++, the std::max function is defined in the header file <algorithm>. This function is part of the Standard Library and is used to return the maximum of two values.
   
   Here is an example of how to use std::max:
   
   #include <algorithm> // Header file for std::max
   
   int main() {
       int a = 10;
       int b = 20;
       int max_value = std::max(a, b); // max_value will be 20
       return 0;
   }
   Make sure to include the <algorithm> header in your C++ source files whenever you want to use std::max or any other functions defined in the algorithm library.
   ```


-- 
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: commits-unsubscribe@gluten.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org