Package fails to build in prepare()
when /bin/sh
is not bash.
sh ./make.sh
needs to be changed to bash make.sh
==> Starting prepare()...
Cloning into '/tmp/mozc-test/src/mozc-ut-git/src/third_party/protobuf'...
Submodule path 'third_party/abseil-cpp': checked out '215105818dfde3174fe799600bb0f3cae233d0bf'
Submodule path 'third_party/breakpad': checked out '216cea7bca53fa441a3ee0d0f5fd339a3a894224'
Submodule path 'third_party/gtest': checked out '58d77fa8070e8cec2dc1ed015d66b454c8d78850'
Submodule path 'third_party/gyp': checked out '9ecf45e37677743503342ee4c6a76eaee80e4a7f'
Submodule path 'third_party/japanese_usage_dictionary': checked out 'e5b3425575734c323e1d947009dd74709437b684'
Submodule path 'third_party/jsoncpp': checked out '11086dd6a7eba04289944367ca82cea71299ed70'
Submodule path 'third_party/protobuf': checked out 'cc7b1b53234cd7a8f50d90ac3933b240dcf4cd97'
Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/protobuf/third_party/benchmark'
Submodule 'third_party/googletest' (https://github.com/google/googletest.git) registered for path 'third_party/protobuf/third_party/googletest'
Cloning into '/tmp/mozc-test/src/mozc-ut-git/src/third_party/protobuf/third_party/benchmark'...
Cloning into '/tmp/mozc-test/src/mozc-ut-git/src/third_party/protobuf/third_party/googletest'...
Submodule path 'third_party/protobuf/third_party/benchmark': checked out '5b7683f49e1e9223cf9927b24f6fd3d6bd82e3f8'
Submodule path 'third_party/protobuf/third_party/googletest': checked out '5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081'
./make.sh: 17: [[: not found
./make.sh: 21: [[: not found
./make.sh: 25: [[: not found
./make.sh: 29: [[: not found
./make.sh: 33: [[: not found
./make.sh: 37: [[: not found
./make.sh: 41: [[: not found
./make.sh: 45: [[: not found
remove_duplicate_ut_entries.rb:24:in `initialize': No such file or directory @ rb_sysopen - mozcdic-ut.txt (Errno::ENOENT)
from remove_duplicate_ut_entries.rb:24:in `new'
from remove_duplicate_ut_entries.rb:24:in `<main>'
--2023-01-27 12:26:33-- https://dumps.wikimedia.org/jawiki/latest/jawiki-latest-all-titles-in-ns0.gz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving dumps.wikimedia.org (dumps.wikimedia.org)... 208.80.154.142, 2620:0:861:2:208:80:154:142
Connecting to dumps.wikimedia.org (dumps.wikimedia.org)|208.80.154.142|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13987893 (13M) [application/octet-stream]
Saving to: 'jawiki-latest-all-titles-in-ns0.gz'
jawiki-latest-all-titles-in-ns0.gz 100%[=========================================================================================================================================================================>] 13.34M 1.17MB/s in 9.8s
2023-01-27 12:26:43 (1.36 MB/s) - 'jawiki-latest-all-titles-in-ns0.gz' saved [13987893/13987893]
count_word_hits.rb:16:in `split': invalid byte sequence in US-ASCII (ArgumentError)
from count_word_hits.rb:16:in `<main>'
apply_word_hits.rb:21:in `initialize': No such file or directory @ rb_sysopen - jawiki-latest-all-titles-in-ns0.hits (Errno::ENOENT)
from apply_word_hits.rb:21:in `new'
from apply_word_hits.rb:21:in `<main>'
cat: /tmp/mozc-test/src/merge-ut-dictionaries/src/mozcdic-ut.txt: No such file or directory
==> ERROR: A failure occurred in prepare().
Aborting...
Pinned Comments
Nocifer commented on 2022-05-29 21:54 (UTC) (edited on 2023-08-22 09:33 (UTC) by Nocifer)
If you're getting compilation errors, please delete your Bazel cache (
~/.cache/bazel
by default).