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

MinGW: Linking error while building rustc_data_structures - ld "cannot find -lsynchronization" #49080

Closed
petrochenkov opened this issue Mar 16, 2018 · 3 comments
Labels
O-windows-gnu Toolchain: GNU, Operating system: Windows T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@petrochenkov
Copy link
Contributor

ping @Zoxc probably

Haven't investigated this myself yet, just posting here in case there's a known fix.

@petrochenkov petrochenkov added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Mar 16, 2018
@Zoxc
Copy link
Contributor

Zoxc commented Mar 16, 2018

Do you have a log? How did you produce this?

@retep998
Copy link
Member

Are you getting this error while building Rust itself? If so, your MinGW installation is missing libsynchronization.a.

@retep998 retep998 added the O-windows-gnu Toolchain: GNU, Operating system: Windows label Mar 16, 2018
@petrochenkov
Copy link
Contributor Author

petrochenkov commented Mar 16, 2018

Ok, libsynchronization.a is indeed a part of mingw-w64 toolchain, but it's a relatively new part that first appeared in 6.3.0, but I use 6.2.0 due to gdb bugs in newer versions.

It looks like parking_lot depends on this library (through WaitOnAddress), and rustc_data_structures now depends on parking_lot thus bumping version requirement for mingw-w64 toolchain to 6.3.0.

I guess I'll have to do what our CI does and use newer toolchain with gdb replaced with older version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-windows-gnu Toolchain: GNU, Operating system: Windows T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

3 participants