Home Dashboard Directory Help
Search

After upgraded from VS2008, build project in VS2012 shows error: c1xx : fatal error C1083: Cannot open source file: '??????????????????????????????': No such file or directory by Tongxuan Liu


Status: 

Closed


2
0
Sign in
to vote
Type: Bug
ID: 774527
Opened: 12/17/2012 12:26:34 AM
Access Restriction: Public
0
Workaround(s)
view
1
User(s) can reproduce this bug

Description

Our team is migrating whole baseline from VS2008 to VS2012. There're over 400 C++ projects. There're 6 C++ project show wired error, such as :
1>------ Rebuild All started: Project: SSLT, Configuration: Release Win32 ------
1> stdafx.cpp
1> ???
1>c1xx : fatal error C1083: Cannot open source file: '???': No such file or directory
1> ??????????????????????????????
1>c1xx : fatal error C1083: Cannot open source file: '??????????????????????????????': No such file or directory
All files which are the parameters of cl.exe seems in wrong encoding, and cl.exe can't find them.
Firstly, i think it must be encode issues of .vcxproj, so i save as other encoding style. But still happens.
Then i re-upgrade these projects with such issue, but always build error.
I don't know what wrong with them in VS2012. These projects build no error in VS2008.
And as i know from VS2010, project format changed a lot, so i can't find any clue.
Details
Sign in to post a comment.
Posted by Microsoft on 4/29/2014 at 12:31 PM
Thank you for reporting this issue. This issue has been fixed in Visual Studio 2013. You can install a trial version of Visual Studio 2013 with the fix from: http://go.microsoft.com/?linkid=9832436
Posted by Microsoft on 12/21/2012 at 10:55 AM
Hi:
    Thanks for reporting the issue.
    A fix for this issue has been checked into the compiler sources. The fix should show up in the next release of Visual C++.

Xiang Fan

Visual C++ Team
Posted by DDSnyder on 12/19/2012 at 9:07 AM
Eliminating the extra line feeds in the AdditionalOptions node also solved my issue. Thanks to Tongxuan for discovering the solution.
Posted by Microsoft on 12/19/2012 at 2:11 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Tongxuan Liu on 12/19/2012 at 1:04 AM
I confirm this issue is caused by upgrade utility made by ms. Or their own vcxproj file parser can't parse such condition?
Posted by Tongxuan Liu on 12/19/2012 at 1:03 AM
Btw, there's another reason cause such issue. After upgrade, there's one property in *.vcxproj file made an unproper line break, such as:
     <AdditionalOptions>/Zm300
     /bigobj %(AdditionalOptions)</AdditionalOptions>
if i change it back to:
    <AdditionalOptions>/Zm300 /bigobj %(AdditionalOptions)</AdditionalOptions>
Then works well, build pass.

The projects which has such issue, 80% of them are because of such issue.
Posted by Tongxuan Liu on 12/18/2012 at 10:40 PM
Yes, we met same issue, today i found root cause of mess file name issue was because that wrong precompiling head file reference.
Posted by DDSnyder on 12/18/2012 at 12:27 PM
I experienced a similar problem when upgrading from VS 2010 to VS 2012. Instead of getting ???? characters, I am getting some double byte characters:

11>c1xx : fatal error C1083: Cannot open source file: 'ⴀ䐀开圀䤀一㌀㈀开䤀䔀㴀': No such file or directory

All of our files are English names, and the VCXPROJ contains all of the filenames as English. It does appear to be most or all of our C and C++ files.
Posted by Microsoft on 12/17/2012 at 11:25 PM
Hi Tongxuan, we want to remind you we need a demo project. Please send it to us as soon as possible. Thanks.
Posted by Microsoft on 12/17/2012 at 1:17 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting a demo project. Please submit this information to us within 4 business days. We look forward to hearing from you with this information.
Sign in to post a workaround.