Kudu 源码编译-aarch架构 1.17.1版本

跟着官方文档编译

第一个问题:在make阶段时会报的问题:

cpp 复制代码
kudu/src/kudu/util/block_bloom_filter.cc:210:3: error: 'vst1q_u32_x2' was not declared in this scope
kudu/src/kudu/util/block_bloom_filter.cc:436:5: error: 'vst1q_u8_x2' was not declared in this scope

vst1q_u32_x2: vst2q_u32

vst1q_u8_x2: vst2q_u8

用这两个函数代替;

第二个问题:gradle-7.6.4-all.zip下载不下来

java 复制代码
Exception in thread "main" java.io.IOException: Downloading from https://services.gradle.org/distributions/gradle-7.6.4-all.zip failed: timeout

用迅雷本地下载(翻墙),上传至下面这个目录,最后一个目录名是随机生成的。

java 复制代码
/root/.gradle/wrapper/dists/gradle-7.6.4-all/69w292fwwbbevpookp42lrbux

第三个问题:gradle源要换成国内源

java 复制代码
Execution failed for task ':buildSrc:compileGroovy'.
		> Could not resolve all files for configuration ':buildSrc:compileClasspath'.
		   > Could not download gradle-versions-plugin-0.41.0.jar (com.github.ben-manes:gradle-versions-plugin:0.41.0)
			  > Could not get resource 'https://plugins.gradle.org/m2/com/github/ben-manes/gradle-versions-plugin/0.41.0/gradle-versions-plugin-0.41.0.jar'.
				 > Could not HEAD 'https://plugins.gradle.org/m2/com/github/ben-manes/gradle-versions-plugin/0.41.0/gradle-versions-plugin-0.41.0.jar'.
		Execution failed for task ':buildSrc:compileGroovy'.
		> Could not resolve all files for configuration ':buildSrc:compileClasspath'.
		   > Could not download gradle-versions-plugin-0.41.0.jar (com.github.ben-manes:gradle-versions-plugin:0.41.0)
			  > Could not get resource 'https://plugins.gradle.org/m2/com/github/ben-manes/gradle-versions-plugin/0.41.0/gradle-versions-plugin-0.41.0.jar'.
				 > Could not HEAD 'https://plugins.gradle.org/m2/com/github/ben-manes/gradle-versions-plugin/0.41.0/gradle-versions-plugin-0.41.0.jar'.

下面这个文件可以改gradle源,换成国内源:

java 复制代码
kudu/java/buildSrc/build.gradle

本人换成的源地址:

java 复制代码
repositories {
    maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } //gradle-plugin
	maven { url 'https://maven.aliyun.com/repository/google' } //google
	maven { url 'https://maven.aliyun.com/repository/public' } //public
	maven { url 'https://maven.aliyun.com/repository/jcenter' } //jcenter
	/*google()
	mavenCentral()
	gradlePluginPortal()*/
}

笔记记录一下

相关推荐
面向Google编程几秒前
从零学习Kafka:幂等与事务
大数据·kafka
2301_812539672 分钟前
c++怎么读取安卓系统Assets目录下的资源文件流数据【实战】
jvm·数据库·python
dishugj6 分钟前
HANA数据库常用命令总结
java·前端·数据库
m0_740796368 分钟前
MongoDB节点一直处于RECOVERING状态怎么排查_Oplog陈旧与全量同步失败
jvm·数据库·python
2301_815901979 分钟前
Go语言怎么做秒杀系统_Go语言秒杀系统实战教程【实用】
jvm·数据库·python
2303_8212873810 分钟前
C#怎么实现WebAPI版本控制_C#如何管理不同接口版本【核心】
jvm·数据库·python
woxihuan12345611 分钟前
如何使用MongoDB按前缀模糊查询_正则表达式^与索引利用
jvm·数据库·python
2401_8246976611 分钟前
Golang怎么用Go实现数据导入导出平台_Golang如何支持CSV和Excel格式的批量数据导入导出【实战】
jvm·数据库·python
重生之小比特13 分钟前
【MySQL 数据库】内外连接
数据库·mysql