If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

[RESOLVED] Issue with VS2017 15.5 linker

With VS 2017 15.5.0 & 15.5.1 there is an issue with the linker. When doing incremental builds the linker can 'crash' with the message that cl has stopped working and display a register dump etc. The work around is to do a complete rebuild. This can happen after some source code changes but we've been unable to determine exactly what.

All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

Re: Issue with VS2017 15.5 linker

Originally Posted by 2kaud

With VS 2017 15.5.0 & 15.5.1 there is an issue with the linker. When doing incremental builds the linker can 'crash' with the message that cl has stopped working and display a register dump etc. The work around is to do a complete rebuild. This can happen after some source code changes but we've been unable to determine exactly what.

Re: Issue with VS2017 15.5 linker

There is now the Visual Studio 2017 version 15.5.2 from December 14, 2017 available.

Yes. We've updating.

BTW, did you report the problem to Microsoft?

No - as we can't reproduce it. Often build will work fine after code changes and then on another build cl crashes and a full rebuild is needed.

All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

Re: Issue with VS2017 15.5 linker

This has already been reported but MS are having trouble identifying the issue as it can't be reproduced.

All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

Re: Issue with VS2017 15.5 linker

Originally Posted by Arjay

Ok, in post #3 you said you hadn't reported it.

Yes - but on looking at Visual Studio reported problems before reporting it as suggested I found an already existing fault report. However, as this said that they wanted others who had this issue to also report it, I have done. MS have now asked as to how to reproduce the issue - which we can't do. It seems that the work-around in post #7 does do away with the problem (which has also been reported back to MS).

All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

Re: Issue with VS2017 15.5 linker

Update.

We think we've narrowed it down to a link optimisation option. If the link option Link Time Code Generation is set to Use Fast Link Time Code Generation (/LTCG:incremental) we get the issue. If it is set to Use Link Time Code Generation (/LTCG) so far we haven't had the issue.

All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

Re: Issue with VS2017 15.5 linker

MS has now confirmed that this is an issue and has been fixed in the next update to VS2017 (following 15.5.3).

Update. It is fixed in 15.6 Preview 2.

Last edited by 2kaud; January 12th, 2018 at 01:03 PM.
Reason: Update

All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

Re: Issue with VS2017 15.5 linker

Re: Issue with VS2017 15.5 linker

Tests have so far failed to reproduce this issue with VS 2017 15.6.0. So I think we can say it's now fixed in 15.6.0!

All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

Advertiser Disclosure:
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.