-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
error executing command: /bin/bash: line 1: $'\r': command not found #172
Comments
Same as #169 Please don't replace LF with CRLF (that is, turn off |
Okay, im sorry, didnt have this type of problems before. So ive made some changes
The android build lasted much longer this time but failed at : Use --sandbox_debug to see verbose messages from the sandbox gcc failed: error executing command /usr/sbin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 38 argument(s) skipped) Use --sandbox_debug to see verbose messages from the sandbox I thought that removing the repository and setting the autocrlf to false would fix the problem but i was wrong |
Will you run |
Maybe this is caused by bazelbuild/bazel#12702 Does this occur if you run the build command in an Ubuntu container? docker build -t mediapipe_unity:ubuntu . -f docker/linux/x86_64/Dockerfile.ubuntu
docker run --cpus=3 --memory=8192m --mount type=bind,src=%CD%\Packages,dst=/home/mediapipe/Packages -it mediapipe_unity:ubuntu
# in the container
python build.py build --android arm64 -vv |
I have the same error and here the step :
|
In case your ask for the full log: |
@aidenpearce001 Yep that seem like almost the same
executor failed running [/bin/sh -c apt-get update && apt-get install -y --no-install-recommends apt-transport-https build-essential ca-certificates clang curl dirmngr git gnupg libegl1-mesa-dev libgles2-mesa-dev mesa-common-dev nasm npm openjdk-11-jdk pkg-config software-properties-common sudo unzip zip]: exit code: 100 C:\Users\Student\Documents\GitHub\MediaPipeUnityPlugin>docker build -t mediapipe_unity:ubuntu . -f docker/linux/x86_64/Dockerfile.ubuntu --fix-missing |
@TheBricktop #172 (comment) is probably caused by some mirror sites of Ubuntu or your network. |
@homuler yes I've tried with fixmissing and it went through, then android aar build was successful, I'm trying to use it in device now. |
Fixed by using the ubuntu docker image and adding the --fixmissing into the pkgbuild file to apt-get install |
a3332df fixed this issue. |
I'm struck in same place with same error. is there anyway to get passed this? |
I got the same issue after using Dockerfile Ubuntu 18.04.6 LTS
Use --sandbox_debug to see verbose messages from the sandbox |
I got this errors when trying to run "python build.py build --android arm64 -vv" on linux container INF/home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/repo.bzl:124:14: Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose m``` Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Configuration: 5bc79e698554396b72b5903a55749cf17a8b795382c49b33c74c1b2f0dfe3a15Execution platform: @local_execution_config_platform//:platformUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging |
System information
Describe the problem
After succesfully building the docker image and then running it ive started the process of building the android plugin but got error on step : ERROR: /home/mediapipe/mediapipe_api/framework/formats/BUILD:123:17: Executing genrule //mediapipe_api/framework/formats:rasterization_cs failed: (Exit 127): bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped)
Steps to reproduce the issue
Full logs
C:\Users\Student\Documents\GitHub\MediapipeUnityPlugin>docker run --cpus=3 --memory=8192m --mount type=bind,src=%CD%\Packages,dst=/home/mediapipe/Packages -it mediapipe_unity:linux
[mediapipe@a6488514b249 ~]$ python build.py build --android arm64 -v
INFO (build.py): Building protobuf sources...
DEBUG (build.py): Running
bazel build -c opt //mediapipe_api:mediapipe_proto_srcs
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
WARNING: Download from http://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
DEBUG: /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/tf_runtime/third_party/cuda/dependencies.bzl:51:10: The following command will download NVIDIA proprietary software. By using the software you agree to comply with the terms of the license agreement that accompanies the software. If you do not agree to the terms of the license agreement, do not use the software.
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
/home/mediapipe/WORKSPACE:34:23: in
/home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
/home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
/home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
INFO: SHA256 (https://github.com/bazelbuild/rules_cc/archive/master.zip) = b1788ea6d99fed9bdd32a0fb15badf8a1dd0e26eb60cc58ea845571b5e4ca54b
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b1788ea6d99fed9bdd32a0fb15badf8a1dd0e26eb60cc58ea845571b5e4ca54b"
DEBUG: Repository rules_cc instantiated at:
/home/mediapipe/WORKSPACE:78:13: in
Repository rule http_archive defined at:
/home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
INFO: Analyzed target //mediapipe_api:mediapipe_proto_srcs (44 packages loaded, 674 targets configured).
INFO: Found 1 target...
INFO: From Compiling src/google/protobuf/message_lite.cc [for host]:
In file included from /usr/include/string.h:519,
from external/com_google_protobuf/src/google/protobuf/stubs/port.h:39,
from external/com_google_protobuf/src/google/protobuf/stubs/common.h:46,
from external/com_google_protobuf/src/google/protobuf/message_lite.h:45,
from external/com_google_protobuf/src/google/protobuf/message_lite.cc:36:
In function 'void* memcpy(void*, const void*, size_t)',
inlined from 'google::protobuf::uint8* google::protobuf::io::EpsCopyOutputStream::WriteRaw(const void*, int, google::protobuf::uint8*)' at external/com_google_protobuf/src/google/protobuf/io/coded_stream.h:699:16,
inlined from 'virtual google::protobuf::uint8* google::protobuf::internal::ImplicitWeakMessage::_InternalSerialize(google::protobuf::uint8*, google::protobuf::io::EpsCopyOutputStream*) const' at external/com_google_protobuf/src/google/protobuf/implicit_weak_message.h:87:28,
inlined from 'bool google::protobuf::MessageLite::SerializePartialToZeroCopyStream(google::protobuf::io::ZeroCopyOutputStream*) const' at external/com_google_protobuf/src/google/protobuf/message_lite.cc:388:30:
/usr/include/bits/string_fortified.h:29:33: warning: 'void* __builtin___memcpy_chk(void*, const void*, long unsigned int, long unsigned int)' specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
29 | return __builtin___memcpy_chk (__dest, __src, __len,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
30 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
ERROR: /home/mediapipe/mediapipe_api/framework/formats/BUILD:123:17: Executing genrule //mediapipe_api/framework/formats:rasterization_cs failed: (Exit 127): bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
/bin/bash: line 1: $'\r': command not found
Target //mediapipe_api:mediapipe_proto_srcs failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 239.370s, Critical Path: 159.08s
INFO: 202 processes: 25 internal, 177 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
Traceback (most recent call last):
File "/home/mediapipe/build.py", line 392, in
Argument().command().run()
File "/home/mediapipe/build.py", line 109, in run
self._run_command(self._build_proto_srcs_commands())
File "/home/mediapipe/build.py", line 51, in _run_command
return subprocess.run(command_list, check=True)
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['bazel', 'build', '-c', 'opt', '//mediapipe_api:mediapipe_proto_srcs']' returned non-zero exit status 1.
[mediapipe@a6488514b249 ~]$
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: