Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upCould not compile `diesel`. #578
Comments
This comment has been minimized.
|
Why are you running cargo install? Which version of rust are you using? Did you follow the guide?
… Am 14.01.2017 um 16:19 schrieb Zakordonets Sergey ***@***.***>:
D:\idea projects\rust_diesel\diesel\examples\getting_started_step_3>cargo install
Compiling quote v0.3.10
Compiling winapi-build v0.1.1
Compiling libc v0.2.19
Compiling unicode-xid v0.0.3
Compiling memchr v0.1.11
Compiling pq-sys v0.2.7
Compiling winapi v0.2.8
Compiling kernel32-sys v0.2.2
Compiling aho-corasick v0.5.3
Compiling syn v0.10.6
Compiling utf8-ranges v0.1.3
Compiling byteorder v0.3.13
Compiling regex-syntax v0.3.9
Compiling diesel v0.9.1
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:49:41: 49:47 error: expected expression, found 1
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:49 if row.next_is_null($Tuple) {
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:49:41: 49:47 error: expected {, found 1
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:49 if row.next_is_null($Tuple) {
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:49:41: 49:47 help: place this code inside a block
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:66:38: 66:42 error: unexpected token: 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:66 ($($T::build(row.$idx),)+)
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:66:38: 66:42 error: expected one of ,, ., ::, ?, or an operator, found 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:66 ($($T::build(row.$idx),)+)
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:66:38: 66:42 error: expected one of ), ,, ., ::, ?, or an operator, found 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:66 ($($T::build(row.$idx),)+)
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:78:28: 78:32 error: expected expression, found 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:78 if $idx != 0 {
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:94:28: 94:32 error: unexpected token: 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:94 $(self.$idx.is_safe_to_cache_prepared() &&)+ true
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:94:28: 94:32 error: expected one of ., ::, ;, ?, }, or an operator, found 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:94 $(self.$idx.is_safe_to_cache_prepared() &&)+ true
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:118:28: 118:32 error: expected expression, found 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:118 if $idx != 0 {
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:129:28: 129:32 error: expected expression, found 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:129 if $idx != 0 {
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:145:37: 145:41 error: unexpected token: 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:145 match &self.$idx {
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:145:37: 145:41 error: expected one of ., ::, ?, {, or an operator, found 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:145 match &self.$idx {
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:167:37: 167:41 error: unexpected token: 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:167 match &self.$idx {
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:167:37: 167:41 error: expected one of ., ::, ?, {, or an operator, found 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:167 match &self.$idx {
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:186:37: 186:41 error: unexpected token: 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:186 match &self.$idx {
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:186:37: 186:41 error: expected one of ., ::, ?, {, or an operator, found 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:186 match &self.$idx {
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:206:37: 206:41 error: unexpected token: 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:206 match &self.$idx {
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:206:37: 206:41 error: expected one of ., ::, ?, {, or an operator, found 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:206 match &self.$idx {
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:242:29: 242:33 error: unexpected token: 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:242 ($(self.$idx.as_changeset(),)+)
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:242:29: 242:33 error: expected one of ), ,, ., ::, ?, or an operator, found 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:242 ($(self.$idx.as_changeset(),)+)
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:251:28: 251:32 error: unexpected token: 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:251 $(self.$idx.is_noop() &&)+ true
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:251:28: 251:32 error: expected one of ., ::, ;, ?, }, or an operator, found 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:251 $(self.$idx.is_noop() &&)+ true
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:258:49: 258:53 error: unexpected token: 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:258 let noop_element = self.$idx.is_noop();
^~
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:258:49: 258:53 error: expected one of ., ::, ;, ?, or an operator, found 0
C:\Users_.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:258 let noop_element = self.$idx.is_noop();
^~
Build failed, waiting for other jobs to finish...
error: failed to compile diesel_demo_step_3 v0.1.0 (file:///D:/idea%20projects/rust_diesel/diesel/examples/getting_started_step_3), intermediate artifacts can be found at D:\idea projects\rust_diesel\diesel\examples\getting_started_step_3\target
Caused by:
Could not compile diesel.
To learn more, run the command again with --verbose.
D:\idea projects\rust_diesel\diesel\examples\getting_started_step_3>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This comment has been minimized.
Ga1der
commented
Jan 14, 2017
|
rust version is 1.11.0 this is a example from https://github.com/diesel-rs/diesel/tree/master/examples/getting_started_step_3 |
This comment has been minimized.
|
Yes that's the guide I mean. (I think you want to use I don't think diesel 0.9 works with rust 1.11. Can you update to 1.14? |
This comment has been minimized.
Ga1der
commented
Jan 14, 2017
|
thx it helped
but now i have another problem
|
This comment has been minimized.
|
Cool! As the guide mentions, the first three steps are assuming you are using a semi-recent nightly compiler. Step 4 adds support for building on stable. FYI: Diesel will work on stable with the release of Rust 1.15 on February 3! |
This comment has been minimized.
Ga1der
commented
Jan 14, 2017
|
what version of rust and diesel should i use to play around with diesel today ? |
This comment has been minimized.
|
It depends on how much you like to have adventures! ;)
Personally, I'd use the latest nightly with Diesel from git -- there were a
bunch of nice bug fixes and you will be able to quickly upgrade to Diesel
0.10 when it gets released. It is nightly though, so it is not tested that
well and might contain bugs we don't know about.
Using stable with the build steps described at the end of the guide is not
as exciting but also a totally valid option.
Actually, there might even be a beta release that contains the new macros
that will become stable in 1.15.
Heh, now I've listed all release channels. Sorry for rambling…
Zakordonets Sergey <notifications@github.com> schrieb am Sa. 14. Jan. 2017
um 17:17:
… what version of rust and diesel should i use to play around with diesel
today ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#578 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABOX1AyXqHLQCx5_2Rmqi1qQuvdtzckks5rSPUCgaJpZM4LjpwB>
.
|
This comment has been minimized.
Ga1der
commented
Jan 14, 2017
|
my goal is to test how much of performance cat i squeeze out of rust+Diesel vs php+PDO |
This comment has been minimized.
Ga1der
commented
Jan 14, 2017
|
btw nightly
|
This comment has been minimized.
|
Did you use the diesel version from git master? Also, did you set nightly to be the default toolchain to be used? Otherwise you might need to call it like
With a CPU-heavy, Rust will probably run laps around PHP, with database-heavy application it might be not that much of a difference. |
This comment has been minimized.
Ga1der
commented
Jan 16, 2017
|
well, so far no luck thanks for your help anyway ) |
This comment has been minimized.
|
Looks like there's nothing actionable left here. If you're still having trouble, I recommend trying Diesel 0.10 with Rust 1.15 stable. |
Ga1der commentedJan 14, 2017
•
edited