[
https://issues.apache.org/jira/browse/HBASE-29653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18029398#comment-18029398
]
Istvan Toth edited comment on HBASE-29653 at 10/13/25 5:45 AM:
---------------------------------------------------------------
HBase does not compile native code, the os plugin is used to find the protoc
compiler binary.
I suggest changing the ticket title to match the commit message.
was (Author: stoty):
HBase does not have native code, the os plugin is used to find the protoc
compiler binary.
I suggest changing the ticket title to match the commit message.
> HBase native code build fails on riscv64 due to os-maven-plugin not
> recognizing RISC-V architecture
> ---------------------------------------------------------------------------------------------------
>
> Key: HBASE-29653
> URL: https://issues.apache.org/jira/browse/HBASE-29653
> Project: HBase
> Issue Type: Improvement
> Components: build
> Reporter: Gong Xiaofei
> Priority: Major
> Labels: pull-request-available
>
> h2. Problem Description
> The build process of HBase's native code on the {{riscv64}} architecture
> fails because the {{os-maven-plugin}} does not recognize the RISC-V
> architecture. This results in the following error during the Maven build
> process:
> {{[INFO] Detecting the operating system and CPU architecture
> [INFO]
> ------------------------------------------------------------------------
> [INFO] os.detected.name: linux
> [INFO] os.detected.arch: unknown
> [INFO] os.detected.version: 6.12
> [INFO] os.detected.version.major: 6
> [INFO] os.detected.version.minor: 12
> [ERROR] unknown os.arch: riscv64 -> [Help 1]}}
> h2. Root Cause Analysis
> The {{os-maven-plugin}} is a Maven extension that detects the operating
> system and architecture for cross-platform builds. Older versions of this
> plugin lack support for the RISC-V architecture ({{{}riscv64{}}}), causing
> the build to fail when it cannot properly identify the CPU architecture.
> h2. Impact Assessment
> * {*}Build Failure{*}: HBase native components cannot be built on RISC-V
> systems
> * {*}Platform Support Gap{*}: Limits HBase adoption on emerging RISC-V
> hardware platforms
> * {*}Development Blockers{*}: RISC-V developers cannot contribute to or test
> HBase on their architecture
> h2. Resolution
> *Upgrade {{os-maven-plugin}} to version 1.7.1 or later* which includes native
> support for RISC-V architectures.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)