uxmal / reko

Reko is a binary decompiler.
https://uxmal.github.io/reko
GNU General Public License v2.0
2.1k stars 251 forks source link

macOS dotnet 6/7 build - libArmNative not being built #1275

Open vvuk opened 12 months ago

vvuk commented 12 months ago

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.

uxmal commented 12 months ago

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 commented 12 months ago

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.