Cannot use the executable "/home/raphy/catboost/build/bin/swig" (missing: java) (found version "")
- Dominant language
- C++
- Stars
- 9.1k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
(.catboost) (base) raphy@raohy:~/catboost$ cmake -B builddir -DSWIG_DIR=/usr/bin/swig -Wno-dev
-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /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: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Python3: /home/raphy/catboost/.catboost/bin/python3.12 (found version "3.12.8") found components: Interpreter
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "3.0.13")
-- Found Python3: /home/raphy/catboost/.catboost/bin/python3.12 (found version "3.12.8") found components: Development NumPy Interpreter Development.Module Development.Embed
-- Found Cython Version 3.1.3
-- Found Cython: /home/raphy/catboost/.catboost/bin/cython (found suitable version "3.1.3", minimum required is "3.0.10")
-- Found Python3: /home/raphy/miniconda3/include/python3.12 (found version "3.12.8") found components: Development Development.Module Development.Embed
-- Found Cython Version 3.1.3
-- Found Cython: /home/raphy/catboost/.catboost/bin/cython (found version "3.1.3")
-- Found Python3: /home/raphy/catboost/.catboost/bin/python3.12 (found version "3.12.8") found components: Interpreter
-- Found Python3: /home/raphy/catboost/.catboost/bin/python3.12 (found version "3.12.8") found components: Development NumPy Interpreter Development.Module Development.Embed
-- Found Cython Version 3.1.3
-- Found Cython: /home/raphy/catboost/.catboost/bin/cython (found suitable version "3.1.3", minimum required is "3.0.10")
-- Found Python3: /home/raphy/miniconda3/include/python3.12 (found version "3.12.8") found components: Development Development.Module Development.Embed
-- Found Python3: /home/raphy/catboost/.catboost/bin/python3.12 (found version "3.12.8") found components: Development NumPy Interpreter Development.Module Development.Embed
-- Found Python3: /home/raphy/miniconda3/include/python3.12 (found version "3.12.8") found components: Development Development.Module Development.Embed
-- Found Cython Version 3.1.3
-- Found Cython: /home/raphy/catboost/.catboost/bin/cython (found version "3.1.3")
-- Found Python3: /home/raphy/catboost/.catboost/bin/python3.12 (found version "3.12.8") found components: Interpreter
-- Found Cython Version 3.1.3
-- Found Java: /usr/bin/java (found version "21.0.8")
CMake Error at /usr/local/share/cmake-3.31/Modules/FindSWIG.cmake:173 (message):
Command "/home/raphy/catboost/builddir/bin/swig -help" failed with output:
Call Stack (most recent call first):
catboost/spark/catboost4j-spark/core/src/native_impl/CMakeLists.linux-x86_64.txt:17 (find_package)
catboost/spark/catboost4j-spark/core/src/native_impl/CMakeLists.txt:16 (include)
CMake Error at /usr/local/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
Cannot use the executable "/home/raphy/catboost/builddir/bin/swig"
(missing: java) (found version "")
Call Stack (most recent call first):
/usr/local/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:598 (_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake-3.31/Modules/FindSWIG.cmake:184 (find_package_handle_standard_args)
catboost/spark/catboost4j-spark/core/src/native_impl/CMakeLists.linux-x86_64.txt:17 (find_package)
catboost/spark/catboost4j-spark/core/src/native_impl/CMakeLists.txt:16 (include)
-- Configuring incomplete, errors occurred!
But:
(.catboost) (base) raphy@raohy:~/catboost$ java --version
openjdk 21.0.8 2025-07-15
OpenJDK Runtime Environment (build 21.0.8+9-Ubuntu-0ubuntu124.04.1)
OpenJDK 64-Bit Server VM (build 21.0.8+9-Ubuntu-0ubuntu124.04.1, mixed mode, sharing)
and:
(.catboost) (base) raphy@raohy:~/catboost$ swig --version
SWIG Version 4.3.1
Compiled with /opt/rh/devtoolset-8/root/usr/bin/g++ [Linux]
Configured options: +pcre
Please see https://www.swig.org for reporting bugs and further information
OS: Ubuntu 24.04
Contributor guide
Assessment
This issue has not been assessed yet.