Cannot open source file "llvm/IR/Attributes.inc" message when building LLVM? - build

I get this message when I try to build LLVM using Visual Studio 2019. Has someone encountered similar problem?
Also, I'm getting this error that "Project file does not exist." and something about CustomBuild.
I get the same error with others .inc files

Related

VS2022 "lld-link : error : could not open 'oldnames.lib': no such file or directory"

Just installed Windows 10 and VS2022, created an empty project, set compiler to Clang, compiled and I get these errors:
1>lld-link : error : could not open 'msvcrtd.lib': no such file or directory
1>lld-link : error : could not open 'oldnames.lib': no such file or directory
I'm sure I could add a path to the linker settings but I don't understand why this error occurs "out of the box"? Is there a bug with the VS2022 installation/surely this should not happen?
For could not open 'msvcrtd.lib', installing the Windos 10 SDK in Visual Studio Installer usually solves the problem. But just in case I also recommend you to read this issue.
About could not open 'oldnames.lib', you could refer to this issue in MSDN.

C++Builder 10.4/11: Help wanted to resolve fatal error "Invalid object file 'altsvc.o'" when compiling 64-bit Windows application

I am attempting to port a 32-bit program to 64-bit, using the CLANG compiler within C++Builder 10.4/11. However, when C++Builder attempts to link the EXE it generates the following error message:
C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\CodeGear.Cpp.Targets(3988,5): error : Fatal: Invalid object file 'altsvc.o'
I cannot find a file called "altsvc.cpp" anywhere in my source files or in the C++Builder library file folders. It is not listed in the executable's project (.cbproj) file either.
Has anyone encountered this error before and know what causes it?

What to do about error "E1696 command-line error: cannot open metadata file "mscorlib.dll" in Visual Studio 2017?

All of a sudden, when trying to run a unit test in Visual Studio 2017, I get errors E1696 command-line error: cannot open metadata file "mscorlib.dll" and also "E2998 PCH warning: an unknown error occurred. An IntelliSense PCH file was not generated."
After some experimentation, this seems to be VS2017's way of telling you that you have tried to run a unit test/MS Test on a CPP module that has a Syntax Error in it. The syntax error is in the module under test, not the test. Typical scenario would be the .CPP module is changed to fix something, a syntax error is accidentally introduced, then any unit testing will generate E1696/E2988 mscorlib/Intellisense errors. The offending syntax error may not be obvious in the Error List if there are many warnings. Scrolling down the Error List window may reveal the syntax error, which when fixed, will eliminate the E1696 and E2988 mscorlib.dll + Intellisense errors.
This answer got me through a similar one. My symptoms were cannot find mscorlib.tlh in ./debug.
The problem was missing .prob files in the vcxproj file. Deleted those references and the error went away.
Posting this because the answer here actually got me to the problem despite what the compiler was telling me and hours of web searching (hours and hours trying to figure out what was wrong with mscorlib).

Unrecognized option '/ruleset' in VS2015 during building

I have strange error during building my solution. Yesterday everything was fine, but today I get this error
Picture of error from error list:
Copy/paste error from output:
fatal error CS2007: Unrecognized option: '/ruleset:"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\Rule Sets\MinimumRecommendedRules.ruleset"'
Solution contains many projects, but during building all solution, only one project show this error.
Does anyone can help me?
P.S. Changing file with ruleset did not help, I had the same error (but with other file in error message). But actually, I do not want change that ruleset file.
As seen in the following link, try opening it in VS2013, turn off the ruleset, then open in 2015, and turn it back on.
src: https://social.msdn.microsoft.com/Forums/vstudio/en-US/974f66c6-debf-4a51-8463-00624e4dafa4/vs-2015-building-2013-project-could-not-find-rule-set-file-minimumrecommendedrulesruleset?forum=msbuild

fatal error LNK1104: cannot open file "Debug/

I'm trying to run C++ code in microsoft visual version 6.0. The code is well compiling but I'm getting the error "fatal error LNK1104: cannot open file "Debug/Assignment.exe" when I try to build. The file is saved in the project named Assignment. I'm new to C++ and the microsoft visual stuff. I don't know where to start from to get around error. Please help.
Sounds like a copy of the exe (Debug/Assignment.exe) is already running so visual studio can't overwrite the file. Have a look in the task manager / process explorer and kill any copies that are running then try again.
Curiously, in my case it was a CMake 'debug' linker library path setting that caused almost the same error, and I guess you can have similar problems with 'optimized.obj' linking failures.
LINK : fatal error LNK1104: cannot open file 'debug.obj'
This is because the compiler doesn't have access to that file. Change the project directory and try again.
For me this error started coming when I turned on Preprocessing output
Project properties -> C/C++ -> Preprocessing -> Preprocess to a file: Yes (/P)