Issue building with CMake in TeamCity - cmake

I have installed the Cmake Plugin to be able to build my C/C++ project with TeamCity. However, so far I had no luck building the project successfully. The build server and the agent are running on separate docker containers. The build fails with the following error:
[14:09:29] Step 1/1: DebugBuild (CMake build)
[14:09:29] [Step 1/1] Starting: /bin/bash -c "cmake "$#" 2>&1" -- --build . --target suite_1_app --config Debug --
[14:09:29] [Step 1/1] in directory: /opt/buildagent/work/3249fc82f6dadd5
[14:09:29] [Step 1/1] --: cmake: command not found
[14:09:29] [Step 1/1] Process exited with code 127
[14:09:30] [Step 1/1] Process exited with code 127 (Step: DebugBuild (CMake build))
[14:09:30] [Step 1/1] Step DebugBuild (CMake build) failed
[14:09:30] Publishing internal artifacts
[14:09:30] Build finished
And here is the configuration I used in the build step:
Runner type: Cmake build
Step name: DebugBuild
Build target: suite_1_app
Configuration: Debug
Any help would be appreciated!

Related

Bazel can't find g++ despite both MSYS2 and native shell supporting it

I have installed Bazel through Chocolatey on Windows and MSYS2 to have access to bash.exe.
A script I am trying to build uses g++ which I installed through pacman in MSYS2 and also added to PATH. I am able to run g++ --version in both the MSYS2 shell and my native Powershell.
But somehow it seems as if MSYS2 can't run g++ when I am running it through Bazel.
C:/<censored>> bazel build //kernels:rasterize_triangles_kernel
INFO: Analyzed target //kernels:rasterize_triangles_kernel (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: C:/<censored>/kernels/BUILD:20:8: Executing genrule //kernels:rasterize_triangles_kernel failed: (Exit 127): bash.exe failed: error executing command (from target //kernels:rasterize_triangles_kernel) C:\msys64\usr\bin\bash.exe -c ... (remaining 1 argument skipped)
/usr/bin/bash: line 1: g++: command not found
Target //kernels:rasterize_triangles_kernel failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 4.883s, Critical Path: 4.80s
INFO: 2 processes: 2 internal.
FAILED: Build did NOT complete successfully

Why do I get error 'unrecognized command line option '-fuse-ld=--enable-gold=default' when building Tensorflow?

I am trying to build Tensorflow from source as described at: https://www.tensorflow.org/install/source
I have Bazel 0.29.1 and Python available. I do:
module load bazeltest/0.29.1
module load pythontest/gcc6.3.0/3.7.5tensorflow
./configure
I choose all default options in configure, then:
bazel build //tensorflow/tools/pip_package:build_pip_package
The build proceeds for a while, but fails at:
INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /gpfs01/home/cczcb/.cache/bazel/_bazel_cczcb/f0a4604cf88277481621943e2a61f102/external/swig/BUILD.bazel:5:1: Linking of rule '#swig//:swig' failed (Exit 1)
gcc: error: unrecognized command line option '-fuse-ld=--enable-gold=default'
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: 18.642s, Critical Path: 10.57s
INFO: 125 processes: 125 local.
FAILED: Build did NOT complete successfully
I have also tried:
bazel build --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" //tensorflow/tools/pip_package:build_pip_package
as I am using GCC 6.3.0 here. The result is the same, as it is when I use GCC 4.9.3.
My O/S is Centos 7.4.
Can anyone advise what might be amiss ?
thanks,
Colin

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

proto_text/gen_proto_text_functions.runfiles [for host] failed

command:
bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package --verbose_failures
Error:
tensorflow/tensorflow/tools/proto_text/BUILD:33:1: Creating runfiles tree bazel-out/host/bin/tensorflow/tools/**proto_text/gen_proto_text_functions.runfiles** [for host] failed (Exit 1): build-runfiles failed: error executing command
(cd /mnt/lustre/sjtu/users/mkh96/.cache/bazel/_bazel_mkh96/44343823a879bff37be22e42f904ace4/execroot/org_tensorflow && \
exec env - \
_bin/build-runfiles bazel-out/host/bin/tensorflow/tools/proto_text/gen_proto_text_functions.runfiles_manifest bazel-out/host/bin/tensorflow/tools/proto_text/gen_proto_text_functions.runfiles)
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 337.846s, Critical Path: 0.12s
INFO: 1 process, local.
FAILED: Build did NOT complete successfully
srun: error: lianyungang: task 0: Exited with exit code 1
Here is the more evident compiling instructions
And if you want to install tf bindings, please refer to this guide.

Getting error while setup jenkins

$ cmd.exe /C "D:\SW\eclipse\plugins\org.apache.ant_1.8.4.v201303080030\bin\ant.bat axc - Functional Suite && exit %%ERRORLEVEL%%"
Unknown argument: -
ant [options] [target [target2 [target3] ...]]
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE
All setup configured properly.