Skip to content
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

build errors in Cuda11 #101

Open
jsemeda opened this issue Aug 8, 2020 · 2 comments
Open

build errors in Cuda11 #101

jsemeda opened this issue Aug 8, 2020 · 2 comments

Comments

@jsemeda
Copy link

jsemeda commented Aug 8, 2020

Target CudaBuild:
1> Target CudaBuildCore:
1> Compiling CUDA source file ....\source\gvdb_library\src\gvdb_cutils.cu...
1> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB3686: Unable to create Xaml task. Compilation failed.
1> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB3686: Source file 'C:\WINDOWS\TEMP\oxqtpk5c.0.cs' could not be found
1> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB3686:
1> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB4175: The task factory "XamlTaskFactory" could not be loaded from the assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Object reference not set to an instance of an object.
1> Done building target "CudaBuildCore" in project "gvdb.vcxproj" -- FAILED.
1>
1> Done building project "gvdb.vcxproj" -- FAILED.
1>
1>Build FAILED.
1>
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB3686: Unable to create Xaml task. Compilation failed.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB3686: Source file 'C:\WINDOWS\TEMP\oxqtpk5c.0.cs' could not be found
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB3686:
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB4175: The task factory "XamlTaskFactory" could not be loaded from the assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Object reference not set to an instance of an object.
1> 0 Warning(s)
1> 2 Error(s)

@NBickford-NV
Copy link
Collaborator

Hi jsemeda,

This is unusual - I'm running Visual Studio 2019 on Windows using a variety of different CUDA versions, and haven't seen this error before - it seems to be some sort of internal error inside of VS 2019's MSBuild system that has been generated by CMake.

Searching for "Unable to create Xaml task" online pulls up different issues dating as far back as 2009. In one case, the solution was updating Visual Studio; in another case, this was due to attempting to build a crash-reporting system remotely (from what I can tell).

Without more information, I'm unfortunately unable to guess what could be failing in MSBuild here. Are you able to compile any of the samples installed with CUDA, for instance? What sub-version of CUDA and Visual Studio 2019 are you using? How is this being built - e.g. directly from GVDB's CMake files (if so, what version of CMake are you using?), or something unusual, such as using GVDB inside a build system, or building remotely? Is there anything else unusual that could be going on?

Thanks!

@NBickford-NV
Copy link
Collaborator

Also, another good question - are you using the latest version of GVDB from GitHub? (We've had issues in the past where people have problems with an older version of GVDB.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants