xumingming commented on issue #6550:
URL: 
https://github.com/apache/incubator-gluten/issues/6550#issuecomment-2243127691

   ```
   In file included from /tmp/gluten/cpp/velox/tests/MemoryManagerTest.cc:18:
   /tmp/gluten/cpp/velox/benchmarks/common/BenchmarkUtils.h:28:10: fatal error: 
'benchmark/benchmark.h' file not found
   #include "benchmark/benchmark.h"
            ^~~~~~~~~~~~~~~~~~~~~~~
   1 error generated.
   make[2]: *** 
[velox/tests/CMakeFiles/velox_memory_test.dir/MemoryManagerTest.cc.o] Error 1
   make[1]: *** [velox/tests/CMakeFiles/velox_memory_test.dir/all] Error 2
   make[1]: *** Waiting for unfinished jobs....
   [ 79%] Building CXX object 
velox/tests/CMakeFiles/spark_functions_test.dir/FunctionTest.cc.o
   [ 80%] Building CXX object 
velox/tests/CMakeFiles/spark_functions_test.dir/JsonToProtoConverter.cc.o
   [ 81%] Building CXX object 
velox/tests/CMakeFiles/velox_operators_test.dir/VeloxRowToColumnarTest.cc.o
   [ 81%] Building CXX object 
velox/tests/CMakeFiles/execution_ctx_test.dir/JsonToProtoConverter.cc.o
   [ 82%] Building CXX object 
velox/tests/CMakeFiles/execution_ctx_test.dir/FilePathGenerator.cc.o
   [ 82%] Building CXX object 
velox/tests/CMakeFiles/velox_shuffle_writer_test.dir/JsonToProtoConverter.cc.o
   [ 83%] Building CXX object 
velox/tests/CMakeFiles/velox_shuffle_writer_test.dir/FilePathGenerator.cc.o
   [ 84%] Building CXX object 
velox/tests/CMakeFiles/velox_plan_conversion_test.dir/Substrait2VeloxPlanValidatorTest.cc.o
   [ 85%] Linking CXX executable velox_shuffle_writer_test
   [ 86%] Linking CXX executable execution_ctx_test
   ld: warning: ignoring duplicate libraries: 
'/tmp/gluten/ep/build-velox/build/velox_ep/_build/debug/velox/dwio/common/tests/utils/libvelox_dwio_common_test_utils.a',
 '/opt/homebrew/Cellar/duckdb/1.0.0/lib/libautocomplete_extension.a', 
'/opt/homebrew/Cellar/duckdb/1.0.0/lib/libduckdb_static.a', 
'/opt/homebrew/Cellar/duckdb/1.0.0/lib/libicu_extension.a', 
'/opt/homebrew/Cellar/duckdb/1.0.0/lib/libjson_extension.a', 
'/opt/homebrew/Cellar/duckdb/1.0.0/lib/libparquet_extension.a', 
'/usr/local/lib/libgtest.a'
   ld: warning: ignoring duplicate libraries: 
'/tmp/gluten/ep/build-velox/build/velox_ep/_build/debug/velox/dwio/common/tests/utils/libvelox_dwio_common_test_utils.a',
 '/opt/homebrew/Cellar/duckdb/1.0.0/lib/libautocomplete_extension.a', 
'/opt/homebrew/Cellar/duckdb/1.0.0/lib/libduckdb_static.a', 
'/opt/homebrew/Cellar/duckdb/1.0.0/lib/libicu_extension.a', 
'/opt/homebrew/Cellar/duckdb/1.0.0/lib/libjson_extension.a', 
'/opt/homebrew/Cellar/duckdb/1.0.0/lib/libparquet_extension.a', 
'/usr/local/lib/libgtest.a'
   ld: library 'velox_benchmark_common' not found
   ld: library 'velox_benchmark_common' not found
   clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
   clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
   make[2]: *** [velox/tests/execution_ctx_test] Error 1
   make[1]: *** [velox/tests/CMakeFiles/execution_ctx_test.dir/all] Error 2
   make[2]: *** [velox/tests/velox_shuffle_writer_test] Error 1
   make[1]: *** [velox/tests/CMakeFiles/velox_shuffle_writer_test.dir/all] 
Error 2
   [ 87%] Building CXX object 
velox/tests/CMakeFiles/velox_operators_test.dir/VeloxColumnarBatchSerializerTest.cc.o
   [ 87%] Building CXX object 
velox/tests/CMakeFiles/velox_operators_test.dir/VeloxColumnarBatchTest.cc.o
   /tmp/gluten/cpp/velox/tests/FunctionTest.cc:75:31: error: object backing the 
pointer will be destroyed at the end of the full-expression 
[-Werror,-Wdangling-gsl]
     std::string_view funcName = 
SubstraitParser::getNameBeforeDelimiter(functionSpec);
                                 
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 error generated.
   make[2]: *** 
[velox/tests/CMakeFiles/spark_functions_test.dir/FunctionTest.cc.o] Error 1
   make[1]: *** [velox/tests/CMakeFiles/spark_functions_test.dir/all] Error 2
   [ 87%] Building CXX object 
velox/tests/CMakeFiles/velox_plan_conversion_test.dir/Substrait2VeloxValuesNodeConversionTest.cc.o
   /tmp/gluten/cpp/velox/tests/VeloxRowToColumnarTest.cc:54:56: error: cannot 
initialize a parameter of type 'int64_t *' (aka 'long long *') with an lvalue 
of type 'long[lengthVec.size()]'
       auto cb = rowToColumnarConverter->convert(numRows, lengthArr, address);
                                                          ^~~~~~~~~
   
/tmp/gluten/cpp/velox/operators/serializer//VeloxRowToColumnarConverter.h:34:68:
 note: passing argument to parameter 'rowLength' here
     std::shared_ptr<ColumnarBatch> convert(int64_t numRows, int64_t* 
rowLength, uint8_t* memoryAddress);
                                                                      ^
   1 error generated.
   ```


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to