reko icon indicating copy to clipboard operation
reko copied to clipboard

macOS dotnet 6/7 build - libArmNative not being built

Open vvuk opened this issue 1 year ago • 2 comments

Trying to build on macOS (14, so could be something there), following the exact cirrus CI commands (dotnet msbuild -p:Platform=ARM64 -p:Configuration=UnixRelease -t:build_solution -m ./src/BuildTargets/BuildTargets.csproj) , with both dotnet 7 and 6 results in:

/opt/proj/reko/src/Drivers/PreBuild.targets(21,5): error MSB3030: Could not copy the file "/opt/proj/reko/src/Native/build/ARM64/Release/ArmNative/libArmNative.dylib" because it was not found. [/opt/proj/reko/src/Drivers/AvaloniaShell/AvaloniaShell.csproj] [/opt/proj/reko/src/BuildTargets/BuildTargets.csproj]

and elsewhere where libArmNative is referenced. I don't have a src/Native/build directory at all, and I don't see any errors or any references earlier to ArmNative at all.

I noticed that src/Native/NativeProxy.csproj is missing ARM64 in the platforms list, but changing that doesn't affect the outcome and.. somehow CI still works.

vvuk avatar Aug 01 '23 05:08 vvuk

Thanks for report this. What version of CMake do you have installed? The absence of a build directory implies that CMake is not doing what it's supposed to do. I'm looping in @smx-smx as well to assist.

uxmal avatar Aug 01 '23 11:08 uxmal

We've been unable to reproduce this in house on a separate machine. You should be able capture the build output in a file. Please attach it to this issue.

uxmal avatar Aug 03 '23 15:08 uxmal