Building java from source #1158
Replies: 1 comment
-
I was able to create a jar file but it fails with |
Beta Was this translation helpful? Give feedback.
-
I was able to create a jar file but it fails with |
Beta Was this translation helpful? Give feedback.
-
I am having issues building a maven artifact from source.
Here is my shell output:
(base) christian@NBBRE01-4KK61T3:/mnt/d/projects/onnxruntime-genai/onnxruntime-genai$ python build.py --build_java --config Release
2024-12-19 07:16:48,006 util.run [INFO] - Running subprocess in '/mnt/d/projects/onnxruntime-genai/onnxruntime-genai'
/home/christian/miniconda3/bin/cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release -S /mnt/d/projects/onnxruntime-genai/onnxruntime-genai -B /mnt/d/projects/onnxruntime-genai/onnxruntime-genai/build/Linux/Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DUSE_CUDA=OFF -DUSE_ROCM=OFF -DUSE_WEBGPU=OFF -DUSE_DML=OFF -DENABLE_JAVA=ON -DBUILD_WHEEL=ON
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- 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
-- Using ONNX Runtime package Microsoft.ML.OnnxRuntime version 1.20.0-dev-20241007-1101-407c1ab2e2
-- ORT_HEADER_DIR: /mnt/d/projects/onnxruntime-genai/onnxruntime-genai/build/Linux/Release/_deps/ortlib-src/build/native/include
-- ORT_LIB_DIR: /mnt/d/projects/onnxruntime-genai/onnxruntime-genai/build/Linux/Release/_deps/ortlib-src/runtimes/linux-x64/native
Loading Dependencies URLs ...
Loading Dependencies ...
CMake Deprecation Warning at build/Linux/Release/_deps/pybind11_project-src/CMakeLists.txt:8 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
-- pybind11 v2.10.1
CMake Warning (dev) at build/Linux/Release/_deps/pybind11_project-src/tools/FindPythonLibsNew.cmake:98 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
build/Linux/Release/_deps/pybind11_project-src/tools/pybind11Tools.cmake:50 (find_package)
build/Linux/Release/_deps/pybind11_project-src/tools/pybind11Common.cmake:180 (include)
build/Linux/Release/_deps/pybind11_project-src/CMakeLists.txt:206 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found PythonInterp: /home/christian/miniconda3/bin/python (found suitable version "3.12.4", minimum required is "3.6")
-- Found PythonLibs: /home/christian/miniconda3/lib/libpython3.12.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Fetch json
-- Tokenizer needed.
Test is using C++20
------------------Enabling tests------------------
Test is using C++20
------------------Enabling Python Wheel------------------
Test is using C++20
Setting up wheel files in : /mnt/d/projects/onnxruntime-genai/onnxruntime-genai/build/Linux/Release/wheel
------------------Enabling Java Jar------------------
-- Found Java: /home/christian/.sdkman/candidates/java/current/bin/java (found version "17.0.10")
-- Found JNI: /home/christian/.sdkman/candidates/java/current/include found components: AWT JVM
-- Adding Java tests
------------------Enabling model benchmark------------------
-- Configuring done (105.3s)
-- Generating done (5.5s)
-- Build files have been written to: /mnt/d/projects/onnxruntime-genai/onnxruntime-genai/build/Linux/Release
2024-12-19 07:18:39,061 util.run [INFO] - Running subprocess in '/mnt/d/projects/onnxruntime-genai/onnxruntime-genai'
/home/christian/miniconda3/bin/cmake --build /mnt/d/projects/onnxruntime-genai/onnxruntime-genai/build/Linux/Release --config Release
[ 0%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jaricom.c.o
[ 1%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jcapimin.c.o
[ 1%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jcapistd.c.o
[ 2%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jcarith.c.o
[ 2%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jccoefct.c.o
[ 3%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jccolor.c.o
[ 3%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jcdctmgr.c.o
[ 4%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jchuff.c.o
[ 4%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jcinit.c.o
[ 5%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jcmainct.c.o
[ 5%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jcmarker.c.o
[ 6%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jcmaster.c.o
[ 6%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jcomapi.c.o
[ 7%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jcparam.c.o
[ 7%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jcprepct.c.o
[ 7%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jcsample.c.o
[ 8%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jdapimin.c.o
[ 8%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jdapistd.c.o
[ 9%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jdarith.c.o
[ 9%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jdatadst.c.o
[ 10%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jdatasrc.c.o
[ 10%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jdcoefct.c.o
[ 11%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jdcolor.c.o
[ 11%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jddctmgr.c.o
[ 12%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jdhuff.c.o
[ 12%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jdinput.c.o
[ 13%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jdmainct.c.o
[ 13%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jdmarker.c.o
[ 14%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jdmaster.c.o
[ 14%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jdmerge.c.o
[ 15%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jdpostct.c.o
[ 15%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jdsample.c.o
[ 16%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jerror.c.o
[ 16%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jfdctflt.c.o
[ 17%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jfdctfst.c.o
[ 17%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jfdctint.c.o
[ 18%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jidctflt.c.o
[ 18%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jidctfst.c.o
[ 19%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jidctint.c.o
[ 19%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jmemmgr.c.o
[ 20%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jmemnobs.c.o
[ 20%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jquant1.c.o
[ 20%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jquant2.c.o
[ 21%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libjpeg_static_c.dir//dlib-src/dlib/external/libjpeg/jutils.c.o
[ 21%] Linking C static library liblibjpeg_static_c.a
[ 21%] Built target libjpeg_static_c
[ 21%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/noexcep_operators.dir/base/base64.cc.o
[ 22%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/noexcep_operators.dir/base/ocos.cc.o
[ 22%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/noexcep_operators.dir/base/string_tensor.cc.o
[ 23%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/noexcep_operators.dir/base/string_utils.cc.o
[ 23%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/noexcep_operators.dir/operators/audio/audio.cc.o
[ 24%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/noexcep_operators.dir/operators/audio/audio_decoder.cc.o
[ 24%] Linking CXX static library ../../lib/libnoexcep_operators.a
[ 24%] Built target noexcep_operators
[ 25%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/arm/arm_init.c.o
[ 25%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/arm/filter_neon_intrinsics.c.o
[ 26%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/arm/palette_neon_intrinsics.c.o
[ 26%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/png.c.o
[ 27%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/pngerror.c.o
[ 27%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/pngget.c.o
[ 28%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/pngmem.c.o
[ 28%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/pngpread.c.o
[ 29%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/pngread.c.o
[ 29%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/pngrio.c.o
[ 30%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/pngrtran.c.o
[ 30%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/pngrutil.c.o
[ 31%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/pngset.c.o
[ 31%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/pngtrans.c.o
[ 32%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/pngwio.c.o
[ 32%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/pngwrite.c.o
[ 34%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/pngwtran.c.o
[ 34%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/libpng/pngwutil.c.o
[ 35%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/zlib/adler32.c.o
[ 35%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/zlib/compress.c.o
[ 36%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/zlib/crc32.c.o
[ 36%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/zlib/deflate.c.o
[ 36%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/zlib/gzclose.c.o
[ 37%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/zlib/gzlib.c.o
[ 37%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/zlib/gzread.c.o
[ 38%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/zlib/gzwrite.c.o
[ 38%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/zlib/infback.c.o
[ 39%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/zlib/inffast.c.o
[ 39%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/zlib/inflate.c.o
[ 40%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/zlib/inftrees.c.o
[ 40%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/zlib/trees.c.o
[ 41%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/zlib/uncompr.c.o
[ 41%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/libpng_static_c.dir//dlib-src/dlib/external/zlib/zutil.c.o
[ 42%] Linking C static library liblibpng_static_c.a
[ 42%] Built target libpng_static_c
[ 43%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ocos_operators.dir/operators/ocos_operators_placeholder.cc.o
[ 43%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ocos_operators.dir/operators/math/math.cc.o
[ 44%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ocos_operators.dir/operators/math/segment_extraction.cc.o
[ 44%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ocos_operators.dir/operators/math/segment_sum.cc.o
[ 44%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ocos_operators.dir//dlib-src/dlib/test_for_odr_violations.cpp.o
[ 45%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ocos_operators.dir/operators/tokenizer/bpe_kernels.cc.o
[ 45%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ocos_operators.dir/operators/tokenizer/unicode.cc.o
[ 46%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ocos_operators.dir/operators/tokenizer/tokenizers.cc.o
[ 46%] Linking CXX static library ../../lib/libocos_operators.a
[ 46%] Built target ocos_operators
[ 46%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ortcustomops.dir/shared/lib/ops_registry.cc.o
[ 47%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ortcustomops.dir/shared/api/c_api_utils.cc.o
[ 47%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ortcustomops.dir/shared/api/c_api_tokenizer.cc.o
[ 48%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ortcustomops.dir/shared/api/tokenizer_impl.cc.o
[ 48%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ortcustomops.dir/shared/api/c_api_feature_extraction.cc.o
[ 49%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ortcustomops.dir/shared/api/speech_extractor.cc.o
[ 49%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ortcustomops.dir/shared/api/c_api_processor.cc.o
[ 50%] Building CXX object _deps/onnxruntime_extensions-build/CMakeFiles/ortcustomops.dir/shared/api/image_processor.cc.o
[ 50%] Building C object _deps/onnxruntime_extensions-build/CMakeFiles/ortcustomops.dir/shared/api/image_resample.c.o
[ 51%] Linking CXX static library ../../lib/libortcustomops.a
[ 51%] Built target ortcustomops
[ 52%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/beam_search_scorer.cpp.o
[ 52%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/config.cpp.o
[ 53%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/generators.cpp.o
[ 53%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/json.cpp.o
[ 54%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/logging.cpp.o
[ 54%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/adapters.cpp.o
[ 55%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/audio_processor.cpp.o
[ 55%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/captured_graph_pool.cpp.o
[ 56%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/debugging.cpp.o
[ 56%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/decoder_only.cpp.o
[ 57%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/decoder_only_pipeline.cpp.o
[ 57%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/embeddings.cpp.o
[ 58%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/env_utils.cpp.o
[ 58%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/extra_inputs.cpp.o
[ 59%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/gpt.cpp.o
[ 59%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/image_features.cpp.o
[ 60%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/input_ids.cpp.o
[ 60%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/kv_cache.cpp.o
[ 61%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/logits.cpp.o
[ 61%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/model.cpp.o
[ 61%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/multi_modal_vision_model.cpp.o
[ 62%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/position_inputs.cpp.o
[ 62%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/prompt_image_processor.cpp.o
[ 63%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/static_buffer.cpp.o
[ 63%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/utils.cpp.o
[ 64%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/models/whisper.cpp.o
[ 64%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/ort_genai_c.cpp.o
[ 65%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/runtime_settings.cpp.o
[ 65%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/search.cpp.o
[ 67%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/sequences.cpp.o
[ 67%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/softmax_cpu.cpp.o
[ 68%] Building CXX object CMakeFiles/onnxruntime-genai.dir/src/top_k_cpu.cpp.o
[ 68%] Linking CXX shared library libonnxruntime-genai.so
[ 68%] Built target onnxruntime-genai
[ 68%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/beam_search_scorer.cpp.o
[ 68%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/config.cpp.o
[ 69%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/generators.cpp.o
[ 69%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/json.cpp.o
[ 70%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/logging.cpp.o
[ 70%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/adapters.cpp.o
[ 71%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/audio_processor.cpp.o
[ 71%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/captured_graph_pool.cpp.o
[ 72%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/debugging.cpp.o
[ 72%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/decoder_only.cpp.o
[ 73%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/decoder_only_pipeline.cpp.o
[ 73%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/embeddings.cpp.o
[ 74%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/env_utils.cpp.o
[ 74%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/extra_inputs.cpp.o
[ 75%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/gpt.cpp.o
[ 75%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/image_features.cpp.o
[ 76%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/input_ids.cpp.o
[ 76%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/kv_cache.cpp.o
[ 77%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/logits.cpp.o
[ 77%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/model.cpp.o
[ 78%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/multi_modal_vision_model.cpp.o
[ 78%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/position_inputs.cpp.o
[ 79%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/prompt_image_processor.cpp.o
[ 79%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/static_buffer.cpp.o
[ 80%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/utils.cpp.o
[ 80%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/models/whisper.cpp.o
[ 80%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/ort_genai_c.cpp.o
[ 81%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/runtime_settings.cpp.o
[ 81%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/search.cpp.o
[ 82%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/sequences.cpp.o
[ 82%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/softmax_cpu.cpp.o
[ 83%] Building CXX object CMakeFiles/onnxruntime-genai-static.dir/src/top_k_cpu.cpp.o
[ 83%] Linking CXX static library libonnxruntime-genai-static.a
[ 83%] Built target onnxruntime-genai-static
[ 83%] Building CXX object _deps/googletest-build/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 84%] Linking CXX static library ../../../lib/libgtest.a
[ 84%] Built target gtest
[ 84%] Building CXX object _deps/googletest-build/googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 85%] Linking CXX static library ../../../lib/libgtest_main.a
[ 85%] Built target gtest_main
[ 85%] Building CXX object test/CMakeFiles/unit_tests.dir/main.cpp.o
[ 86%] Building CXX object test/CMakeFiles/unit_tests.dir/c_api_tests.cpp.o
[ 86%] Building CXX object test/CMakeFiles/unit_tests.dir/model_tests.cpp.o
[ 87%] Building CXX object test/CMakeFiles/unit_tests.dir/sampling_tests.cpp.o
[ 87%] Building CXX object test/CMakeFiles/unit_tests.dir/sampling_benchmark.cpp.o
[ 88%] Linking CXX executable ../unit_tests
[ 88%] Built target unit_tests
[ 88%] Building CXX object src/python/CMakeFiles/python.dir/python.cpp.o
[ 89%] Linking CXX shared module onnxruntime_genai.cpython-312-x86_64-linux-gnu.so
lto-wrapper: warning: using serial compilation of 6 LTRANS jobs
Copying files to wheel directory: /mnt/d/projects/onnxruntime-genai/onnxruntime-genai/build/Linux/Release/wheel/onnxruntime_genai
[ 89%] Built target python
[ 89%] Building wheel on /mnt/d/projects/onnxruntime-genai/onnxruntime-genai/build/Linux/Release/wheel
Processing /mnt/d/projects/onnxruntime-genai/onnxruntime-genai/build/Linux/Release/wheel
Preparing metadata (setup.py) ... done
Building wheels for collected packages: onnxruntime-genai
Building wheel for onnxruntime-genai (setup.py) ... done
Created wheel for onnxruntime-genai: filename=onnxruntime_genai-0.5.2-cp312-cp312-linux_x86_64.whl size=1257347 sha256=f4742755b4432cb2ace23cd2817ca69eb4522e99d9cac2e2028109c4852cf248
Stored in directory: /tmp/pip-ephem-wheel-cache-x5n3s8zn/wheels/12/c4/f7/d4c1b261c6d32aff29f258a01e0cda21bbeeac8b4379baf977
Successfully built onnxruntime-genai
[ 89%] Built target PyPackageBuild
[ 90%] Generating /mnt/d/projects/onnxruntime-genai/onnxruntime-genai/src/java/build/libs/onnxruntime-genai.jar
/bin/sh: 1: /mnt/d/projects/onnxruntime-genai/onnxruntime-genai/src/java/gradlew: not found
gmake[2]: *** [src/java/CMakeFiles/onnxruntime-genai4j.dir/build.make:79: /mnt/d/projects/onnxruntime-genai/onnxruntime-genai/src/java/build/libs/onnxruntime-genai.jar] Error 127
gmake[1]: *** [CMakeFiles/Makefile2:839: src/java/CMakeFiles/onnxruntime-genai4j.dir/all] Error 2
gmake: *** [Makefile:166: all] Error 2
Traceback (most recent call last):
File "/mnt/d/projects/onnxruntime-genai/onnxruntime-genai/build.py", line 653, in
build(arguments, environment)
File "/mnt/d/projects/onnxruntime-genai/onnxruntime-genai/build.py", line 585, in build
util.run(make_command, env=env)
File "/mnt/d/projects/onnxruntime-genai/onnxruntime-genai/tools/python/util/run.py", line 56, in run
completed_process = subprocess.run(
^^^^^^^^^^^^^^^
File "/home/christian/miniconda3/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/christian/miniconda3/bin/cmake', '--build', '/mnt/d/projects/onnxruntime-genai/onnxruntime-genai/build/Linux/Release', '--config', 'Release']' returned non-zero exit status 2.
Does someone have a idea what could be wrong?
I am not a java guy. Got a project running with C# but need to get the same working with Java.
Maybe someone with more java experience can help.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions