imac risingwave编译记录:please_compile_with_a_simd_compatible_cpu_setting_read_the_simdjsonrs_readme()

环境

在这里插入图片描述

代码版本

23年1月15日,git clone代码编译
参考文档:https://github.com/risingwavelabs/risingwave

# Install Rust toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Clone the repo
git clone https://github.com/risingwavelabs/risingwave.git && cd risingwave
# Compile and start the playground
./risedev playground

编译报错:

error[E0308]: mismatched types
–> /Users/odysa/.cargo/git/checkouts/simd-json-0dd937541df12053/fe89a0d/src/lib.rs:228:86
|
228 | fn please_compile_with_a_simd_compatible_cpu_setting_read_the_simdjsonrs_readme() -> ! {}
| ---------------------------------------------------------------------------- ^ expected !, found ()
| |
| implicitly returns () as its body has no tail or return expression
|
= note: expected type !
found unit type ()
在这里插入图片描述

修正

参考:https://github.com/risingwavelabs/risingwave/issues/7375
https://github.com/simd-lite/simd-json/blob/e611d9db0116885f66a1683ee1d6f5537b2cd83a/.cargo/config#L1-L2

  • 修改:
    .cargo/config.toml文件编译依旧报错;
  • 测试:
    单独下载 https://github.com/simd-lite/simd-json 编译OK。
  • 查看rustc 支持的目标CPU rustc --print target-cpus,支持simd。
    -在这里插入图片描述
  • 更新代码编译
    依旧报错
    在这里插入图片描述
    在这里插入图片描述
  • 删除代码,重新pull,编译

在这里插入图片描述

编译成功

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值