Building Chromium on windows throws an error message - chromium

After fetching Chromium's source code, I executed the following command
$ gn gen out/Default
This results in an execution error:
/c/src/depot_tools/gn: line 8: exec: python3: not found
What's the problem and how to solve this error?

Related

Xcode 13 build error - Command PhaseScriptExecution failed with a nonzero exit code

Cannot build with xcode 13, I keep getting this error.
I have tried everything from this thread but nothing works, https://github.com/react-native-community/upgrade-support/issues/161
I've nuked the repo pulled down again and still get the same error. I'm out of ideas, can anyone please help?
/bin/sh -c /Users/xxx/Library/Developer/Xcode/DerivedData/xxx-glxuojrfejxbhqgircpjgklctbto/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-85ABEEFECFDEC6A1611D2CF5A77EABBC.sh
/Users/xxx/apps/xxx/node_modules/react-native/scripts/generate-specs.sh: line 27: readlink: command not found
/Users/xxx/apps/xxx/node_modules/react-native/scripts/generate-specs.sh: line 27: dirname: command not found
/Users/xxx/apps/xxx/node_modules/react-native/scripts/generate-specs.sh: line 27: cd: : No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
Using xcode 13, RN 64.2, macOS Big Sur 11.6
Fixed by modifying generate-specs.sh
https://github.com/facebook/react-native/issues/32157#issuecomment-915165442
Try to add arm64 in debug & Release if excluded archivecture

How can I fix this bug with ScyllaDB?

I'm trying to work through the ScyllaDB tutorial series here: https://www.scylladb.com/2017/11/30/mutant-monitoring-system-day-1/
I've got a Docker container running (on Windows, using Powershell) and have cloned their repo, and run it with Docker Compose:
PS C:\repos\scylla-code-samples\mms> docker-compose up -d
mms_scylla-node3_1 is up-to-date
mms_scylla-node2_1 is up-to-date
Creating mms_scylla-node1_1 ... done
Trying to check its status with the nodetool returns a container restarting error:
PS C:\repos\scylla-code-samples\mms> docker exec -it mms_scylla-node1_1 nodetool status
>>
Error response from daemon: Container c2940e14078fcdbbcf70f60392b05eb3d5c90273a15970c8575aad46cd797a02 is restarting, wait until the container is running
The logs show these unexpected end of file errors:
2019-03-05T09:39:36.882128500Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:40:38.038237500Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:40:38.038383700Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:41:38.922861400Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:41:38.923067400Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:42:39.801821900Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:42:39.802078500Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:43:40.696641100Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:43:40.696928800Z /start.sh: line 36: syntax error: unexpected end of file
How can I fix this, preferably without writing code?
The \r is indicative of windows-style carriage returns, so maybe it is related to your Windows environment somehow. Advise is to try this on a Linux box, and in parallel open a bug with the scylla-code-samples.git project so that it can be fixed.
On windows, you can try using the Docker Toolbox which uses a Virtual Box based docker host rather than the one that's part of the new "Docker for Windows". This ensure that you are running on Linux without having a Linux box.
Even though it says "Legacy Desktop Solution" It still works well.
https://docs.docker.com/toolbox/toolbox_install_windows/

bazel server terminated abruptly (error code :14, error message: '',log file: 'c:\users\lee\_bazel_lee\zjiu63sl/server/jvm.out

Hi I used bazel in Windows 7
I try bazel build tensorflow/contrib/lite/toco:toco in cmd.exe
Then I got error message : server terminated abruptly (error code :14, error message: '',log file: 'c:\users\lee_bazel_lee\zjiu63sl/server/jvm.out
What can I do? Please help
enter image description here
Try in tensorflow-master folder, I got error message.enter image description here
Your current error message states that the command "patch" is not found. I gues your mingw installation has not installed this programm. See Apply a patch file in Windows using Mingw how to install it.

tutorials_example_trainer fails in debug mode (-c dbg)

The build for tutorials_example_trainer works fine in release mode (-c opt), but fails in debug mode (-c dbg).
Did anyone encounter this? It seems to be a bug.
The command I run:
bazel build -c dbg --config=cuda //tensorflow/cc:tutorials_example_trainer --verbose_failures
The build fails with the following message:
/usr/include/c++/4.8/mutex(125) (col. 5): error: calling a host
function("std::mutex_base::__mutex_base [subobject]") from a
__device function("std::mutex::mutex") is not allowed
< some warnings>
1 error detected in the compilation of
"/tmp/tmpxft_00005e78_00000000-10_cwise_op_gpu_log.cu.compute_52.cpp1.ii".
ERROR:
/home/uriv/git/tensorflow/tensorflow/tensorflow/core/BUILD:248:1:
output
'tensorflow/core/_objs/gpu_kernels/tensorflow/core/kernels/cwise_op_gpu_log.cu.pic.o'
was not created. ERROR:
/home/uriv/git/tensorflow/tensorflow/tensorflow/core/BUILD:248:1: not
all outputs were created.
Thanks.
You can workaround the problem by editing
tensorflow/third_party/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceType.h
and commenting out the following 2 lines of code:
static tensorflow::mutex m_devicePropInitMutex(tensorflow::LINKER_INITIALIZED);
and
tensorflow::mutex_lock l(m_devicePropInitMutex);
I'll push a proper fix to the tensorflow repository shortly.

Error when try to compile Chromium

I try to use the command ninja -C out/Debug chrome to compile Chromium.
However the error msg says that:
ninja error loading 'build.ninja': the system cannot find the file specified
ninja Entering dictory 'out/Debug'
Could I know what's the problem?
Thanks.
The out directory and its contents (including build.ninja) are created by running
python build\gyp_chromium
or
gclient runhooks
Executing either command from within /src should allow your compile to proceed.
On Windows machine!
When I was running gn gen out/Default it also gave me an error:
ERROR at //build/config/win/visual_studio_version.gni:27:7: Script returned non-zero exit code.
exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope")
^----------
Current dir: D:/Chromium/src/out/Goma/
Command: C:/Python27/python.exe -- D:/Chromium/src/build/vs_toolchain.py get_toolchain_dir
Returned 1 and printed out:
Please follow the instructions at https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md
I did the following steps and it worked for me.
Set this variable. Reference (not sure about its purpose yet)
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
Run the command gn gen out/Default
Run the build command again
autoninja -C out/Default chrome
It is also recommended to run gclient sync from out/Default directory.
After the switch to "gn" you could try:
gn gen out/Debug