-
Notifications
You must be signed in to change notification settings - Fork 289
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
MSBuild C++ ... LNK1318: Unexpected PDB error; RPC (23) '(0x000006E7)' #829
Comments
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
I have the same issue. |
/lifecycle frozen |
I am experiencing this issue with docker |
/remove-lifecycle stale |
This bug only appears when using a hyper-v container and building from a bind mount. Workaround A: Workaround B:
Workaround C: |
I am experiencing the same issue. |
I experience this with VS2017 15.6.7 without using Docker. Each time it seems to be the result of changing one or both of branch and configuration I'm building from (e.g Trunk / Debug -> Live / RelWithDebInfo) |
Actually, this appears to be a problem with the behavior of link.exe when mspdbsrv.exe isn't running before hand and parallel links happen.
|
I am experiencing the same issue. Any updates? |
I am experiencing the same issue. |
1 similar comment
I am experiencing the same issue. |
I have the same issue. |
Same issue, experiencing only when working in volume directory. |
Experiencing the same. If I copy the project from the volume to another folder inside the container, I can successfully compile it. |
That's just what I experienced.
…On Thu, 10 Jan 2019, 17:25 Jacob Eckert ***@***.*** wrote:
Experiencing the same. If I copy the project from the volume to another
folder inside the container, I can successfully compile it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#829 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEYrS6XEpzs_Cs2CLucxVd8SV1NLAkNCks5vB2mRgaJpZM4N9onT>
.
|
I have this issue too, also solved by moving the code into the container, not ideal due to it taking so long to copy over. |
It is definitely the result of trying to link using a bind mount. Just confirmed it. |
Issue reproduces only if build directory is in mounted volume. Solution is, place your source code and cmake_install_prefix in mounted volume. Build directory must be located inside container. |
Same issue here, the whole point is to build in the volume. Why would that make a difference? |
Who wants to copy all their code into the container? This is why the ability to mount volumes exists, and it's a serious bug. |
We're migrating our entire CI system at the moment to docker, and this issue is quite a major headache for our cmake and C++ project builds when we need to run certain builds with debug output. We managed a release build of our C++ projects by ensuring that the project properties in Visual Studio under Configuration Properties > Linker > Debugging had 'Generate Debug Info' set to No. Similar to the workaround mentioned previously. |
If it is helpful, here is a means for implementing that workaround without changing the project files: https://gist.github.com/cowlinator/1b6ea106502b1027fe65bd2b11770d9a |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
/remove-lifecycle stale
…On Mon, Jun 10, 2019 at 9:00 PM docker-desktop-robot < ***@***.***> wrote:
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.
Prevent issues from auto-closing with an /lifecycle frozen comment.
If this issue is safe to close now please do so.
Send feedback to Docker Community Slack channels #docker-for-mac or
#docker-for-windows.
/lifecycle stale
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#829?email_source=notifications&email_token=ACNQIR5QMMVY7C2YOWDSTX3PZ32LJA5CNFSM4DPWRHJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXLUCGI#issuecomment-500646169>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACNQIRZW22OWE7ZBYGJIEM3PZ32LJANCNFSM4DPWRHJQ>
.
--
If I had asked people what they wanted, they would have said 'faster
horses'.Henry Ford
Never tell people how to do things. Tell them what to do and they will
surprise you with their ingenuity.
*George Patton *
Lifes battles don't always go to the stronger or the faster man. But
sooner or later the man who wins, is the man who thinks he can.
*Bruce Lee*
|
This seems like there is something fundamentally wrong with the underlying file abstraction? Will this ever at least be investigated to figure out what the cause and other possible knock on effects are? |
I posted reproduction steps for a Hopefully basic reproduction steps along with a Dockerfile that installs the Visual Studio Build Tools will help someone get to the bottom of this. If there's anything I can do to help reproduce this, let me know. |
Haven't seen |
Indeed, this is still a serious issue. I never saw it until I moved to 1903. |
I have te same problem with Docker 2.0.0.3, Engine 18.09.2 on Windows 10 version 1903. |
I had the same issue with Docker on Windows 10. Using |
YongKang Zhu [MSFT] |
I am also quite interested to know whether 16.4 solves the problem but I also hope that they can fix the root cause of the problem in Windows (or in Docker) itself so that we can use earlier versions of Visual Studio as well. At least in my case, I had no problems with that before Windows 10 1903. |
YongKang Zhu mentions a specific API that causes the issue - could be worth asking them what API it is so the root cause can be fixed. |
My similar issue is not solved with 16.4, but the error changed. I posted an update in the quoted link. |
I believe the "PDB-related" error is fixed (potentially as early as 16.4.0). I believe there is a new issue as suggested by @ssrobins I also believe that this specific issue could be deemed "not a docker issue", but an issue with some programs that use certain file API's which do not work:
Perhaps if these API's could someday be made to work in this scenario, then this entire category of issue might be fixable by windows/docker teams. However, it might be similar to Mapped Network Drives, for which there's a huge number of applications that simply will never work the same as native directories on native volumes (presumably for similar reasons). |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Run MSBuild to compile a VC++ project file in windowsservercore
Actual behavior
LNK1318: Unexpected PDB error; RPC (23) '(0x000006E7)'
Information
I am trying to build some C++ programs in windows containers, therefore I'm using the latest windowsservercore image as a base and then I install the VC++ 2015 Build tools from here.
The Dockerfile looks something like this:
When I then try and run MSBuild on a VC++ .sln file...
(I reproduced this with just an empty Win32 Console App template)
msbuild VCppTestApp.sln /t:Rebuild /property:Configuration=Release
then I get the following error:
The text was updated successfully, but these errors were encountered: