error when running bazel test of magenta - tensorflow

My server is Ubuntu 14.04 CPU
After installing magenta, I run the
bazel test magenta/... ,
and it gives me this error:
ERROR: /home/jcc/.cache/bazel/_bazel_jcc/ed5599de3378c6e0a5a71ebe1650713e/external/protobuf/protobuf.bzl:91:19: name 'HOST_CFG' is not defined.
ERROR: package contains errors: magenta/protobuf.
ERROR: error loading package 'magenta/protobuf': Extension 'protobuf.bzl' has errors.
INFO: Elapsed time: 0.274s
ERROR: Couldn't start the build. Unable to run tests.
Any advice?

Related

Karate Performance testing : Getting build failure with error "Unrecognized VM option 'UseBiasedLocking'

I am trying to reuse Karate tests for performance testing with Gatling and Scala.
I have configured everything as described in documentation. But then when I run the mvn command I am getting error "Unrecognized VM option 'UseBiasedLocking' Error: Could not create the Java Virtual Machine."
mvn command used to run tests: mvn test-compile gatling:test
Tried with looking at Env path variables and running the mvn command with different options. But still getting same error
Failed to execute goal io.gatling:gatling-maven-plugin:4.1.5:test (default-cli) on project PerformanceTesting: Gatling failed.: Process exited with an error: 1 (Exit value: 1)
Below is the POM file
Scala File
The issue is resolved after upgrading the gatling.plugin.version to 4.2.7 as my Java version 19 is not supporting old gatling plugin.
Below article helped to resolve
Unrecognized VM option 'UseBiasedLocking' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit

Failure to build arch package - aborting

I'm trying to build a package for ArchLinux with the following command:
extra-x86_64-build -cr archbuild
It fails with the following error:
Dropping capabilities failed: Operation not permitted
Child died too early.
==> ERROR: Aborting...
I have no idea why is it failing.
Update: Running as root or a normal user makes no difference, both return the same error.

Compile TensorFlow v1.8.0 cuda/include/cublas_v2.h: No such file or directory

When I compile TensorFlow v1.8
ERROR: /work/tensorflow/tensorflow/stream_executor/BUILD:52:1: C++ compilation of rule '//tensorflow/stream_executor:cuda_platform' failed (Exit 1)
tensorflow/stream_executor/cuda/cuda_blas.cc:16:36: fatal error: cuda/include/cublas_v2.h: No such file or directory
compilation terminated.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 119.973s, Critical Path: 43.00s
INFO: 3322 processes, local.
FAILED: Build did NOT complete successfully
I find /usr/local/cuda/include don't have this file. How can get it?
Running bazel clean --expunge and then compiling again seems to have fixed it for me.
Compiling tensorflow 1.12.3 with bazel 0.15.2

caffe runtest error after make all

I am installing caffe with ubuntu 16.04 system of cpu. I am facing prpoblem while makerun test.
The error is:
src/caffe/test/test_hdf5data_layer.cpp:4:18: fatal error: hdf5.h: No such file or directory
compilation terminated.
Makefile:581: recipe for target
'.build_release/src/caffe/test/test_hdf5data_layer.o' failed
make: *** [.build_release/src/caffe/test/test_hdf5data_layer.o] Error 1

tensorflow-magenta bazel error running first test

I have installed the C++ protobuf library on Ubuntu 15.10. When I run the first magenta test within the magenta workspace directory I get this error (changed url to protobuf, cant post not enough reputation points. What a great problem reporting system this is):
root#ubuntu-VirtualBox:/home/ubuntu/magenta# bazel test magenta/...
..
ERROR: package contains errors: magenta.
ERROR: error loading package 'magenta': Encountered error while reading extension file 'protobuf.bzl': no such package '#protobuf//': Error cloning repository: protobuf: cannot open git-upload-pack caused by protobuf: cannot open git-upload-pack caused by protobuf: cannot open git-upload-pack caused by protobuf: cannot open git-upload-pack caused by protobuf: cannot open git-upload-pack.
INFO: Elapsed time: 2.305s
ERROR: Couldn't start the build. Unable to run tests.