Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust build error llvm_asm #1785

Open
forrestzhang opened this issue Jan 21, 2022 · 15 comments
Open

rust build error llvm_asm #1785

forrestzhang opened this issue Jan 21, 2022 · 15 comments

Comments

@forrestzhang
Copy link
Contributor

cargo build --release
warning: resolver for the non root package will be ignored, specify resolver at the workspace root:
package: /home/forrest/Github/QUANTAXIS/qapro-rs/Cargo.toml
workspace: /home/forrest/Github/QUANTAXIS/Cargo.toml

error[E0635]: unknown feature `llvm_asm`
   --> /home/forrest/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd_2-0.3.6/src/lib.rs:227:5
    |
227 |     llvm_asm
    |     ^^^^^^^^

For more information about this error, try `rustc --explain E0635`.
error: could not compile `packed_simd_2` due to previous error
@yutiansut
Copy link
Owner

nightly还是stable?

@forrestzhang
Copy link
Contributor Author

nightly

@yutiansut
Copy link
Owner

rustc的版本呢

@forrestzhang
Copy link
Contributor Author

v1.60.0-nightly

@yutiansut
Copy link
Owner

v1.60.0-nightly

试试退到1.59 的nightly

@forrestzhang
Copy link
Contributor Author

编译过了
但是

"SELECT * FROM quantaxis.stock_cn_day where order_book_id in ['600010.XSHG','300002.XSHE'] AND date BETWEEN '2021-07-11' AND '2021-12-22' order by date"
thread 'main' panicked at 'called Result::unwrap() on an Err value: Custom { kind: Other, error: "Server error: ERROR DB::Exception (81): DB::Exception: Database quantaxis doesn't exist" }', qapro-rs/src/main.rs:38:10
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
(qa)

@forrestzhang
Copy link
Contributor Author

❯ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
22e28c042cef daocloud.io/quantaxis/qaeventmq:latest "docker-entrypoint.s…" About a minute ago Up About a minute 0.0.0.0:4369->4369/tcp, :::4369->4369/tcp, 5671/tcp, 0.0.0.0:5672->5672/tcp, :::5672->5672/tcp, 15671/tcp, 15691-15692/tcp, 0.0.0.0:15672->15672/tcp, :::15672->15672/tcp, 25672/tcp qapro-rs_qaeventmq_1
227ee02a320b daocloud.io/quantaxis/qaredis:latest "docker-entrypoint.s…" About a minute ago Up About a minute 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp qapro-rs_redis_1
7e37a63eee2b daocloud.io/quantaxis/qa-clickhouse "/entrypoint.sh" About a minute ago Up About a minute 0.0.0.0:8123->8123/tcp, :::8123->8123/tcp, 0.0.0.0:9000->9000/tcp, :::9000->9000/tcp, 0.0.0.0:9009->9009/tcp, :::9009->9009/tcp qapro-rs_qaclickhouse_1
9b822791e4a8 daocloud.io/quantaxis/qamongo_single:latest "docker-entrypoint.s…" About a minute ago Up About a minute 0.0.0.0:27017->27017/tcp, :::27017->27017/tcp

@forrestzhang
Copy link
Contributor Author

服务起起来了的

@yutiansut
Copy link
Owner

数据在clickhouse里.....

@forrestzhang
Copy link
Contributor Author

❯ cargo run --color=always --package qapro-rs --release example.toml

@yutiansut
Copy link
Owner

数据库默认在clickhouse数据库里 所以你拿不到数据 倒不是你的流程有啥问题

@forrestzhang
Copy link
Contributor Author

之前的数据默认是下载到mongodb里面的,请问如何重新下载数据到clickhouse或者从mongodb迁移到clickhouse里面?谢谢

@yutiansut
Copy link
Owner

2.0本来有个数据升级计划 后来变成百度云分享压缩包形式了

@forrestzhang
Copy link
Contributor Author

2.0本来有个数据升级计划 后来变成百度云分享压缩包形式了

请问如何才能获得百度云的链接地址?谢谢

@GaofengLu
Copy link

参看这个,在 packed_simd 里去掉 llvm_asm feature 即可
The unstable llvm_asm feature has long been deprecated and now removed. The current version of packed_simd does not use it anyway so I filed rust-lang/packed_simd#341 to remove any reference to it.

rust-lang/packed_simd@27e2c89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants