已开启
Fix build error of protoc-gen-grpc-java #75
Dingli Zhang创建于 2025年10月28日
Fix build error of protoc-gen-grpc-java #75
已开启
Dingli Zhang创建于 2025年10月28日
从refs/pull/75/head合入到openEuler-24.03-LTS-Next
Dingli Zhang
Dingli Zhang
2025年10月28日

Fix build error of protoc-gen-grpc-java

https://gitee.com/src-openeuler/spark/pulls/74 之后3.25.1的protoc mvn install操作的工作目录是位于spark目录之下的,这会导致maven-install-plugin版本的变动(由2.4变为3.1.1):

  • 旧版本(≤ 2.5.2)会直接把 -Dpackaging=exe 当作文件扩展名用,所以目标文件名自动带上 .exe。
  • 从 3.0.0-M1 修复 MINSTALL-121 后,插件不再用 packaging 来决定文件扩展名;如果不指定扩展名,且源文件也没扩展名(/usr/bin/protoc),就会安装成没有后缀的文件名。并且自 3.1.3 起才新增了可显式指定的 -Dextension 参数。

所以目前riscv64和 loongarch64 都会出现以下问题,mvn install的文件为:

Installing /usr/bin/protoc to /home/lkp/.m2/repository/com/google/protobuf/protoc/3.25.1/protoc-3.25.1-linux-loongarch_64

由于不包含后缀名,会报错:

2025-10-24 17:44:37 * What went wrong:
2025-10-24 17:44:37 Execution failed for task ':grpc-compiler:generateTestProto'.
2025-10-24 17:44:37 > Could not resolve all files for configuration ':grpc-compiler:protobufToolsLocator_protoc'.
2025-10-24 17:44:37    > Could not find protoc-3.25.1-linux-loongarch_64.exe (com.google.protobuf:protoc:3.25.1).
2025-10-24 17:44:37      Searched in the following locations:
2025-10-24 17:44:37          file:/home/lkp/.m2/repository/com/google/protobuf/protoc/3.25.1/protoc-3.25.1-linux-loongarch_64.exe

因此增加pushd %{_builddir}及popd修改执行路径。

Use jdk11 to build on riscv64

在riscv上使用jdk8构建时会构建失败,因此改用jdk11进行构建,不会影响其他架构。
构建结果:
输入图片说明

likedislike
合并受阻
openeuler-ci-botopeneuler-ci-bot成员
2025年10月28日 指派了 wuzeyi1 参与评审
openeuler-ci-botopeneuler-ci-bot成员
2025年10月28日 指派了 yangzhao_kl 参与评审
openeuler-ci-bot
openeuler-ci-bot成员
2025年10月28日 评论:

Hi DingliZhang, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: bigdata, and any of the maintainers: @yangzhao_kl , @wuzeyi1 , @MacChen1 , any of the committers: @wenwj0

likedislike
AtomGit-Bot
2025年10月28日 评论:

当前仓库存在以下 保护分支 :

Protected Branch Version Release
master 3.5.0 5
openEuler-20.03-LTS-SP4 3.2.0 3
openEuler-22.03-LTS-SP3 3.2.2 2
openEuler-22.03-LTS-SP4 3.2.2 3
openEuler-24.03-LTS 3.5.0 4
* openEuler-24.03-LTS-Next 3.5.0 6
openEuler-24.03-LTS-SP1 3.5.0 5
openEuler-24.03-LTS-SP2 3.5.0 6
openEuler-24.03-LTS-SP3 3.5.0 6
openEuler-25.03 3.5.0 5
openEuler-25.09 3.5.0 5

评论 /sync <branch1> <branch2> ... 可将当前 PR 修改同步到其它分支(创建同步 PR):
a) 如果当前 PR 是 Open 状态,同步操作将延迟到 PR 被合并时执行
b) 如果当前 PR 已经 Merged,将立即执行同步操作

注意:

  1. /sync 命令可以指定同步到多个分支,仅最后一个 /sync 命令生效
  2. 如果创建的同步 PR 不正确,可通过向同步 PR 的源分支提交轻量级 PR 完善,或使用 /close 命令关闭
likedislike
openeuler-ci-botopeneuler-ci-bot成员
2025年10月28日 添加了 &nbsp; sig/bigdata 标签
openeuler-ci-botopeneuler-ci-bot成员
2025年10月28日 添加了 &nbsp; openeuler-cla/yes 标签
Dingli ZhangDingli Zhang
2025年10月28日 更新了说明
openeuler-ci-bot
openeuler-ci-bot成员
2025年10月28日 评论:

门禁正在运行, 您可以通过以下链接查看实时门禁检查结果.
若您对门禁结果含义不清晰或者遇到问题不知如何解决,可参考门禁指导手册
门禁入口及编码规范检查: multiarch/src-openeuler/trigger/spark/158/console

likedislike
openeuler-ci-botopeneuler-ci-bot成员
2025年10月28日 添加了 &nbsp; ci_processing 标签
Dingli ZhangDingli Zhang
2025年10月28日 更新了说明
openeuler-ci-bot
openeuler-ci-bot成员
2025年10月28日 评论:

x86_64架构构建及构建后检查:multiarch/src-openeuler/x86-64/spark/171/console

likedislike
openeuler-ci-bot
openeuler-ci-bot成员
2025年10月28日 评论:

aarch64架构构建及构建后检查:multiarch/src-openeuler/aarch64/spark/155/console

likedislike
openeuler-ci-botopeneuler-ci-bot成员
2025年10月28日 移除了 &nbsp; ci_processing 标签
openeuler-ci-bot
openeuler-ci-bot成员
2025年10月28日 评论:
Check Name Build Result Build Details
check_binary_file :white_check_mark:SUCCESS #158
check_package_yaml_file :white_check_mark:SUCCESS
check_repo_in_maintain :white_check_mark:SUCCESS
check_consistency :white_check_mark:SUCCESS
check_spec_file :white_check_mark:SUCCESS
aarch64 check_build :white_check_mark:SUCCESS #155
check_install :white_check_mark:SUCCESS
check_license :white_check_mark:SUCCESS
x86_64 check_build :white_check_mark:SUCCESS #171
check_install :white_check_mark:SUCCESS
check_license :white_check_mark:SUCCESS
likedislike
openeuler-ci-bot
openeuler-ci-bot成员
2025年10月28日 评论:

如下为接口变更检查结果,目标分支为openEuler-24.03-LTS-Next,请PR提交者check差异信息

Arch Name Check Items Rpm Name Check Result Build Details
compare_package(x86_64) add_rpms :white_check_mark:SUCCESS #171
delete_rpms :white_check_mark:SUCCESS
rpm_files :white_check_mark:SUCCESS
rpm_jabi :white_check_mark:SUCCESS
rpm_lib :white_check_mark:SUCCESS
rpm_provides :white_check_mark:SUCCESS
rpm_requires :white_check_mark:SUCCESS
rpm_symbol :white_check_mark:SUCCESS
compare_package(aarch64) add_rpms :white_check_mark:SUCCESS #155
delete_rpms :white_check_mark:SUCCESS
rpm_files :white_check_mark:SUCCESS
rpm_jabi :white_check_mark:SUCCESS
rpm_lib :white_check_mark:SUCCESS
rpm_provides :white_check_mark:SUCCESS
rpm_requires :white_check_mark:SUCCESS
rpm_symbol :white_check_mark:SUCCESS
likedislike
openeuler-ci-botopeneuler-ci-bot成员
2025年10月28日 添加了 &nbsp; ci_successful 标签
openeuler-ci-bot
openeuler-ci-bot成员
2025年10月28日 评论:

@DingliZhang

likedislike
openeuler-ci-bot
openeuler-ci-bot成员
2025年10月28日 评论:

门禁常见失败问题及解决方案, 可参考门禁问题排查手册
若门禁存在误报,您可以评论/ci_mistake 158进行误报标记,158表示本次构建号
也可带上误报的门禁检查项以及误报类型(ci、obs、infra),比如/ci_mistake 158 obs check_build check_install表示的是check_build和check_install存在误报,误报类型为obs
若想取消误报标记,可以评论/ci_unmistake 158取消
也可在评论后加上一段文字描述,但请另起一行

likedislike
Dingli ZhangDingli Zhang
2025年10月31日 更新了说明
Dingli Zhang
Dingli Zhang
2025年10月31日 评论:

@yangzhao_kl , @wuzeyi1 , @macchen1 , @wenwj0 请老师们帮忙检视,谢谢~

likedislike
openeuler-ci-bot
openeuler-ci-bot成员
8月22日 评论:

/check-cla

likedislike
openeuler-ci-botopeneuler-ci-bot成员
8月22日 删除了label:openeuler-cla/yes
openeuler-ci-botopeneuler-ci-bot成员
8月22日 添加了label:openeuler-cla/yes
openeuler-ci-bot
openeuler-ci-bot成员
8月22日 评论:

CLA Signature Pass

DingliZhang, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike