Skip to content

compile fails with syntax syntec errors #662

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

Closed
drahnr opened this issue Feb 11, 2020 · 7 comments
Closed

compile fails with syntax syntec errors #662

drahnr opened this issue Feb 11, 2020 · 7 comments
Assignees

Comments

@drahnr
Copy link
Collaborator

drahnr commented Feb 11, 2020

Compiling workspace github.com/spearow/juice always fails (redis -u ... flushall, delete target dir, delete ~/.cache/sccache* did not change anything)

error[E0423]: expected function, tuple struct or tuple variant, found struct `ast::Name`
   --> /home/bernhard/.cargo/registry/src/github.com-1ecc6299db9ec823/syntex_syntax-0.58.1/src/symbol.rs:146:27
    |
146 |                       name: ast::Name($index),
    |                             ^^^^^^^^^
...
165 | / declare_keywords! {
166 | |     // Invalid identifier
167 | |     (0,  Invalid,        "")
168 | |
...   |
231 | |     (56, CrateRoot, "{{root}}")
232 | | }
    | |_- in this macro invocation

error: aborting due to previous error

For more information about this error, try `rustc --explain E0423`.

where the versions are:

$ rustc --version
rustc 1.41.0 (5e1a79984 2020-01-27)
$ cargo --version
cargo 1.41.0 (626f0f40e 2019-12-03)
$ sccache --version
sccache 0.2.13-alpha.0

with env

RUSTC_WRAPPER=$(which sccache)
SCCACHE_REDIS=redis://...6739
@froydnj
Copy link
Contributor

froydnj commented Feb 11, 2020

I cannot reproduce this error with a local disk cache; does it reproduce if you use a local disk cache instead of redis?

@drahnr
Copy link
Collaborator Author

drahnr commented Feb 11, 2020

Just tried, happens also:

killall sccache
rm -rf ~/.cargo/registry/{cache,src}
rm -rf ~/.cache/sccache*
rm -rf target/debug
unset SCCACHE_REDIS
# RUSTC_WRAPPER as before
cargo b

fails too.

Edit:

Just tried to verify that the all local build works, but that is not the case as it seems either.
it worked before setting up sccache which makes no sense at all.

@froydnj
Copy link
Contributor

froydnj commented Feb 11, 2020

Ah, I can reproduce this with a local disk cache if I update to Rust 1.41. @chmanchester, are you able to take a look at this?

@chmanchester chmanchester self-assigned this Feb 11, 2020
@chmanchester
Copy link
Contributor

Yes, I'll take a look at this later in the day.

@chmanchester
Copy link
Contributor

I'm having trouble getting that crate to build with rustc 1.41 at all. Running the rustc command generated by cargo for syntex_syntax fails in just the same way.

Closing for now, please let me know if I've missed something here that indicates this can be fixed in sccache.

@drahnr
Copy link
Collaborator Author

drahnr commented Feb 11, 2020

I think this might be it rust-lang/rust#68729
It's just coincidence that I deleted the cached binary from before the update (does that make sense?)

@drahnr
Copy link
Collaborator Author

drahnr commented Feb 11, 2020

Cause by a outdated peer dependency on bindgen 0.30 - sorry for the noise

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