- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Getting this error with 11.1.051 and earlier versions when doing a Rebuild Project.
a/ There is no file called pch_diag.txt anywhere on the system;
b/ I can sometimes fix this by changing the #include order of one of the STL includes, such as or ,
c/ I cannot post a test case because which file it fails on varies and the code is proprietary,
Our project uses a precompiled header, which is built with the first .cpp file in the project. The next few files compile fine, and then it compiles some files which don't use the PCH file before going back to files that do, which is where the error occurs, e.g:
1> FirstFile.cpp <-- builds the pch
1> AnotherFile.cpp <-- uses pch
1> AnotherFile2.cpp <-- uses pch
1> oldfile.c <-- does not use pch
1> olderfile.c <-- does not use pch
1> MergedProjectFile.cpp <-- does not use pch
1> MergedProjectFile2.cpp <-- does not use pch
...
1> MergedProjectFileN.cpp <-- still not using pch
1> MainProjFile1.cpp <-- uses PCH
1> MainProjFile2.cpp <-- uses PCH
1> MainProjFile3.cpp <-- uses PCH
1> MainProjFile4.cpp <-- uses PCH
It's the first files after the non-PCH files that seem to have the problem. It's usually the second or third one, but occasionally it's the first one. Which one fails is random, you can run rebuild multiple times and there is no consistency to it.
I have stripped our PCH down to just the STL includes. Error still occurs regardless, when I use OpenMP.
Also, we are using /FI to include the header from which the PCH is generated.
If I run Rebuild Project Only twice, without making any changes, sometimes it fails on the first file after the non-PCHed files, sometimes it fails on the second or third file. It is not consistent.
Running VS 2008 on a Windows 7 64-bit box with 8Gb of RAM, compiling x86 targetted code.
- Oliver
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We do have fixed one bug related to such pch error, but not sure if it would cover your case.
Please try the latest compiler 11.1.060 and let us know how it goes.
Thanks,Jennifer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1>------ Rebuild All started: Project: WW2, Configuration: BetaReleaseSSE2SmrtHeap Win32 ------1>Deleting intermediate files and output files for project 'WW2', configuration 'BetaReleaseSSE2SmrtHeap|Win32'.1>Compiling resources... (Microsoft VC++ Environment)1>Microsoft Windows Resource Compiler Version 6.1.6723.11>1>Copyright (C) Microsoft Corporation. All rights reserved.1>1>1>Compiling with Intel C++ Compiler 11.1.071 [IA-32]... (Intel C++ Environment)1>TextureRectangle.cpp1>Compiling with Intel C++ Compiler 11.1.071 [IA-32]... (Intel C++ Environment)1>trncd.cpp1>dimain.cpp1>Catastrophic error: unable to obtain mapped memory (see pch_diag.txt)1>1>compilation aborted for ..\..\src\di\dimain.cpp (code 4)1>Compiling with Intel C++ Compiler 11.1.071 [IA-32]... (Intel C++ Environment)1>sysMovieWin.cpp1>NPClient.cpp1>clientGlobals.cpp1>rijndael-alg-fst.c1>rijndael-api-fst.c1>Compiling with Intel C++ Compiler 11.1.071 [IA-32]... (Intel C++ Environment)1>dx3dinfo.cpp1>Build log was saved at "file://G:\PN\ww2\ww2\branches\Unity15\WW2\proj\win\BetaReleaseSSE2SmrtHeap\BuildLog.htm"1>WW2 - 0 error(s), 0 warning(s)========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
1>------ Rebuild All started: Project: WW2, Configuration: BetaReleaseSSE2SmrtHeap Win32 ------1>Deleting intermediate files and output files for project 'WW2', configuration 'BetaReleaseSSE2SmrtHeap|Win32'.1>Compiling resources... (Microsoft VC++ Environment)1>Microsoft Windows Resource Compiler Version 6.1.6723.11>1>Copyright (C) Microsoft Corporation. All rights reserved.1>1>1>Compiling with Intel C++ Compiler 11.1.071 [IA-32]... (Intel C++ Environment)1>TextureRectangle.cpp1>Compiling with Intel C++ Compiler 11.1.071 [IA-32]... (Intel C++ Environment)1>TutorialManager.cpp1>glsl.cpp1>Catastrophic error: unable to obtain mapped memory (see pch_diag.txt)1>1>compilation aborted for ..\..\SRC\shader\glsl.cpp (code 4)1>Compiling with Intel C++ Compiler 11.1.071 [IA-32]... (Intel C++ Environment)1>clientGlobals.cpp1>NPClient.cpp1>sysMovieWin.cpp1>md5c.c1>rijndael-api-fst.c1>rijndael-alg-fst.c1>Compiling with Intel C++ Compiler 11.1.071 [IA-32]... (Intel C++ Environment)1>dx3dinfo.cpp1>Build log was saved at "file://G:\PN\ww2\ww2\branches\Unity15\WW2\proj\win\BetaReleaseSSE2SmrtHeap\BuildLog.htm"1>WW2 - 0 error(s), 0 warning(s)========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
1>------ Rebuild All started: Project: WW2, Configuration: BetaReleaseSSE2SmrtHeap Win32 ------1>Compiling with Intel C++ Compiler 11.1.071 [IA-32]... (Intel C++ Environment)1>glsl.cpp1>Build log was saved at "file://G:\PN\ww2\ww2\branches\Unity15\WW2\proj\win\BetaReleaseSSE2SmrtHeap\BuildLog.htm"1>WW2 - 0 error(s), 0 warning(s)========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
1>------ Build started: Project: WW2, Configuration: BetaReleaseSSE2SmrtHeap Win32 ------1>Compiling with Intel C++ Compiler 11.1.071 [IA-32]... (Intel C++ Environment)1>uiSound.cpp1>mlutility.cpp1>Catastrophic error: unable to obtain mapped memory (see pch_diag.txt)1>1>compilation aborted for ..\..\src\ml\mlutility.cpp (code 4)1>Build log was saved at "file://G:\PN\ww2\ww2\branches\Unity15\WW2\proj\win\BetaReleaseSSE2SmrtHeap\BuildLog.htm"1>WW2 - 0 error(s), 0 warning(s)========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========1>------ Build started: Project: WW2, Configuration: BetaReleaseSSE2SmrtHeap Win32 ------1>Compiling with Intel C++ Compiler 11.1.071 [IA-32]... (Intel C++ Environment)1>mlutility.cpp1>obsph.cpp1>Catastrophic error: unable to obtain mapped memory (see pch_diag.txt)1>1>compilation aborted for ..\..\src\ob\obsph.cpp (code 4)1>Build log was saved at "file://G:\PN\ww2\ww2\branches\Unity15\WW2\proj\win\BetaReleaseSSE2SmrtHeap\BuildLog.htm"1>WW2 - 0 error(s), 0 warning(s)========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========1>------ Build started: Project: WW2, Configuration: BetaReleaseSSE2SmrtHeap Win32 ------1>Compiling with Intel C++ Compiler 11.1.071 [IA-32]... (Intel C++ Environment)1>obsph.cpp1>chatSquadControl.cpp1>Catastrophic error: unable to obtain mapped memory (see pch_diag.txt)1>1>compilation aborted for ..\..\src\chat\chatSquadControl.cpp (code 4)1>Build log was saved at "file://G:\PN\ww2\ww2\branches\Unity15\WW2\proj\win\BetaReleaseSSE2SmrtHeap\BuildLog.htm"1>WW2 - 0 error(s), 0 warning(s)========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
G:\PN\ww2\ww2\branches\Unity15\WW2\proj\win\BetaReleaseSSE2SmrtHeap>dirVolume in drive G is CommonVolume Serial Number is EE23-E6C0Directory of G:\PN\ww2\ww2\branches\Unity15\WW2\proj\win\BetaReleaseSSE2SmrtHeap03/26/2010 12:38 AM. 03/26/2010 12:38 AM.. 03/26/2010 12:38 AM 41,320 BuildLog.htm03/26/2010 12:38 AM 31,794 clientGlobals.cod03/26/2010 12:38 AM 14,665 clientGlobals.obj03/26/2010 12:38 AM 788,059 dx3dinfo.cod03/26/2010 12:38 AM 53,376 dx3dinfo.obj03/26/2010 12:38 AM 156,106 md5c.cod03/26/2010 12:38 AM 5,479 md5c.obj03/26/2010 12:38 AM 428,462 NPClient.cod03/26/2010 12:38 AM 37,870 NPClient.obj03/26/2010 12:38 AM 420,975 rijndael-alg-fst.cod03/26/2010 12:38 AM 25,992 rijndael-alg-fst.obj03/26/2010 12:38 AM 127,241 rijndael-api-fst.cod03/26/2010 12:38 AM 3,481 rijndael-api-fst.obj03/26/2010 12:38 AM 397,541 sysMovieWin.cod03/26/2010 12:38 AM 52,960 sysMovieWin.obj03/26/2010 12:38 AM 1,449,106 TextureRectangle.cod03/26/2010 12:38 AM 76,745 TextureRectangle.obj03/26/2010 12:38 AM 4,428,863 TutorialManager.cod03/26/2010 12:38 AM 301,970 TutorialManager.obj03/26/2010 12:38 AM 80,019,456 WW2.pchi03/26/2010 12:38 AM 6,612 WW2.res03/26/2010 12:38 AM 2,333,638 WW2_90.dg22 File(s) 91,201,711 bytes2 Dir(s) 371,165,634,560 bytes free
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Still no joy (and adds about 30 minutes to total build time =/)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The icl in Parallel Composer update 5 is 11.1.078, Build 20100203
Jennifer
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page