Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analysis of target '//tensorflow/contrib/tensor_forest:model_ops_test' failed; build aborted: for tensorflow/contrib/tensor_forest/libutils.so #28898

Closed
luorixiangyang opened this issue May 21, 2019 · 10 comments
Assignees
Labels
stat:awaiting response Status - Awaiting response from author subtype:windows Windows Build/Installation Issues type:build/install Build and install issues

Comments

@luorixiangyang
Copy link

luorixiangyang commented May 21, 2019

env:
OS: windows 10
bazel version: 0.24.1
tensorflow version:r1.14
python:3.6.4
CUDA:9.0
cuDNN: 7.4


send under command in gitBash could complete successfully

$ bazel build --config=opt --config=cuda --define=no_tensorflow_py_deps=true //tensorflow/tools/pip_package:build_pip_package

but send bazel test command encounter error, details as following.:
command(in gitBash):

$ bazel test tensorflow/contrib/tensor_forest:model_ops_test

Starting local Bazel server and connecting to it...
WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
Loading:
Loading: 0 packages loaded
Analyzing: target //tensorflow/contrib/tensor_forest:model_ops_test (1 packages loaded, 0 targets configured)
Analyzing: target //tensorflow/contrib/tensor_forest:model_ops_test (33 packages loaded, 352 targets configured)
Analyzing: target //tensorflow/contrib/tensor_forest:model_ops_test (58 packages loaded, 2552 targets configured)
Analyzing: target //tensorflow/contrib/tensor_forest:model_ops_test (82 packages loaded, 4125 targets configured)
Analyzing: target //tensorflow/contrib/tensor_forest:model_ops_test (83 packages loaded, 4154 targets configured)
ERROR: file 'tensorflow/contrib/tensor_forest/libutils.so' is generated by these conflicting actions:
Label: //tensorflow/contrib/tensor_forest:model_ops_test
RuleClass: cc_test rule
Configuration: c9dc3b2a2ac77c2e5a3c9175e9c4aa9e
Mnemonic: Symlink
Action key: 0ac20b0e60679a64dc9111fddc500670
Progress message: Copying Execution Dynamic Library
PrimaryInput: File:[[<execution_root>]bazel-out/x64_windows-opt/bin]tensorflow/core/grappler/clusters/libutils.so, File:[[<execution_root>]bazel-out/x64_windows-opt/bin]tensorflow/core/grappler/costs/libutils.so
PrimaryOutput: File:[[<execution_root>]bazel-out/x64_windows-opt/bin]tensorflow/contrib/tensor_forest/libutils.so
ERROR: Analysis of target '//tensorflow/contrib/tensor_forest:model_ops_test' failed; build aborted: for tensorflow/contrib/tensor_forest/libutils.so, previous action: action 'Copying Execution Dynamic Library', attempted action: action 'Copying Execution Dynamic Library'
INFO: Elapsed time: 10.421s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (84 packages loaded, 4219 targets configured)
ERROR: Couldn't start the build. Unable to run tests
FAILED: Build did NOT complete successfully (84 packages loaded, 4219 targets configured)
@luorixiangyang
Copy link
Author

To add on:
I execute py_test suits by "bazel test" is successful, but execute tf_cc_test suits will occur above exceptions.
So i think maybe problems about c compiler. Hope you can help me to fix it. thanks.

@luorixiangyang
Copy link
Author

I also find there are files suffix is not .so and instead of .a file :libutils.a, libutils.a-2.params in the target folder in windows10, but have correct so files in Ubuntu18 env. so how to change it. Do y think upgrade cuda support version could solve this issue.

@achandraa achandraa self-assigned this May 22, 2019
@achandraa achandraa added subtype:windows Windows Build/Installation Issues type:build/install Build and install issues labels May 22, 2019
@achandraa
Copy link

Did you try following the steps from TensorFlow website. Also check GPU support for CUDA compatibility with TensorFlow version.

@achandraa achandraa added the stat:awaiting response Status - Awaiting response from author label May 22, 2019
@luorixiangyang
Copy link
Author

luorixiangyang commented May 22, 2019

Did you try following the steps from TensorFlow website. Also check GPU support for CUDA compatibility with TensorFlow version.

Thank you for your reply.
I did the steps follow official guide, following is my develop environment:

OS: windows 10
bazel version: 0.24.1
tensorflow version:r1.14
python:3.6.4
CUDA:9.0
cuDNN: 7.4.1

Why is the .a file generated instead of the .so file? Do y think that is GPU version not compatible for versions of CUDA and Tensorflow?I think you can help me to check the version combination.

@tensorflowbutler tensorflowbutler removed the stat:awaiting response Status - Awaiting response from author label May 23, 2019
@achandraa
Copy link

Can you try with higher version of CUDA and let us know if that helps. For your reference TensorFlow supports CUDA 10.0 (TensorFlow >= 1.13.0). Have a look on GPU support link, Thanks!

@achandraa achandraa added the stat:awaiting response Status - Awaiting response from author label May 23, 2019
@luorixiangyang
Copy link
Author

luorixiangyang commented May 24, 2019

Can you try with higher version of CUDA and let us know if that helps. For your reference TensorFlow supports CUDA 10.0 (TensorFlow >= 1.13.0). Have a look on GPU support link, Thanks!

Hi achandraa,
I update the CUDA 10.0 and driver to 419.17 , cudnn 7.5, Tensorflow 2.0, but use under command still encounter the error, i don't know why is libutils.a generated instead of libutils.so file in windows environment(In GitBash):

$ bazel test tensorflow/contrib/tensor_forest:model_ops_test
WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
Loading:
Loading: 0 packages loaded
DEBUG: C:/users/.../_bazel_.../vmio52nn/external/build_bazel_rules_apple/apple/repositories.bzl:35:5:
WARNING: `build_bazel_rules_apple` depends on `bazel_skylib` loaded from https://github.com/bazelbuild/bazel-skylib.git (tag 0.6.0), but we have detected it already loaded into your workspace from None (tag None). You may run into compatibility issues. To silence this warning, pass `ignore_version_differences = True` to `apple_rules_dependencies()`.

Analyzing: target //tensorflow/contrib/tensor_forest:model_ops_test (0 packages loaded, 0 targets configured)
ERROR: file 'tensorflow/contrib/tensor_forest/libutils.so' is generated by these conflicting actions:
Label: //tensorflow/contrib/tensor_forest:model_ops_test
RuleClass: cc_test rule
Configuration: 6f9afee38480077f2e1d7771555e31bc
Mnemonic: Symlink
Action key: 87cfd65dad66dcad42fb5f761552ee9c
Progress message: Copying Execution Dynamic Library
PrimaryInput: File:[[<execution_root>]bazel-out/x64_windows-opt/bin]tensorflow/core/grappler/clusters/libutils.so, File:[[<execution_root>]bazel-out/x64_windows-opt/bin]tensorflow/core/grappler/costs/libutils.so
PrimaryOutput: File:[[<execution_root>]bazel-out/x64_windows-opt/bin]tensorflow/contrib/tensor_forest/libutils.so
ERROR: Analysis of target '//tensorflow/contrib/tensor_forest:model_ops_test' failed; build aborted: for tensorflow/contrib/tensor_forest/libutils.so, previous action: action 'Copying Execution Dynamic Library', attempted action: action 'Copying Execution Dynamic Library'
INFO: Elapsed time: 0.398s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
ERROR: Couldn't start the build. Unable to run tests
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)

@achandraa achandraa assigned ymodak and unassigned achandraa May 24, 2019
@achandraa achandraa removed the stat:awaiting response Status - Awaiting response from author label May 24, 2019
@luorixiangyang
Copy link
Author

luorixiangyang commented May 25, 2019

Here is my configuration of /etc/profile in MSYS2:

export BAZEL_SH="$(cygpath -m $(realpath $(which bash)))"
export JAVA_HOME="/c/Program Files/Java/jdk1.8.0_73"
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export PATH=$JAVA_HOME/bin:$PATH
export PATH="/c/Python/Anaconda3:$PATH"

export PATH="/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/bin:$PATH"
export PATH="/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/libnvvp:$PATH"
export PATH="/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/extras/CUPTI/libx64:$PATH"
set BAZEL_VS="/C/Program Files (x86)/Microsoft Visual Studio 14.0"
set BAZEL_VC="/C/Program Files (x86)/Microsoft Visual Studio 14.0/VC"

I think i am following the operation of tensorflow websit, but i don't know why i tried same error when i tried more methods, The libutils.a is generated in target folder instead of libutils.so file. Can you check and tell me where maybe occur the error.

@luorixiangyang
Copy link
Author

luorixiangyang commented May 25, 2019

I found if use cc_test instead of tf_cc_test for model_ops_test, then command:
bazel test tensorflow/contrib/tensor_forest:model_ops_test to be success.
so maybe some wrong about tf_cc_test. kindly to check this information.

cc_test(
    name = "model_ops_test",
    size = "small",
    srcs = [
        "kernels/model_ops_test.cc",
        "ops/model_ops.cc",
    ],
    deps = [
        ":forest_proto_impl",
        ":model_ops_lib",
        "//tensorflow/contrib/tensor_forest/kernels/v4:decision-tree-resource_impl",
        "//tensorflow/core:framework_headers_lib",
        "//tensorflow/core:test",
        "//tensorflow/core:test_main",
        "//tensorflow/core:testlib",
    ],
)

Execution Result:

$bazel test //tensorflow/contrib/tensor_forest:model_ops_test
WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
Loading:
Loading: 0 packages loaded
DEBUG: C:/users/l00446796/_bazel_l00446796/vmio52nn/external/build_bazel_rules_apple/apple/repositories.bzl:35:5:
WARNING: `build_bazel_rules_apple` depends on `bazel_skylib` loaded from https://github.com/bazelbuild/bazel-skylib.git (tag 0.6.0), but we have detected it already loaded into your workspace from None (tag None). You may run into compatibility issues. To silence this warning, pass `ignore_version_differences = True` to `apple_rules_dependencies()`.

Analyzing: target //tensorflow/contrib/tensor_forest:model_ops_test (0 packages loaded, 0 targets configured)
INFO: Analysed target //tensorflow/contrib/tensor_forest:model_ops_test (0 packages loaded, 0 targets configured).
INFO: Found 1 test target...
[0 / 2] [-----] BazelWorkspaceStatusAction stable-status.txt
Target //tensorflow/contrib/tensor_forest:model_ops_test up-to-date:
  C:/users/.../_bazel_.../vmio52nn/execroot/org_tensorflow/bazel-out/x64_windows-opt/bin/tensorflow/contrib/tensor_forest/model_ops_test
INFO: Elapsed time: 0.806s, Critical Path: 0.00s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
//tensorflow/contrib/tensor_forest:model_ops_test               (cached) PASSED in 1.9s

Executed 0 out of 1 test: 1 test passes.
INFO: Build completed successfully, 1 total action

@ymodak
Copy link
Contributor

ymodak commented May 29, 2019

You have successfully installed TF however you are running into issues when implementing TensorForest. Is that correct?
I suspect that the specified test target is incorrect.

@ymodak ymodak added the stat:awaiting response Status - Awaiting response from author label May 29, 2019
@ymodak
Copy link
Contributor

ymodak commented Jun 3, 2019

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

@ymodak ymodak closed this as completed Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting response Status - Awaiting response from author subtype:windows Windows Build/Installation Issues type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

4 participants