Open FaberFlorian opened 1 year ago
Hey @FaberFlorian , thanks for the report.
This is an interesting problem. Could you run the build with bear --verbose -- ...
? That might reveal what is the invalid UTF-8 the gRPC library is complaining about.
Yes, of course I tried a rerun with --verbose (have a nice 1.5GB log file here :) and the problem did not appear. Seems to be a heisenbug :)
I can try another set of runs in a few hours, for now I reverted to bear 2.x, it seems to work.
Yes, bear 2.x does not use gRPC. This bug won't be there. Maybe some others. :)
Hello, @rizsotto
I encountered the same problem today. I tried to compile the kernel from android_kernel_hisi_hi3650. Bear has problem with this command
Debug log:
+ get_off drivers/huawei_platform/oases/inlinehook_offset.h drivers/huawei_platform/oases/inlinehook_func_pre.bin FUNC_PRE_PLACE_HOLDER_OFFSET 0xdead1001
+ _out=drivers/huawei_platform/oases/inlinehook_offset.h
+ _src=drivers/huawei_platform/oases/inlinehook_func_pre.bin
+ _key=FUNC_PRE_PLACE_HOLDER_OFFSET
+ _mem=0xdead1001
+ hex='\x01\x10\xad\xde'
++ echo -e '\x01\x10\xad\xde'
+ hex=$'\001\020\255\336'
++ LANG=C
++ LC_ALL=C
++ grep -obUaP $'\001\020\255\336' drivers/huawei_platform/oases/inlinehook_func_pre.bin
[libprotobuf ERROR google/protobuf/wire_format_lite.cc:577] String field 'rpc.Execution.arguments' contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
wrapper: failed with: gRPC call failed:
Simplified steps to reproduce:
bear -- grep -obUaP $'\005\020\255\336' out/drivers/huawei_platform/oases/inlinehook_subfunc_post.bin
[libprotobuf ERROR google/protobuf/wire_format_lite.cc:577] String field 'rpc.Execution.arguments' contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
[libprotobuf ERROR google/protobuf/wire_format_lite.cc:577] String field 'rpc.Execution.arguments' contains invalid UTF-8 data when parsing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
wrapper: failed with: gRPC call failed:
Bear version 3.0.18, installed via apt on Ubuntu 22.04.
After having many more issues, I solved this by writing my own interceptor/CDB generator :)
Side effect is no slowdown of the build.
Describe the bug The build aborts because non UTF-8-data seems to appear while building glibc-2.36.
To Reproduce Cannot paste my full cross-compile environment here. It happens when building glibc-2.36:
-----------------------arm target--------------------------