Open tripleo1 opened 3 years ago
Thanks for reporting this. What version of CMake do you have installed?
3.16.3
Try upgrading CMake to a more recent version and see if the problem goes away. I'm running 3.19, with no issues. Also, try cleaning out your git clone by doing git clean -dfX
Still failing after upgrading to cmake 3.20.2 and doing git clean -dfX
Fails on Arch too
This is perplexing. The build on https://github.com/uxmal/reko/runs/2687000542 is on an Ubuntu VM, and compiles to completion. Is the failure on Arch the same as the one you saw on Ubuntu?
No, it's different.
/home/reko/reko/src/BuildTargets/BuildTargets.csproj(81,5): error MSB3073: The command "cmake -DIS_MSYS=FALSE -DCMAKE_BUILD_TYPE=Release -DREKO_PLATFORM=AnyCPU -DREKO_SRC=/home/reko/reko/src/BuildTargets/../ -DTARGET=gen_c2xml_windows -P ../reko.cmake" exited with code 1.
/home/reko/reko/src/BuildTargets/BuildTargets.csproj(89,5): error MSB3073: The command "cmake -DIS_MSYS=FALSE -DCMAKE_BUILD_TYPE=Release -DREKO_PLATFORM=x64 -DREKO_SRC=/home/reko/reko/src/BuildTargets/../ -DTARGET=run_hdrgen -P ../reko.cmake" exited with code 1.
/home/reko/reko/src/BuildTargets/BuildTargets.csproj(63,5): error MSB3073: The command "cmake -DIS_MSYS=FALSE -DCMAKE_BUILD_TYPE=Release -DREKO_PLATFORM=AnyCPU -DREKO_SRC=/home/reko/reko/src/BuildTargets/../ -DTARGET=gen_decompiler_menus -P ../reko.cmake" exited with code 1.
/home/reko/reko/src/BuildTargets/BuildTargets.csproj(73,5): error MSB3073: The command "cmake -DIS_MSYS=FALSE -DCMAKE_BUILD_TYPE=Release -DREKO_PLATFORM=AnyCPU -DREKO_SRC=/home/reko/reko/src/BuildTargets/../ -DTARGET=gen_c2xml_os2 -P ../reko.cmake" exited with code 1.
/home/reko/reko/src/BuildTargets/BuildTargets.csproj(77,5): error MSB3073: The command "cmake -DIS_MSYS=FALSE -DCMAKE_BUILD_TYPE=Release -DREKO_PLATFORM=AnyCPU -DREKO_SRC=/home/reko/reko/src/BuildTargets/../ -DTARGET=gen_c2xml_sysv -P ../reko.cmake" exited with code 1.
Well it was different yesterday. Today it's giving me
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '3.1.14' was not found.
- The following frameworks were found:
5.0.5 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
Ubuntu is giving me
EXEC : error : could not load cache [/home/dot-net/reko/src/BuildTargets/BuildTargets.csproj]
CMake Error at /home/dot-net/reko/cmake/msbuild2cmake.cmake:160 (message):
[CMake] build failed: /home/dot-net/reko/cmake/../src/../
Call Stack (most recent call first):
/home/dot-net/reko/src/reko.cmake:6 (invoke_cmake)
But I have dot-net-sdk 5.0 on this one too. I don't know if that matters.
My command line is
dotnet build /p:Configuration=UnixRelease /p:Platform=x64 src/Reko-decompiler.sln
I looked in your ubuntu section of .yml file and that command just doesn't work.
I'm installing a fresh Ubuntu 20 VM to see if I can reproduce this.
I installed:
dotnet-sdk
following the instructions on https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntucmake
, libcapstone-dev
, g++
Then I ran:
dotnet build /v:m /m /p:Configuration=UnixRelease /p:Platform=x64
The compilation succeeded, and I was able to decompile an ELF file immediately. It appears there is a local issue on your machine with cmake. I'm not sure what else I can help with: as I'm by no means a cmake expert.
The error:
It was not possible to find any compatible framework version The framework 'Microsoft.NETCore.App', version '3.1.14' was not found.
- The following frameworks were found: 5.0.5 at [/usr/share/dotnet/shared/Microsoft.NETCore.App] You can resolve the problem by installing the specified framework and/or SDK.
is likely caused because Reko uses .NET SDK 3.1 currently. Have you tried installing that version of the SDK?
I tried on Ubuntu and cleared the nuget
cache like in the yml
then tried to build it with the command with the sln
and the one mentioned in the yml
and it still didi't work. But what does all this have to do with invoke_cmake
?
Edit: Just read you're no cmake expert, and I tried the above command. Still getting the same error. Will try later with dotnet 3.1.
I cloned from a fresh repo and ran the command line as specified. This is what I get. I don't know what the problem is.