You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "PHILO-HE (via GitHub)" <gi...@apache.org> on 2025/07/22 07:31:50 UTC

[PR] [CORE] Fix missing build information [incubator-gluten]

PHILO-HE opened a new pull request, #10243:
URL: https://github.com/apache/incubator-gluten/pull/10243

   ## What changes were proposed in this pull request?
   
   Fix issue reported here: https://github.com/apache/incubator-gluten/issues/10102#issuecomment-3095015236.
   
   The build information is added in two places during the compile phase: `gluten-core/pom.xml` and `gluten-substrait/pom.xml`. And they both modify `gluten-build-info.properties` placed in gluten-core's resource path: `gluten-core/target/generated-resources/`.
   
   When building module gluten-core, the generated resources will be copy into target/classes/ and then be packed into module jar. In the later build for module gluten-substrait, the backend related build info is just added in the property file under gluten-core's resource path. And at the final package phase for the project, the shade plugin just packs classes and resource files inside module jars, not considering a module's resource path, which means the later added build info is not actually covered by the property file inside Gluten fat jar.
   
   In this pr, gluten-core's resource file is included in package module, and a configuration is added for shade plugin to exclude the property file comes from gluten-core jar.
   
   ## How was this patch tested?
   
   Check in local test.
   
   


-- 
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: [PR] [CORE] Fix missing build information [incubator-gluten]

Posted by "PHILO-HE (via GitHub)" <gi...@apache.org>.
PHILO-HE merged PR #10243:
URL: https://github.com/apache/incubator-gluten/pull/10243


-- 
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: [PR] [CORE] Fix missing build information [incubator-gluten]

Posted by "PHILO-HE (via GitHub)" <gi...@apache.org>.
PHILO-HE commented on PR #10243:
URL: https://github.com/apache/incubator-gluten/pull/10243#issuecomment-3112960272

   @A-little-bit-of-data, in my test with main branch, the java version is correctly displayed. I note you are using 1.4.0. It is because an extra space is appended for "--java" at the line below, which has already been fixed in main branch.
   
   https://github.com/apache/incubator-gluten/blob/v1.4.0/gluten-core/pom.xml#L182


-- 
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: [PR] [CORE] Fix missing build information [incubator-gluten]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #10243:
URL: https://github.com/apache/incubator-gluten/pull/10243#issuecomment-3101437345

   <!--
     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
     regarding copyright ownership.  The ASF licenses this file
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at
   
       http://www.apache.org/licenses/LICEGJ-2.0
   
     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.
   -->
   
   Thanks for opening a pull request!
   
   Could you open an issue for this pull request on Github Issues?
   
   https://github.com/apache/incubator-gluten/issues
   
   Then could you also rename ***commit message*** and ***pull request title*** in the following format?
   
       [GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}
   
   See also:
   
     * [Other pull requests](https://github.com/apache/incubator-gluten/pulls/)
   
   


-- 
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: [PR] [CORE] Fix missing build information [incubator-gluten]

Posted by "PHILO-HE (via GitHub)" <gi...@apache.org>.
PHILO-HE commented on PR #10243:
URL: https://github.com/apache/incubator-gluten/pull/10243#issuecomment-3106425559

   @A-little-bit-of-data, if you are building Gluten early versions with latest docker image, please add `--build_arrow=ON` to re-install all required arrow libs, including libparquet.a.
   
   In gluten main branch, we have removed the dependency on libparquet.a and also removed it from arrow build and installation. Then, latest docker image doesn't contain libparquet.a in its system lib path. Therefore, if older gluten version that still requires libparquet.a, you have to enable that arrow option.


-- 
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: [PR] [CORE] Fix missing build information [incubator-gluten]

Posted by "A-little-bit-of-data (via GitHub)" <gi...@apache.org>.
A-little-bit-of-data commented on PR #10243:
URL: https://github.com/apache/incubator-gluten/pull/10243#issuecomment-3112332800

   > @A-little-bit-of-data, if you are building Gluten early versions with latest docker image, please add `--build_arrow=ON` to re-install all required arrow libs, including libparquet.a.
   > 
   > In gluten main branch, we have removed the dependency on libparquet.a and also removed it from arrow build and installation. Then, latest docker image doesn't contain libparquet.a in its system lib path. Therefore, if older gluten version that still requires libparquet.a, you have to enable that arrow option.
   
   @PHILO-HE 
   After recompiling and restarting, the log is as follows:
   ```
    ==============================================================
   
    Components: Velox
   
    Component Velox Branch: HEAD
   
    Component Velox Revision: eeb59ff4e1d298ad41e5dab54874fd03dee95481
   
    Component Velox Revision Time: 2025-05-12 17:18:16 +0800
   
    Gluten Version: 1.4.0
   
    GCC Version: GCC: (GNU) 11.2.1 20220127 (Red Hat 11.2.1-9)
   
    Java Version: <unknown>
   
    Scala Version: 2.12.15
   
    Spark Version: 3.5.2
   
    Hadoop Version: 3.3.4
   
    Gluten Branch: branch-1.4
   
    Gluten Revision: 50dd117dadb9fe3e9bba5c5002168e1294b2e2bb
   
    Gluten Revision Time: 2025-06-06 15:51:55 +0800
   
    Gluten Build Time: 2025-07-24T06:49:37Z
   
    Gluten Repo URL: https://ghfast.top/https://github.com/apache/incubator-gluten.git
   ```


-- 
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: [PR] [CORE] Fix missing build information [incubator-gluten]

Posted by "A-little-bit-of-data (via GitHub)" <gi...@apache.org>.
A-little-bit-of-data commented on PR #10243:
URL: https://github.com/apache/incubator-gluten/pull/10243#issuecomment-3106268851

   @PHILO-HE   
   Hello, I also compiled it under X86, and an error occurred at the last step.
   
   Compile script :`./dev/builddeps-veloxbe.sh --run_setup_script=OFF --enable_s3=ON --enable_gcs=OFF --enable_abfs=OFF --enable_vcpkg=ON --build_arrow=OFF &&     mvn clean package -Pbackends-velox -Pspark-3.5 -DskipTests`
   
   
   
   ```
   [647/647] Building CXX object velox/connectors/fuzzer/CMakeFiles/velox_fuzzer_connector.dir/FuzzerConnector.cpp.o
   make[1]: Leaving directory '/incubator-gluten/ep/build-velox/build/velox_ep'
   + '[' -d _build/release/_deps ']'
   + echo 'Successfully built Velox from Source.'
   Successfully built Velox from Source.
   + build_gluten_cpp
   + echo 'Start to build Gluten CPP'
   Start to build Gluten CPP
   + cd /incubator-gluten/dev/../cpp
   + rm -rf build
   + mkdir build
   + cd build
   + GLUTEN_CMAKE_OPTIONS='-DBUILD_VELOX_BACKEND=ON     -DCMAKE_BUILD_TYPE=Release     -DVELOX_HOME=/incubator-gluten/dev/../ep/build-velox/build/velox_ep     -DBUILD_TESTS=OFF     -DBUILD_EXAMPLES=OFF     -DBUILD_BENCHMARKS=OFF     -DENABLE_JEMALLOC_STATS=OFF     -DENABLE_HBM=OFF     -DENABLE_QAT=OFF     -DENABLE_IAA=OFF     -DENABLE_GCS=OFF     -DENABLE_S3=ON     -DENABLE_HDFS=OFF     -DENABLE_ABFS=OFF'
   + '[' Linux == Darwin ']'
   + cmake -DBUILD_VELOX_BACKEND=ON -DCMAKE_BUILD_TYPE=Release -DVELOX_HOME=/incubator-gluten/dev/../ep/build-velox/build/velox_ep -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_BENCHMARKS=OFF -DENABLE_JEMALLOC_STATS=OFF -DENABLE_HBM=OFF -DENABLE_QAT=OFF -DENABLE_IAA=OFF -DENABLE_GCS=OFF -DENABLE_S3=ON -DENABLE_HDFS=OFF -DENABLE_ABFS=OFF ..
   -- Building using CMake version: 3.28.3
   -- The C compiler identification is GNU 11.2.1
   -- The CXX compiler identification is GNU 11.2.1
   -- Detecting C compiler ABI info
   -- Detecting C compiler ABI info - done
   -- Check for working C compiler: /opt/rh/devtoolset-11/root/usr/bin/cc - skipped
   -- Detecting C compile features
   -- Detecting C compile features - done
   -- Detecting CXX compiler ABI info
   -- Detecting CXX compiler ABI info - done
   -- Check for working CXX compiler: /opt/rh/devtoolset-11/root/usr/bin/c++ - skipped
   -- Detecting CXX compile features
   -- Detecting CXX compile features - done
   -- Add definition NDEBUG
   -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
   -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
   -- Check if compiler accepts -pthread
   -- Check if compiler accepts -pthread - yes
   -- Found Threads: TRUE  
   -- Found JNI: /usr/lib/jvm/java-1.8.0-openjdk/include  found components: AWT JVM 
   -- Found glog: /incubator-gluten/dev/vcpkg/vcpkg_installed/x64-linux-avx/lib/libglog.a  
   -- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1") 
   Core module final CMAKE_CXX_FLAGS= -Wno-class-memaccess -Wno-error=unused-but-set-variable       -Wall        -Wno-sign-compare        -Wno-comment        -Werror        -Wno-error=parentheses        -Wno-error=unused-function        -Wno-error=unused-variable        -Wno-strict-aliasing        -Wno-ignored-qualifiers        -Wno-deprecated-declarations        -Wno-attributes -mavx2 -mfma -mavx -mf16c -mlzcnt -mbmi2
   -- Found Boost: /incubator-gluten/dev/vcpkg/vcpkg_installed/x64-linux-avx/include (found version "1.84.0")  
   -- Set Gluten Proto Directory in /incubator-gluten/gluten-core/src/main/resources/org/apache/gluten/proto
   -- Set Substrait Proto Directory in /incubator-gluten/gluten-substrait/src/main/resources/substrait/proto
   -- Found Arrow library: /usr/local/lib64/libarrow.a
   CMake Error at CMake/ConfigArrow.cmake:44 (message):
     Arrow library Not Found: libparquet.a
   Call Stack (most recent call first):
     core/CMakeLists.txt:180 (find_arrow_lib)
   ```


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