runtime icon indicating copy to clipboard operation
runtime copied to clipboard

UIntPtrGetHashCode.csproj and IntPtrGetHashCode.csproj have build problems

Open ramarag opened this issue 10 years ago • 6 comments

The build error were introduced in https://github.com/dotnet/coreclr/pull/3511/files

intptrgethashcode.cs(117,17): error CS0103: The name 'retVal' does not exist in the current context [E:\git\coreclr\tests\src\CoreMangLib\cti\system\intptr\IntPtrGetHashCode.csproj] intptrgethashcode.cs(125,24): error CS0103: The name 'retVal' does not exist in the current context [E:\git\coreclr\tests\src\CoreMangLib\cti\system\intptr\IntPtrGetHashCode.csproj] intptrgethashcode.cs(129,52): error CS0103: The name 'id' does not exist in the current context [E:\git\coreclr\tests\src\CoreMangLib\cti\system\intptr\IntPtrGetHashCode.csproj] intptrgethashcode.cs(129,140): error CS0103: The name 'i' does not exist in the current context [E:\git\coreclr\tests\src\CoreMangLib\cti\system\intptr\IntPtrGetHashCode.csproj] intptrgethashcode.cs(130,17): error CS0103: The name 'retVal' does not exist in the current context [E:\git\coreclr\tests\src\CoreMangLib\cti\system\intptr\IntPtrGetHashCode.csproj] intptrgethashcode.cs(136,13): error CS0103: The name 'retVal' does not exist in the current context [E:\git\coreclr\tests\src\CoreMangLib\cti\system\intptr\IntPtrGetHashCode.csproj] intptrgethashcode.cs(138,16): error CS0103: The name 'retVal' does not exist in the current context [E:\git\coreclr\tests\src\CoreMangLib\cti\system\intptr\IntPtrGetHashCode.csproj] uintptrgethashcode.cs(169,48): error CS1503: Argument 1: cannot convert from 'long' to 'uint' [E:\git\coreclr\tests\src\CoreMangLib\cti\system\uintptr\UIntPtrGetHashCode.csproj] uintptrgethashcode.cs(170,48): error CS1503: Argument 1: cannot convert from 'long' to 'uint' [E:\git\coreclr\tests\src\CoreMangLib\cti\system\uintptr\UIntPtrGetHashCode.csproj] uintptrgethashcode.cs(174,17): error CS0103: The name 'retVal' does not exist in the current context [E:\git\coreclr\tests\src\CoreMangLib\cti\system\uintptr\UIntPtrGetHashCode.csproj] uintptrgethashcode.cs(182,24): error CS0103: The name 'retVal' does not exist in the current context [E:\git\coreclr\tests\src\CoreMangLib\cti\system\uintptr\UIntPtrGetHashCode.csproj] uintptrgethashcode.cs(186,52): error CS0103: The name 'id' does not exist in the current context [E:\git\coreclr\tests\src\CoreMangLib\cti\system\uintptr\UIntPtrGetHashCode.csproj] uintptrgethashcode.cs(186,140): error CS0103: The name 'i' does not exist in the current context [E:\git\coreclr\tests\src\CoreMangLib\cti\system\uintptr\UIntPtrGetHashCode.csproj] uintptrgethashcode.cs(187,17): error CS0103: The name 'retVal' does not exist in the current context [E:\git\coreclr\tests\src\CoreMangLib\cti\system\uintptr\UIntPtrGetHashCode.csproj] uintptrgethashcode.cs(193,13): error CS0103: The name 'retVal' does not exist in the current context [E:\git\coreclr\tests\src\CoreMangLib\cti\system\uintptr\UIntPtrGetHashCode.csproj] uintptrgethashcode.cs(195,16): error CS0103: The name 'retVal' does not exist in the current context [E:\git\coreclr\tests\src\CoreMangLib\cti\system\uintptr\UIntPtrGetHashCode.csproj]

ramarag avatar Mar 05 '16 09:03 ramarag

@vcsjones can you take a look?

ramarag avatar Mar 05 '16 09:03 ramarag

Fixed by https://github.com/dotnet/coreclr/pull/3530/files. Thanks @ramarag for taking care of it!

jkotas avatar Mar 05 '16 10:03 jkotas

Actually https://github.com/dotnet/coreclr/pull/3530/ does not fix it completely, it was the first level of error. The above reported ones surfaced after the fix

ramarag avatar Mar 05 '16 11:03 ramarag

I'm looking into the rest of the errors.

vcsjones avatar Mar 05 '16 22:03 vcsjones

The test project is marked 1, probably that is the reason the CI did not catch it. The easiest way to build the project is to remove this tag from the .csproj. Then you can directly build the project. Or use msbuild /t:rebuild tests\src\CoreMangLib\cti\system\uintptr\UIntPtrGetHashCode.csproj /p:CLRTestPriorityToBuild=2[ If you opt for that you don't need to modify the project]

ramarag avatar Mar 05 '16 23:03 ramarag

@ramarag Thanks for the trick on editing the csproj file, that's quite handy over running a full build. I made a PR in dotnet/coreclr#3538 to correct the build errors.

vcsjones avatar Mar 06 '16 00:03 vcsjones