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

Compiler error on Windows #2124

Closed
Tri125 opened this issue May 23, 2015 · 14 comments
Closed

Compiler error on Windows #2124

Tri125 opened this issue May 23, 2015 · 14 comments

Comments

@Tri125
Copy link
Contributor

Tri125 commented May 23, 2015

Commit to blame: b9efa02
File to blame: MemorySettingsRepository.h (at least)
Line to blame: 78

 std::unordered_map<AString, std::unordered_multimap<AString, sValue>> m_Map{};

Errors:

1.  error C1001: An internal error has occurred in the compiler. 
File: \mcserver\src\MemorySettingsRepository.h  
line : 78   Project:    MCServer
2. error D8040: error creating or communicating with child process  
File :\MCServer\src\cl  
Project: MCServer

I had to run a small bisect to find the guilty commit.
I don't know why this wasn't even caught. This is kind of annoying since you only have to test your work once and to see that it doesn't compile.

@bearbin
Copy link
Member

bearbin commented May 23, 2015

What version of MSVC are you using?

@Tri125
Copy link
Contributor Author

Tri125 commented May 23, 2015

Visual C++ 2013 with Visual Studio 2013.

@bearbin
Copy link
Member

bearbin commented May 23, 2015

Since it's a compiler crash not a warning/error, could you make sure that you've updated to the latest version, even minor version?

@worktycho
Copy link
Member

Because its a compilier error, what CTP and update are you using?

@Tri125
Copy link
Contributor Author

Tri125 commented May 23, 2015

Visual C++ 2013 is the latest version, still looking if they released any recent minor versions.
Can you elaborate on what CTP mean?

@ghost
Copy link

ghost commented May 23, 2015

I compiled on my side with visual studio 2013, too. No errors.

@worktycho
Copy link
Member

CTP's are minor updates that add additional features.

@Tri125
Copy link
Contributor Author

Tri125 commented May 23, 2015

Alright, I'm making progress.

Microsoft C/C++ Optimizing Compiler is actually crashing on that line.

@Tri125
Copy link
Contributor Author

Tri125 commented May 23, 2015

@Seadragon91 what is your cl.exe version? Just run cl.exe found under

 Microsoft Visual Studio 12.0\VC\bin

I got:

 Microsoft C/C++ Optimizing Compiler Version 18.00.30324 for x86

@ghost
Copy link

ghost commented May 23, 2015

I have C/C++ Optimizing Compiler Version 18.00.31101 for x86.

@tigerw
Copy link
Member

tigerw commented May 23, 2015

I have found that internal errors may be fixed by trying the build again, or alternatively clicking on Project -> Clean all, and then Rebuild all.

Try that?

@tigerw
Copy link
Member

tigerw commented May 23, 2015

Seadragon's version appears to be higher; try the notifications panel at the top right of the IDE (little flag icon) to see if there are any updates.

@Tri125
Copy link
Contributor Author

Tri125 commented May 23, 2015

@tigerw yep, I tried cleaning and rebuilding all.

I'm currently removing VC 2013 and installing Visual Studio Community 2013 which come with update 4 (I think I only had update 3).

It's taking quite some time, but I'll report back.

@Tri125
Copy link
Contributor Author

Tri125 commented May 23, 2015

That was it, thanks for the help.
Sorry @worktycho for pointing the finger in your directly while it was my machine to blame ;)

@Tri125 Tri125 closed this as completed May 23, 2015
@Tri125 Tri125 changed the title Can't compile on Windows Compiler error on Windows May 23, 2015
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

4 participants