Build protobuf with bazel error: repeated_composite_container.cc(267) fatal error C1057 - visual-c++

I'm trying to build TensorFlow with Bazel on Windows.
But i'm getting this error:
ERROR: C:/users/spenh/appdata/local/temp/_bazel_spen/icnq02mb/external/protobuf/BUILD:623:1: C++ compilation of rule '#protobuf//:python/google/protobuf/pyext/_message.so' failed: msvc_cl.bat failed: error executing command external/local_config_cc/wrapper/bin/msvc_cl.bat /DOS_WINDOWS=OS_WINDOWS /DCOMPILER_MSVC /DNOGDI /DNOMINMAX /DPRAGMA_SUPPORTED /D_WIN32_WINNT=0x0600 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS ... (remaining 42 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 2.
C:\users\spenh\appdata\local\temp\_bazel_spen\icnq02mb\execroot\org_tensorflow\external\protobuf\python\google\protobuf\pyext\repeated_composite_container.cc(267): fatal error C1057: Unerwartetes Dateiende bei der Erweiterung eines Makros
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Any idea what i can try to solve this? Or what information i could provide you to solve this?
Bazel: git/master (13.06.2017)
TensorFlow: v1.2.0-rc2
Python 3.6.1 x64
Visual Studio 2017 v15.0.26430.6 x64
Java JDK 1.8.0_60
Windows 10
Build command:
bazel build -c opt --cpu=x64_windows_msvc --host_cpu=x64_windows_msvc --copt=-w --host_copt=-w tensorflow/tools/pip_package:build_pip_package

Related

Trying to install python-mbedtls on Windows using VSCode

I am trying to install the python-mbedtls package using pip installer in my venv on Windows, but I am getting the below error:
build\3.10.2\temp.win-amd64-3.10\Release\pyrex\mbedtls\exceptions.c(685): fatal error C1083: Cannot open include file: 'mbedtls/error.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.31.31103\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for python-mbedtls
Failed to build python-mbedtls
ERROR: Could not build wheels for python-mbedtls, which is required to install pyproject.toml-based projects
I know that this library uses the C lib mbedtls and I have no experience using C, or C libraries in my python code directly.
I have made sure to install the C/C++ build tools on my VSCode, and I'm using Python 3.10. I am completely lost on how to proceed

UnrealBuildTool: ld.lld: error: unable to find library

OS:
Manjaro Linux 4.19.28-1-MANJARO
I have some problem about ld in UnrealBuildTool. and I'm everything new about all Unreal Stuff.
A week ago, I was found some Unreal-based Opensource project. released binary version is working perfectly. But it cannot build on my PC. I think It was gcc linker cannot find assimp library.
So I setup environment variable 'LIBRARY_PATH' and 'LD_LIBRARY_PATH' However, UnrealBuildTool seems not using my local machine's ld linker.
Anyone have idea for this?
Log
[440/442] Compile BuildSettings.cpp
[441/442] Compile pugixml.cpp
[442/442] Link (lld) CarlaEditor
/home/suho/Repository/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v12_clang-6.0.1-centos7/x86_64-unknown-linux-gnu/bin/ld.lld: error: unable to find library -lassimp
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ERROR: UBT ERROR: Failed to produce item: /home/suho/Workspace/carla-map-editor/Unreal/CarlaEditor/Binaries/Linux/CarlaEditor
(see /home/suho/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-CarlaEditor-Linux-Development.txt for full exception trace)
Total build time: 646.23 seconds (Local executor: 0.00 seconds)
Took 646.750887s to run mono, ExitCode=5
ERROR: UnrealBuildTool failed. See log for more details. (/home/suho/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-CarlaEditor-Linux-Development.txt)
(see /home/suho/Library/Logs/Unreal Engine/LocalBuildLogs/Log.txt for full exception trace)
AutomationTool exiting with ExitCode=5 (5)
RunUAT ERROR: AutomationTool was unable to run successfully.
make: *** [Util/BuildTools/Linux.mk:13: package] Error 5
full of log are here: https://pastebin.com/HmLphXTe

When I am building meta-toolchain-qt5 using yocto I encountered foolowing error

ERROR: qtbase-5.9.2+gitAUTOINC+ec16ba393b-r0
do_prepare_recipe_sysroot: The file /usr/lib/pkgconfig/wayland-egl.pc
is installed by both mesa and imx-gpu-viv, aborting ERROR:
qtbase-5.9.2+gitAUTOINC+ec16ba393b-r0 do_prepare_recipe_sysroot:
Function failed: extend_recipe_sysroot ERROR: Logfile of failure
stored in:
/home/sandeep/fsl-community-bsp/build/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.9.2+gitAUTOINC+ec16ba393b-r0/temp/log.do_prepare_recipe_sysroot.2803 ERROR: Task
(/home/sandeep/fsl-community-bsp/sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_prepare_recipe_sysroot)
failed with exit code '1'
mesa and imx-gpu-viv both recipe files are trying to insta the same file /usr/lib/pkgconfig/wayland-egl.pc that is cause the error. Remove the file manually and compile it again .

CentOS 6 .sln xbuild compilation error (SteamBot)

I recently just started using linux and I'm not very familiar with some of the errors or commands.
I keep getting the following error and really can't understand why
"/home/steambotv1.0/SteamBot-master/.nuget/../.ci/exec-with-retry.sh: No such file or directory"
Why is it looking for that file? it never did on windows (it compiles fine on windows)
Can any please point me in the right direction?
Here is the rest of the error message:
XBuild Engine Version 3.0.0.0
Mono, Version 3.0.0.0
Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011.
Build started 8/5/2015 12:00:36 AM.
Project "/home/steambotv1.0/SteamBot-master/SteamBot.sln" (default target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "Debug|Any CPU".
Target Build:
Project "/home/steambotv1.0/SteamBot-master/SteamTrade/SteamTrade.csproj" (default target(s)):
Target RestorePackages:
Executing: bash "/home/steambotv1.0/SteamBot-master/.nuget/../.ci/exec-with-retry.sh" mono --runtime=v4.0.30319 /home/steambotv1.0/SteamBot-master/.nuget/NuGet.exe install "packages.config" -source "" -RequireConsent -solutionDir "/home/steambotv1.0/SteamBot-master/"
bash: /home/steambotv1.0/SteamBot-master/.nuget/../.ci/exec-with-retry.sh: No such file or directory
/home/steambotv1.0/SteamBot-master/.nuget/NuGet.targets: error : Command 'bash "/home/steambotv1.0/SteamBot-master/.nuget/../.ci/exec-with-retry.sh" mono --runtime=v4.0.30319 /home/steambotv1.0/SteamBot-master/.nuget/NuGet.exe install "packages.config" -source "" -RequireConsent -solutionDir "/home/steambotv1.0/SteamBot-master/"' exited with code: 127.
Task "Exec" execution -- FAILED
Done building target "RestorePackages" in project "/home/steambotv1.0/SteamBot-master/SteamTrade/SteamTrade.csproj".-- FAILED
Done building project "/home/steambotv1.0/SteamBot-master/SteamTrade/SteamTrade.csproj".-- FAILED
Task "MSBuild" execution -- FAILED
Done building target "Build" in project "/home/steambotv1.0/SteamBot-master/SteamBot.sln".-- FAILED
Done building project "/home/steambotv1.0/SteamBot-master/SteamBot.sln".-- FAILED
Build FAILED.
Errors:
/home/steambotv1.0/SteamBot-master/SteamBot.sln (default targets) ->
(Build target) ->
/home/steambotv1.0/SteamBot-master/SteamTrade/SteamTrade.csproj (default targets) ->
/home/steambotv1.0/SteamBot-master/.nuget/NuGet.targets (RestorePackages target) ->
/home/steambotv1.0/SteamBot-master/.nuget/NuGet.targets: error : Command 'bash "/home/steambotv1.0/SteamBot-master/.nuget/../.ci/exec-with-retry.sh" mono --runtime=v4.0.30319 /home/steambotv1.0/SteamBot-master/.nuget/NuGet.exe install "packages.config" -source "" -RequireConsent -solutionDir "/home/steambotv1.0/SteamBot-master/"' exited with code: 127.
Test if you can see the file in a terminal window opened with the same user.
If not, change the permissions in Admin mode.

libvpx configure script wrong path for Visual Studio 2012

I'm trying to build libvpx 1.3.0 under Visual Studio 2012 (vs11) under windows 8.1 (x64).
I read the build prerequisites (http://www.webmproject.org/code/build-prerequisites/) and configured libvpx as following:
./configure --target=x86-win32-vs11 --disable-examples --disable-docs --disable-unit-tests
After the configure i do a make, without errors. But when i lauch the solution under Visual Studio and try to build, i get those path error:
1>------ Build started: Project: obj_int_extract, Configuration: Release Win32 ------
1> obj_int_extract.c
1>c1 : fatal error C1083: Cannot open source file: '.\\home\Thomas\libvpx-v1.3.0\build\make\obj_int_extract.c': No such file or directory
2>------ Build started: Project: vpx, Configuration: Release Win32 ------
2>cl : Command line warning D9002: ignoring unknown option '/home/Thomas/libvpx-v1.3.0/vp8/encoder/vp8_asm_enc_offsets.c'
2>cl : Command line error D8003: missing source filename
2> 'obj_int_extract.exe' is not recognized as an internal or external command,
2> operable program or batch file.
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: The command "call obj_int_extract.bat /home/Thomas/libvpx-v1.3.0
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: :VCEnd" exited with code 1.
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
I tryed both MSYS and Cygwin, same result.
Any idea ?
Ok, problem fixed:
The 1.3.0 snapshot seems to be faulty, cloning the git was the solution, it will probably be gone in the next snapshot.
Configured with Cygwin, MSYS was missing a perl module.

Resources