You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By not added path to bin directory of MinGW some of C++ application, that was created by this compiler, will not run at same build environment.
For example application where access to the data member of non constant string is present, see repros steps for full source sample.
It detected after updated to the 11.2 version, see #5729 and #5530. Previous environment (8.1.0) work fine - because in PATH environment variable exists paths to the directories with dll's, that have equal functional to the dll's exists at bin directory of MinGW:
Files from Strawberry sub directories is equal to each other. See #5459 why this directories in the PATH environment variable.
P.S.
This issue is continue the discussion that was started in the #5729 pull request, but also present the simple sample code. Addition suggestion can be found also in that pull request.
Probably, no. Not at least when upgrade to the 11.2 was made. It just uncover previous shadow behavior that exists also for MinGW 8.1.0. So at choco side it should be check too.
Expected behavior
Executable that build by MinGW compiler should able to start at same build environment - by finding dll files with required functional.
Actual behavior
Executable unable to start according to not found dll files with required functional.
For example application exit code can be '-1073741511'.
Attempt to build it with MinGW compile and run application that was build by it at current version of Windows Server 2022 environment. For example next yml code from .github/workflows/cmake.yml file can be used for it:
I left in this build file comparing with Windows Server 2019 environment and two patches from user side for Windows Server 2022 environment.
Please not that second patch work only for Release configuration and will failed with Debug, so is weird - because first patch will copy required dll files from same place for both configuration.
Sample run of this code, that also located in this commit, can be found in this action run.
The text was updated successfully, but these errors were encountered:
@al-cheb thank you.
Work in same way like a per step setting of $env:Path at PowerShell script (patch 2 in first message of this issue) but required to set only once for multiple steps.
Description
Hello.
By not added path to bin directory of MinGW some of C++ application, that was created by this compiler, will not run at same build environment.
For example application where access to the data member of non constant string is present, see repros steps for full source sample.
It detected after updated to the 11.2 version, see #5729 and #5530. Previous environment (8.1.0) work fine - because in PATH environment variable exists paths to the directories with dll's, that have equal functional to the dll's exists at bin directory of MinGW:
Files from Strawberry sub directories is equal to each other. See #5459 why this directories in the PATH environment variable.
P.S.
This issue is continue the discussion that was started in the #5729 pull request, but also present the simple sample code. Addition suggestion can be found also in that pull request.
Platforms affected
Virtual environments affected
Image version and build link
Virtual Environment
Environment: windows-2022
Version: 20220814.1
Included Software: https://github.com/actions/runner-images/blob/win22/20220814.1/images/win/Windows2022-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20220814.1
Is it regression?
Probably, no. Not at least when upgrade to the 11.2 was made. It just uncover previous shadow behavior that exists also for MinGW 8.1.0. So at choco side it should be check too.
Expected behavior
Executable that build by MinGW compiler should able to start at same build environment - by finding dll files with required functional.
Actual behavior
Executable unable to start according to not found dll files with required functional.
For example application exit code can be '-1073741511'.
Repro steps
I left in this build file comparing with Windows Server 2019 environment and two patches from user side for Windows Server 2022 environment.
Please not that second patch work only for Release configuration and will failed with Debug, so is weird - because first patch will copy required dll files from same place for both configuration.
Sample run of this code, that also located in this commit, can be found in this action run.The text was updated successfully, but these errors were encountered: