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

Fixed Microsoft.ReactNative build in VS 16.6.0 #4962

Merged
2 commits merged into from
May 21, 2020
Merged

Fixed Microsoft.ReactNative build in VS 16.6.0 #4962

2 commits merged into from
May 21, 2020

Conversation

vmoroz
Copy link
Member

@vmoroz vmoroz commented May 21, 2020

The build in VS 16.6.0 is failing with linker errors that debug database is corrupted.
This PR has a temporary workaround where we replace the /ZI flag with /Zi that fixes the build.
We can rollback this change later when VS is fixed.
But for now this PR could unblock us to use the new VS version.

Microsoft Reviewers: Open in CodeFlow

@vmoroz vmoroz requested review from jonthysell, asklar and a team May 21, 2020 04:11
@vmoroz vmoroz requested a review from a team as a code owner May 21, 2020 04:11
@JunielKatarn
Copy link
Contributor

Note, we should probably stick to 16.5 for local development until the Azure hosts start using 16.6.
In general, I think we should try to be in sync with the CI environment which ultimately produces the release binaries.

@vmoroz
Copy link
Member Author

vmoroz commented May 21, 2020

It is probably a good idea, but I usually had no issue updating VS and was surprised with the sudden build break. I just did not want to rollback to the previous version. This is a simple change that only affects format of PDB files created at compile time. The final PDB file created by linker is the same as before.


In reply to: 631869556 [](ancestors = 631869556)

@vmoroz vmoroz added the AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) label May 21, 2020
@ghost
Copy link

ghost commented May 21, 2020

Hello @vmoroz!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 10 hours, a condition that will be fulfilled in about 9 hours. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@asklar
Copy link
Member

asklar commented May 21, 2020

It is probably a good idea, but I usually had no issue updating VS and was surprised with the sudden build break. I just did not want to rollback to the previous version. This is a simple change that only affects format of PDB files created at compile time. The final PDB file created by linker is the same as before.

In reply to: 631869556 [](ancestors = 631869556)

normally I'd agree but our customers will be on whatever version of VS they happen to be so I think it's good to be at the vanguard so we hit the issues before they do and we can fix them proactively.

This is a linker bug, I worked with the MSVC linker dev tonight and he has a fix. We're going to try to get this serviced down to the 16.6 release. In the meantime I have a copy of the fixed binaries on a network share in corpnet, ping me on Teams if you need access.

@ghost ghost merged commit 70baa5f into microsoft:master May 21, 2020
ZihanChen-MSFT pushed a commit to ZihanChen-MSFT/react-native-windows that referenced this pull request May 22, 2020
* Fixed Microsoft.ReactNative build in VS 16.6.0

* Change files
NickGerleman pushed a commit to NickGerleman/react-native-windows that referenced this pull request Jun 1, 2020
* Fixed Microsoft.ReactNative build in VS 16.6.0

* Change files
NickGerleman pushed a commit that referenced this pull request Jun 2, 2020
* Fixed Microsoft.ReactNative build in VS 16.6.0

* Change files
@NickGerleman
Copy link
Collaborator

Just backported to 0.62. Will soon bulk change "Backport to 0.62" to "Backported to 0.62 to label this as being backported".

NickGerleman pushed a commit to NickGerleman/react-native-windows that referenced this pull request Jun 2, 2020
* Fixed Microsoft.ReactNative build in VS 16.6.0

* Change files
@NickGerleman
Copy link
Collaborator

Removing "Backport to 0.61" since we're about to rename it to "Backported to 0.61" as part of backporting label migration. Leaving "Backport Approved" to track outstanding work. Already backported to 0.62, so keeping that label.

@NickGerleman
Copy link
Collaborator

Actually, this is one that I looked at where we didn't think we needed it for 0.61 bc we are using an older compiler toolchain in that branch. We backported to 0.62, so don't think there is active work for this item.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants