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

can't build rust from the master branch #12757

Closed
Noxivs opened this issue Mar 7, 2014 · 4 comments
Closed

can't build rust from the master branch #12757

Noxivs opened this issue Mar 7, 2014 · 4 comments
Labels
O-windows Operating system: Windows

Comments

@Noxivs
Copy link

Noxivs commented Mar 7, 2014

Hi,
I am a beginner in rust programming, and i need to build rust from the master branch.
I'm on Windows 7 x64, and all dependencies are installed.

I opened msys and i did this :

./configure

then this :

make && make install

and I have a very long error, an extract looks like :

c:\mingw\bin\../libgcc/mingw32/4.5.2/../../../../include/winbase.h:945:2 erreur expected  specifier-qualifier-list before 'SYSTEMTIME'

and for more :
http://i.imgur.com/otAolaS.png

Regards.

@huonw huonw added the A-windows label Mar 7, 2014
@adrientetar
Copy link
Contributor

cc @klutzy

@klutzy
Copy link
Contributor

klutzy commented Mar 10, 2014

Seems that some mingw packages are missing or badly installed. Could you copy-paste output of grep "MINGW.*VERSION" /mingw/include/_mingw.h on msys?

@Noxivs
Copy link
Author

Noxivs commented Mar 11, 2014

Thank you for your reply, Here is the result :

#define __MINGW32_VERSION   3.20
#define __MINGW32_MAJOR_VERSION 3
#define __MINGW32_MINOR_VERSION 20
    __MINGW32_VERSION   Runtime version.
    __MINGW32_MAJOR_VERSION Runtime major version.
    __MINGW32_MINOR_VERSION Runtime minor version.

@alexcrichton
Copy link
Member

We've since started to recommend MSYS2 over MSYS (likely for reasons such as this!), so I'm going to close this for now. Please feel free to reopen, however, if the problem reproduces on MSYS2!

flip1995 pushed a commit to flip1995/rust that referenced this issue Jun 27, 2024
…xendoo

Avoid emitting `assigning_clones` when cloned data borrows from the place to clone into

Fixes rust-lang#12444
Fixes rust-lang#12460
Fixes rust-lang#12749
Fixes rust-lang#12757
Fixes rust-lang#12929

I think the documentation for the function should describe what- and how this is fixing the issues well.
It avoids emitting a warning when the data being cloned borrows from the place to clone into, which is information that we can get from `PossibleBorrowerMap`. Unfortunately, it is a tiny bit tedious to match on the MIR like that and I'm not sure if this is possibly relying a bit too much on the exact MIR lowering for assignments.

Things left to do:
- [x] Handle place projections (or verify that they work as expected)
- [x] Handle non-`Drop` types

changelog: [`assigning_clones`]: avoid warning when the suggestion would lead to a borrow-check error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-windows Operating system: Windows
Projects
None yet
Development

No branches or pull requests

5 participants