java: Execution javacpp-build of goal org.bytedeco:javacpp:1.5.4:build failed
System information
- OS Platform and Distribution : Windows-x86_64
- TensorFlow installed from (source or binary): pip install tensorflow==2.3.1
- TensorFlow version: 2.3.1
- Python version: 3…7.9
- Installed using virtualenv? pip? conda?: pip
- Bazel version (if compiling from source): 3.1.0
- GCC/Compiler version (if compiling from source): 9.2.0
- CUDA/cuDNN version: 11.2
- GPU model and memory: 2080Ti 11264MB
Describe the problem
mvn install then i got
[INFO] Reactor Summary for TensorFlow Java Parent 0.3.0-SNAPSHOT: [INFO] [INFO] TensorFlow Java Parent … SUCCESS [ 1.075 s] [INFO] TensorFlow NdArray Library … SUCCESS [ 43.467 s] [INFO] TensorFlow Core Parent … SUCCESS [ 0.035 s] [INFO] TensorFlow Core Annotation Processor … SUCCESS [ 0.439 s] [INFO] TensorFlow Core API Library … FAILURE [01:14 min] [INFO] TensorFlow Core API Library Platform GPU … SKIPPED [INFO] TensorFlow Framework Library … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:59 min [INFO] Finished at: 2021-01-12T16:59:25+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.bytedeco:javacpp:1.5.4:build (javacpp-build) on project tensorflow-core-api: Execution javacpp-build of goal org.bytedeco:javacpp:1.5.4:build failed: Process exited with an e rror: 1 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :tensorflow-core-api
i checked bytedeco/javacpp also add
<dependency> <groupId>org.bytedeco</groupId> <artifactId>javacpp</artifactId> <version>1.5.4</version> </dependency>
in centeral maven pom.xml. still failed. Then i checked the dependencies of Tensorflow Core API Library. org.bytedeco:javacpp:1.5.4 and org.bytedeco:javacpp:windows-x86_64:1.5.4exisited.
could u pls have a look? many thks;)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 23 (12 by maintainers)
@saudet sorry for late reply cuz msys2 just crashed. it seems i got process…
TME-DJ@DESKTOP-PNVNSM6 MINGW64 /c/users/tme-dj/java/tensorflow-core/tensorflow-core-api $ bash build.sh
Starting local Bazel server and connecting to it… INFO: Options provided by the client: Inherited ‘common’ options: --isatty=0 --terminal_columns=80 INFO: Reading rc options for ‘build’ from c:\users\tme-dj\java\tensorflow-core\tensorflow-core-api.bazelrc: Inherited ‘common’ options: --experimental_repo_remote_exec INFO: Options provided by the client: ‘build’ options: --python_path=C:/msys64/mingw64/bin/python.exe INFO: Reading rc options for ‘build’ from c:\users\tme-dj\java\tensorflow-core\tensorflow-core-api.bazelrc: ‘build’ options: --apple_platform_type=macos --define framework_shared_object=true --define open_source_build=true --java_toolchain=@org_tensorflow//third_party/toolchains/java:tf_java_toolchain --host_java_toolchain=@org_tensorflow//third_party/toolchains/java:tf_java_toolchain --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --noincompatible_prohibit_aapt1 --enable_platform_specific_config --config=v2 INFO: Found applicable config definition build:v2 in file c:\users\tme-dj\java\tensorflow-core\tensorflow-core-api.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 INFO: Found applicable config definition build:windows in file c:\users\tme-dj\java\tensorflow-core\tensorflow-core-api.bazelrc: --copt=/w --copt=/D_USE_MATH_DEFINES --cxxopt=/std:c++14 --host_cxxopt=/std:c++14 --config=monolithic --copt=-DWIN32_LEAN_AND_MEAN --host_copt=-DWIN32_LEAN_AND_MEAN --copt=-DNOGDI --host_copt=-DNOGDI --linkopt=/DEBUG --host_linkopt=/DEBUG --linkopt=/OPT:REF --host_linkopt=/OPT:REF --linkopt=/OPT:ICF --host_linkopt=/OPT:ICF --experimental_strict_action_env=true --verbose_failures --distinct_host_configuration=false --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions INFO: Found applicable config definition build:monolithic in file c:\users\tme-dj\java\tensorflow-core\tensorflow-core-api.bazelrc: --define framework_shared_object=false Loading: Loading: 0 packages loaded Analyzing: 6 targets (3 packages loaded) Analyzing: 6 targets (3 packages loaded, 0 targets configured) Analyzing: 6 targets (110 packages loaded, 1478 targets configured) Analyzing: 6 targets (138 packages loaded, 8340 targets configured) Analyzing: 6 targets (181 packages loaded, 13012 targets configured) INFO: Analyzed 6 targets (183 packages loaded, 13109 targets configured).
INFO: Found 6 targets… [6 / 749] [Prepa] BazelWorkspaceStatusAction stable-status.txt [1,451 / 7,272] [Prepa] Executing genrule @com_google_protobuf//:internal_wkt_protos_genrule [1,498 / 7,272] Compiling com_google_protobuf/src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc [for host]; 0s local … (15 actions, 14 running) [1,546 / 7,272] Compiling com_google_protobuf/src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc [for host]; 1s local … (16 actions, 15 running) [1,849 / 7,272] Compiling com_google_protobuf/src/google/protobuf/compiler/js/js_generator.cc [for host]; 3s local … (16 actions, 15 running) [1,979 / 7,272] Compiling com_google_protobuf/src/google/protobuf/compiler/js/js_generator.cc [for host]; 5s local … (16 actions, 15 running) [2,182 / 7,272] Compiling com_google_protobuf/src/google/protobuf/generated_message_util.cc [for host]; 1s local … (16 actions, 15 running) [2,294 / 7,272] Compiling com_google_protobuf/src/google/protobuf/compiler/command_line_interface.cc [for host]; 2s local … (16 actions, 15 running) [2,336 / 7,272] Compiling com_google_protobuf/src/google/protobuf/compiler/parser.cc [for host]; 2s local … (16 actions running) [2,364 / 7,272] Compiling com_google_protobuf/src/google/protobuf/descriptor.cc [for host]; 5s local … (16 actions running) [2,515 / 7,272] Compiling com_google_protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc [for host]; 5s local … (16 actions running) [2,584 / 7,272] Compiling com_google_protobuf/src/google/protobuf/util/message_differencer.cc [for host]; 2s local … (16 actions running) [2,638 / 7,272] Compiling com_google_protobuf/src/google/protobuf/util/type_resolver_util.cc [for host]; 2s local … (16 actions, 15 running) [3,124 / 7,272] Executing genrule @libjpeg_turbo//:simd_win_x86_64_assemble; 2s local … (15 actions, 14 running) [3,235 / 7,272] Compiling com_github_grpc_grpc/src/core/lib/channel/channelz.cc; 1s local … (15 actions, 14 running) [3,378 / 7,272] Compiling com_github_grpc_grpc/src/core/lib/iomgr/resolve_address_windows.cc; 0s local … (16 actions, 15 running) [3,562 / 7,272] Compiling aws/aws-cpp-sdk-core/source/utils/json/JsonSerializer.cpp; 1s local … (16 actions, 15 running) [3,704 / 7,272] Compiling aws/aws-cpp-sdk-s3/source/S3Client.cpp; 10s local … (16 actions, 15 running) [3,855 / 7,272] Compiling aws/aws-cpp-sdk-core/source/platform/windows/FileSystem.cpp; 1s local … (16 actions, 15 running) [4,088 / 7,272] Compiling com_github_grpc_grpc/src/cpp/client/secure_credentials.cc; 2s local … (15 actions, 14 running) [4,518 / 7,273] Compiling external/org_tensorflow/tensorflow/core/example/feature.pb.cc; 3s local … (16 actions, 15 running) [4,689 / 7,273] Compiling external/org_tensorflow/tensorflow/core/protobuf/meta_graph.pb.cc; 5s local … (16 actions, 15 running) ERROR: C:/msys64/home/tme-dj/bazel_tme-dj/z3uiewio/external/org_tensorflow/tensorflow/c/eager/BUILD:24:16 C++ compilation of rule ‘@org_tensorflow//tensorflow/core/lib/random:philox’ failed (Exit 2): cl.exe failed: error executing command cd C:/msys64/home/tme-dj/bazel_tme-dj/z3uiewio/execroot/tensorflow_core_api SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\ATLMFC\include;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt SET PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\Extensions\Microsoft\IntelliCode\CLI;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\vs2019\x64;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\vs2019;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools;;C:\WINDOWS\system32;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja SET PWD=/proc/self/cwd SET RUNFILES_MANIFEST_ONLY=1 SET TEMP=C:\Users\TME-DJ\AppData\Local\Temp SET TMP=C:\Users\TME-DJ\AppData\Local\Temp C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/HostX64/x64/cl.exe /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0601 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /bigobj /Zm500 /EHsc /wd4351 /wd4291 /wd4250 /wd4996 /Iexternal/org_tensorflow /Ibazel-out/x64_windows-opt-exec-50AE0418/bin/external/org_tensorflow /Iexternal/com_google_absl /Ibazel-out/x64_windows-opt-exec-50AE0418/bin/external/com_google_absl /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt-exec-50AE0418/bin/external/eigen_archive /Iexternal/local_config_sycl /Ibazel-out/x64_windows-opt-exec-50AE0418/bin/external/local_config_sycl /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt-exec-50AE0418/bin/external/eigen_archive /D__CLANG_SUPPORT_DYN_ANNOTATION /DEIGEN_MPL2_ONLY /DEIGEN_MAX_ALIGN_BYTES=64 /DEIGEN_HAS_TYPE_TRAITS=0 /showIncludes /MD /O2 /Oy- /DNDEBUG /wd4117 -D__DATE_=“redacted” -D__TIMESTAMP__=“redacted” -D__TIME__=“redacted” /Gy /Gw -DWIN32_LEAN_AND_MEAN -DNOGDI /d2ReducedOptimizeHugeFunctions /std:c++14 -std=c++14 /Fobazel-out/x64_windows-opt-exec-50AE0418/bin/external/org_tensorflow/tensorflow/core/lib/random/_objs/philox/simple_philox.obj /c external/org_tensorflow/tensorflow/core/lib/random/simple_philox.cc Execution platform: @local_execution_config_platform//:platform INFO: Elapsed time: 144.795s, Critical Path: 22.43s INFO: 1763 processes: 23 internal, 1740 local. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully
p.s need to set MSYS2_PATH_TYPE=inherit then reinstall python, numpy etc.