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

[Regression] v1.100.0 fails to install via poetry with rust build error #16879

Closed
inducer opened this issue Jan 31, 2024 · 1 comment
Closed

Comments

@inducer
Copy link

inducer commented Jan 31, 2024

Description

Update via steps below, see build error in log.

Steps to reproduce

  • git fetch
  • git checkout v1.100.0
  • poetry install -E postgres -E url-preview -v
  • Observe error below

Homeserver

(self-hosted, tiker.net)

Synapse Version

1.100.0

Installation Method

Other (please mention below)

Database

postgres

Workers

Single process

Platform

Debian testing

Configuration

No.

Relevant log output

Compiling regex v1.10.3                                                                      
             Running `rustc --crate-name regex --edition=2021 /var/lib/matrix-synapse/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-1.10.3/src/lib.rs --error-format=json --json=diagnostic-rendered-ans
i,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="perf"' --cfg 'feature="perf-backtrack"' --cfg 'feature="
perf-cache"' --cfg 'feature="perf-dfa"' --cfg 'feature="perf-inline"' --cfg 'feature="perf-literal"' --cfg 'feature="perf-onepass"' --cfg 'feature="std"' --cfg 'feature="unicode"' --cfg 'feature="unicode-age"
' --cfg 'feature="unicode-bool"' --cfg 'feature="unicode-case"' --cfg 'feature="unicode-gencat"' --cfg 'feature="unicode-perl"' --cfg 'feature="unicode-script"' --cfg 'feature="unicode-segment"' -C metadata=5
faec55560279597 -C extra-filename=-5faec55560279597 --out-dir /var/lib/matrix-synapse/pack/synapse/target/release/deps -L dependency=/var/lib/matrix-synapse/pack/synapse/target/release/deps --extern aho_coras
ick=/var/lib/matrix-synapse/pack/synapse/target/release/deps/libaho_corasick-3c5f9e24fb6393b3.rmeta --extern memchr=/var/lib/matrix-synapse/pack/synapse/target/release/deps/libmemchr-7b552a2161c2dd84.rmeta --
extern regex_automata=/var/lib/matrix-synapse/pack/synapse/target/release/deps/libregex_automata-b0e45c92bfe0eced.rmeta --extern regex_syntax=/var/lib/matrix-synapse/pack/synapse/target/release/deps/libregex_
syntax-473b04fffb71230f.rmeta --cap-lints allow`                                                        
        error[E0519]: the current crate is indistinguishable from one of its dependencies: it has the same crate-name `once_cell` and was compiled with the same `-C metadata` arguments. This will result in sy
mbol conflicts between the two.                                                                                                                                                                                 
          --> /var/lib/matrix-synapse/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-build-config-0.20.2/src/lib.rs:22:5
           |                                                                                                                                                                                                    
        22 | use once_cell::sync::OnceCell;                                                             
           |     ^^^^^^^^^                                                                                                                                                                                      
                                                                                                        
           Compiling syn v2.0.48                                                                                                                                                                                
             Running `rustc --crate-name syn --edition=2021 /var/lib/matrix-synapse/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-2.0.48/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,ar
tifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'featu
re="extra-traits"' --cfg 'feature="full"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="quote"' -C metadata=960da81079025a69 -C extra-filename=-960da8107902
5a69 --out-dir /var/lib/matrix-synapse/pack/synapse/target/release/deps -L dependency=/var/lib/matrix-synapse/pack/synapse/target/release/deps --extern proc_macro2=/var/lib/matrix-synapse/pack/synapse/target/
release/deps/libproc_macro2-c885d1610088d5d0.rmeta --extern quote=/var/lib/matrix-synapse/pack/synapse/target/release/deps/libquote-f65546044231e129.rmeta --extern unicode_ident=/var/lib/matrix-synapse/pack/s
ynapse/target/release/deps/libunicode_ident-2a373d9e07b879c3.rmeta --cap-lints allow`                   
        For more information about this error, try `rustc --explain E0519`.                                                                                                                                     
        error: could not compile `pyo3-build-config` due to previous error

Anything else that would be useful to know?

Rust toolchain:

  • cargo 1.69.1
  • rustc 1.70.0

Both installed via apt from Debian.

@inducer inducer changed the title v1.100.0 fails to install via poetry with rust build error [Regression] v1.100.0 fails to install via poetry with rust build error Jan 31, 2024
@inducer
Copy link
Author

inducer commented Jan 31, 2024

Nvm, if the rust toolchain is installed via rustup, this does not occur, so this may be Debian-specific nonsense. Sorry for the noise.

@inducer inducer closed this as completed Jan 31, 2024
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

1 participant