우분투 18.04에서 arm용 크롬을 컴파일하려고 합니다.
나는 팔로우한다지시하다그리고시스템 루트 디렉터리 설정. 또한 ()에 설명된 대로 arm 매개변수를 전달했습니다 gn gen out/Default "--args=target_cpu=\"arm\""
. 컴파일( )을 시작했고 autoninja -C out/Default chrome
몇 분 동안 실행되었습니다. 이제 이 오류 메시지가 나타납니다.
ninja: Entering directory `out/Default'
[21291/70630] ACTION //third_party/dom_distiller_js:dom_distiller_proto_gen(//build/toolchain/linux:clang_arm)
FAILED: pyproto/third_party/dom_distiller_js/dom_distiller_pb2.py gen/third_party/dom_distiller_js/dom_distiller.pb.h gen/third_party/dom_distiller_js/dom_distiller.pb.cc gen/third_party/dom_distiller_js/dom_distiller_json_converter.h
python ../../tools/protoc_wrapper/protoc_wrapper.py dom_distiller.proto --protoc ./clang_x64/protoc --proto-in-dir ../../third_party/dom_distiller_js/dist/proto --cc-out-dir gen/third_party/dom_distiller_js --py-out-dir pyproto/third_party/dom_distiller_js --plugin ../../third_party/dom_distiller_js/protoc_plugins/json_values_converter.py --plugin-out-dir gen/third_party/dom_distiller_js --plugin-options output_dir=:
Traceback (most recent call last):
File "../../third_party/dom_distiller_js/protoc_plugins/json_values_converter.py", line 14, in <module>
from util import plugin_protos, types, writer
File "/home/dustin/chromium/src/third_party/dom_distiller_js/protoc_plugins/util/plugin_protos.py", line 22, in <module>
from google.protobuf.descriptor_pb2 import FieldDescriptorProto
ImportError: No module named protobuf.descriptor_pb2
--plugin_out: protoc-gen-plugin: Plugin failed with status code 1.
Protoc has returned non-zero status: 1
[21293/70630] ACTION //third_party/dom_distiller_js:json_values_converter_test_proto_gen(//build/toolchain/linux:clang_arm)
FAILED: pyproto/third_party/dom_distiller_js/test_sample_pb2.py gen/third_party/dom_distiller_js/test_sample.pb.h gen/third_party/dom_distiller_js/test_sample.pb.cc gen/third_party/dom_distiller_js/test_sample_json_converter.h
python ../../tools/protoc_wrapper/protoc_wrapper.py test_sample.proto --protoc ./clang_x64/protoc --proto-in-dir ../../third_party/dom_distiller_js --cc-out-dir gen/third_party/dom_distiller_js --py-out-dir pyproto/third_party/dom_distiller_js --plugin ../../third_party/dom_distiller_js/protoc_plugins/json_values_converter.py --plugin-out-dir gen/third_party/dom_distiller_js --plugin-options output_dir=:
Traceback (most recent call last):
File "../../third_party/dom_distiller_js/protoc_plugins/json_values_converter.py", line 14, in <module>
from util import plugin_protos, types, writer
File "/home/dustin/chromium/src/third_party/dom_distiller_js/protoc_plugins/util/plugin_protos.py", line 22, in <module>
from google.protobuf.descriptor_pb2 import FieldDescriptorProto
ImportError: No module named protobuf.descriptor_pb2
--plugin_out: protoc-gen-plugin: Plugin failed with status code 1.
Protoc has returned non-zero status: 1
[21308/70630] CXX obj/services/device/usb/mojo/mojo/device_manager_impl.o
ninja: build stopped: subcommand failed.
답변1
pip를 통해 누락된 모듈을 설치하면 문제가 해결되었습니다.