p-e-w / wd2sql

Transform a Wikidata JSON dump into an SQLite database
GNU General Public License v3.0
9 stars 2 forks source link

error when installing: please compile with a simd compatible CPU #7

Open euanc opened 1 year ago

euanc commented 1 year ago

Thanks for your work on this. Every time I try to install it I get an error related to simd compatible CPUs. I've tried two different CPU hosts (AMD and Intel) and tried linux and windows versions of rust and all have this error appear.

Are you able to help to troubleshoot?

.cargo\registry\src\github.com-1ecc6299db9ec823\simd-json-0.7.0\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 `()`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `simd-json` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `wd2sql v0.1.0`, intermediate artifacts can be found at

Thanks

p-e-w commented 1 year ago

Try to build one of the examples from the simd-json repository. If you encounter the same problem, you should file a bug against simd-json. If those examples compile, please post more information about your setup, such as detailed CPU and OS info, Rust version etc.

If all you want is to get wd2sql working, you can try adding the allow-non-simd Cargo feature as described in the simd-json README, which should allow the crate to compile, though performance will be significantly slower.

If you don't mind me asking, how did you find out about this project?

euanc commented 1 year ago

Thanks for the quick reply! I'll try those options.

I want to use the Lexeme data from Wikidata to restart an old hobby project of mine and was googling for options to get it into a sqlite DB and found your project that way (i.e. google result).