reko
reko copied to clipboard
Error on Ubuntu
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.
Microsoft (R) Build Engine version 16.9.0+57a23d249 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
All projects are up-to-date for restore.
Core -> /home/dot-net/reko/src/Core/bin/Release/netstandard2.1/Reko.Core.dll
Arm -> /home/dot-net/reko/src/Arch/Arm/bin/Release/netstandard2.1/Reko.Arch.Arm.dll
Avr -> /home/dot-net/reko/src/Arch/Avr/bin/Release/netstandard2.1/Reko.Arch.Avr.dll
Dreamcast -> /home/dot-net/reko/src/Environments/Dreamcast/bin/Release/netstandard2.1/Reko.Environments.Dreamcast.dll
Tlcs -> /home/dot-net/reko/src/Arch/Tlcs/bin/Release/netstandard2.1/Reko.Arch.Tlcs.dll
Alpha -> /home/dot-net/reko/src/Arch/Alpha/bin/Release/netstandard2.1/Reko.Arch.Alpha.dll
Cil -> /home/dot-net/reko/src/Arch/Cil/bin/Release/netstandard2.1/Reko.Arch.Cil.dll
Mos6502 -> /home/dot-net/reko/src/Arch/Mos6502/bin/Release/netstandard2.1/Reko.Arch.Mos6502.dll
Pdp11 -> /home/dot-net/reko/src/Arch/Pdp11/bin/Release/netstandard2.1/Reko.Arch.Pdp11.dll
SuperH -> /home/dot-net/reko/src/Arch/SuperH/bin/Release/netstandard2.1/Reko.Arch.SuperH.dll
RiscV -> /home/dot-net/reko/src/Arch/RiscV/bin/Release/netstandard2.1/Reko.Arch.RiscV.dll
Xtensa -> /home/dot-net/reko/src/Arch/Xtensa/bin/Release/netstandard2.1/Reko.Arch.Xtensa.dll
Z80 -> /home/dot-net/reko/src/Arch/Z80/bin/Release/netstandard2.1/Reko.Arch.Z80.dll
Vax -> /home/dot-net/reko/src/Arch/Vax/bin/Release/netstandard2.1/Reko.Arch.Vax.dll
Mips -> /home/dot-net/reko/src/Arch/Mips/bin/Release/netstandard2.1/Reko.Arch.Mips.dll
Sparc -> /home/dot-net/reko/src/Arch/Sparc/bin/Release/netstandard2.1/Reko.Arch.Sparc.dll
M68k -> /home/dot-net/reko/src/Arch/M68k/bin/Release/netstandard2.1/Reko.Arch.M68k.dll
Arc -> /home/dot-net/reko/src/Arch/Arc/bin/Release/netstandard2.1/Reko.Arch.Arc.dll
X86 -> /home/dot-net/reko/src/Arch/X86/bin/Release/netstandard2.1/Reko.Arch.X86.dll
PowerPC -> /home/dot-net/reko/src/Arch/PowerPC/bin/Release/netstandard2.1/Reko.Arch.PowerPC.dll
Blackfin -> /home/dot-net/reko/src/Arch/Blackfin/bin/Release/netstandard2.1/Reko.Arch.Blackfin.dll
Decompiler -> /home/dot-net/reko/src/Decompiler/bin/Release/netstandard2.1/Reko.dll
xslt -> /home/dot-net/reko/src/tools/xslt/bin/Release/netcoreapp3.1/xslt.dll
makesigs -> /home/dot-net/reko/src/tools/makesigs/bin/Release/netcoreapp3.1/makesigs.dll
Elf -> /home/dot-net/reko/src/ImageLoaders/Elf/bin/Release/netstandard2.1/Reko.ImageLoaders.Elf.dll
Coff -> /home/dot-net/reko/src/ImageLoaders/Coff/bin/Release/netstandard2.1/Reko.ImageLoaders.Coff.dll
MachO -> /home/dot-net/reko/src/ImageLoaders/MachO/bin/Release/netstandard2.1/Reko.ImageLoaders.MachO.dll
BbcMicro -> /home/dot-net/reko/src/Environments/BbcMicro/bin/Release/netstandard2.1/Reko.Environments.BbcMicro.dll
OdbgScript -> /home/dot-net/reko/src/ImageLoaders/OdbgScript/bin/Release/netstandard2.1/Reko.ImageLoaders.OdbgScript.dll
TypeLib -> /home/dot-net/reko/src/ImageLoaders/TypeLib/bin/Release/netstandard2.1/Reko.ImageLoaders.TypeLib.dll
AmigaOS -> /home/dot-net/reko/src/Environments/AmigaOS/bin/Release/netstandard2.1/Reko.Environments.AmigaOS.dll
IntelHex -> /home/dot-net/reko/src/ImageLoaders/IntelHex/bin/Release/netstandard2.1/Reko.ImageLoaders.IntelHex.dll
Python -> /home/dot-net/reko/src/Libraries/Python/bin/Release/netstandard2.1/Reko.Libraries.Python.dll
LLVM -> /home/dot-net/reko/src/ImageLoaders/Llvm/bin/Release/netstandard2.1/Reko.ImageLoaders.LLVM.dll
VmsExe -> /home/dot-net/reko/src/ImageLoaders/VmsExe/bin/Release/netstandard2.1/Reko.ImageLoaders.VmsExe.dll
LGSymLoader -> /home/dot-net/reko/src/Symbols/LGSymLoader/bin/Release/netstandard2.1/Reko.Symbols.LGSymLoader.dll
c2xml -> /home/dot-net/reko/src/tools/c2xml/bin/Release/netcoreapp3.1/c2xml.dll
Libc -> /home/dot-net/reko/src/Libraries/Libc/bin/Release/netstandard2.1/Reko.Libraries.Libc.dll
AtariTOS -> /home/dot-net/reko/src/Environments/AtariTOS/bin/Release/netstandard2.1/Reko.Environments.AtariTOS.dll
i8051 -> /home/dot-net/reko/src/Arch/i8051/bin/Release/netstandard2.1/Reko.Arch.i8051.dll
SegaGenesis -> /home/dot-net/reko/src/Environments/SegaGenesis/bin/Release/netstandard2.1/Reko.Environments.SegaGenesis.dll
Msdos -> /home/dot-net/reko/src/Environments/Msdos/bin/Release/netstandard2.1/Reko.Environments.Msdos.dll
Omf -> /home/dot-net/reko/src/ImageLoaders/Omf/bin/Release/netstandard2.1/Reko.ImageLoaders.Omf.dll
Xbox -> /home/dot-net/reko/src/Environments/Xbox/bin/Release/netstandard2.1/Reko.Environments.Xbox.dll
C64 -> /home/dot-net/reko/src/Environments/C64/bin/Release/netstandard2.1/Reko.Environments.C64.dll
Xex -> /home/dot-net/reko/src/ImageLoaders/XexLoader/bin/Release/netstandard2.1/Reko.ImageLoaders.Xex.dll
Tms7000 -> /home/dot-net/reko/src/Arch/Tms7000/bin/Release/netstandard2.1/Reko.Arch.Tms7000.dll
Microchip.Utils -> /home/dot-net/reko/src/Libraries/Microchip/Utils/bin/Release/netstandard2.1/Reko.Libraries.Microchip.Utils.dll
Wii -> /home/dot-net/reko/src/Environments/Wii/bin/Release/netstandard2.1/Reko.Environments.Wii.dll
Ps3 -> /home/dot-net/reko/src/Environments/Ps3/bin/Release/netstandard2.1/Reko.Environments.Ps3.dll
MacOS -> /home/dot-net/reko/src/Environments/MacOS/bin/Release/netstandard2.1/Reko.Environments.MacOS.dll
M6800 -> /home/dot-net/reko/src/Arch/M6800/bin/Release/netstandard2.1/Reko.Arch.M6800.dll
RiscOS -> /home/dot-net/reko/src/Environments/RiscOS/bin/Release/netstandard2.1/Reko.Environments.RiscOS.dll
zSeries -> /home/dot-net/reko/src/Arch/zSeries/bin/Release/netstandard2.1/Reko.Arch.zSeries.dll
MSP430 -> /home/dot-net/reko/src/Arch/MSP430/bin/Release/netstandard2.1/Reko.Arch.Msp430.dll
Rl78 -> /home/dot-net/reko/src/Arch/Rl78/bin/Release/netstandard2.1/Reko.Arch.Rl78.dll
Dol -> /home/dot-net/reko/src/ImageLoaders/Dol/bin/Release/netstandard2.1/Reko.ImageLoaders.Dol.dll
PaRisc -> /home/dot-net/reko/src/Arch/PaRisc/bin/Release/netstandard2.1/Reko.Arch.PaRisc.dll
H8 -> /home/dot-net/reko/src/Arch/H8/bin/Release/netstandard2.1/Reko.Arch.H8.dll
genPICdb -> /home/dot-net/reko/src/tools/genPICdb/bin/UnixRelease/netcoreapp3.1/genPICdb.dll
HpSom -> /home/dot-net/reko/src/ImageLoaders/HpSom/bin/Release/netstandard2.1/Reko.ImageLoaders.HpSom.dll
Hpux -> /home/dot-net/reko/src/Environments/Hpux/bin/Release/netstandard2.1/Reko.Environments.Hpux.dll
LatticeMico -> /home/dot-net/reko/src/Arch/LatticeMico/bin/Release/netstandard2.1/Reko.Arch.LatticeMico.dll
hdrgen -> /home/dot-net/reko/src/tools/hdrgen/bin/Release/netcoreapp3.1/hdrgen.dll
CompactRisc -> /home/dot-net/reko/src/Arch/CompactRisc/bin/Release/netstandard2.1/Reko.Arch.CompactRisc.dll
Cray -> /home/dot-net/reko/src/Arch/Cray/bin/Release/netstandard2.1/Reko.Arch.Cray.dll
MCore -> /home/dot-net/reko/src/Arch/MCore/bin/Release/netstandard2.1/Reko.Arch.MCore.dll
MicroBlaze -> /home/dot-net/reko/src/Arch/MicroBlaze/bin/Release/netstandard2.1/Reko.Arch.MicroBlaze.dll
IA64 -> /home/dot-net/reko/src/Arch/IA64/bin/Release/netstandard2.1/Reko.Arch.IA64.dll
Nro -> /home/dot-net/reko/src/ImageLoaders/Nro/bin/Release/netstandard2.1/Reko.ImageLoaders.Nro.dll
MilStd1750 -> /home/dot-net/reko/src/Arch/MilStd1750/bin/Release/netstandard2.1/Reko.Arch.MilStd1750.dll
OpenRISC -> /home/dot-net/reko/src/Arch/OpenRISC/bin/Release/netstandard2.1/Reko.Arch.OpenRISC.dll
BinHex -> /home/dot-net/reko/src/ImageLoaders/BinHex/bin/Release/netstandard2.1/Reko.ImageLoaders.BinHex.dll
Qualcomm -> /home/dot-net/reko/src/Arch/Qualcomm/bin/Release/netstandard2.1/Reko.Arch.Qualcomm.dll
OS2 -> /home/dot-net/reko/src/Environments/OS2/bin/Release/netstandard2.1/Reko.Environments.OS2.dll
Snes -> /home/dot-net/reko/src/Environments/Snes/bin/Release/netstandard2.1/Reko.Environments.Snes.dll
Srec -> /home/dot-net/reko/src/ImageLoaders/Srec/bin/Release/netstandard2.1/Reko.ImageLoaders.Srec.dll
TekHex -> /home/dot-net/reko/src/ImageLoaders/TekHex/bin/Release/netstandard2.1/Reko.ImageLoaders.TekHex.dll
V850 -> /home/dot-net/reko/src/Arch/V850/bin/Release/netstandard2.1/Reko.Arch.V850.dll
WebAssembly -> /home/dot-net/reko/src/ImageLoaders/WebAssembly/bin/Release/netstandard2.1/Reko.ImageLoaders.WebAssembly.dll
WE32100 -> /home/dot-net/reko/src/Arch/WE32100/bin/Release/netstandard2.1/Reko.Arch.WE32100.dll
XCore -> /home/dot-net/reko/src/Arch/XCore/bin/Release/netstandard2.1/Reko.Arch.XCore.dll
Pef -> /home/dot-net/reko/src/ImageLoaders/Pef/bin/Release/netstandard2.1/Reko.ImageLoaders.Pef.dll
== Configuration ==
=> Build Type: Release
=> Generator :
=> Platform : x64
=> Target : run_hdrgen
== Configuration ==
=> Build Type: Release
=> Generator :
=> Platform : AnyCPU
=> Target : gen_decompiler_menus
specGen -> /home/dot-net/reko/src/tools/specGen/bin/Release/netcoreapp3.1/specGen.dll
regressionTests -> /home/dot-net/reko/src/tools/regressionTests/bin/Release/netcoreapp3.1/regressionTests.dll
-- Found .NET toolchain: /usr/bin/dotnet (version 5.0.203)
-- Found .NET toolchain: /usr/bin/dotnet (version 5.0.203)
C166 -> /home/dot-net/reko/src/Arch/C166/bin/Release/netstandard2.1/Reko.Arch.C166.dll
Etrax -> /home/dot-net/reko/src/Arch/Etrax/bin/Release/netstandard2.1/Reko.Arch.Etrax.dll
Altera -> /home/dot-net/reko/src/Arch/Altera/bin/Release/netstandard2.1/Reko.Arch.Altera.dll
Python -> /home/dot-net/reko/src/Scripts/Python/bin/Release/netstandard2.1/Reko.Scripts.Python.dll
-- Adding dotnet run project /home/dot-net/reko/src/tools/xslt/xslt.csproj
-- Configuring done
-- Adding dotnet run project /home/dot-net/reko/src/tools/hdrgen/hdrgen.csproj
-- Configuring done
-- Generating done
-- Generating done
-- Build files have been written to: /home/dot-net/reko
-- Build files have been written to: /home/dot-net/reko
-- Build Args: --target;gen_decompiler_menus
-- Build Args: --target;run_hdrgen
EXEC : error : could not load cache [/home/dot-net/reko/src/BuildTargets/BuildTargets.csproj]
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)
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)
/home/dot-net/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/dot-net/reko/src/BuildTargets/../ -DTARGET=gen_decompiler_menus -P ../reko.cmake" exited with code 1.
/home/dot-net/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/dot-net/reko/src/BuildTargets/../ -DTARGET=run_hdrgen -P ../reko.cmake" exited with code 1.
Hunk -> /home/dot-net/reko/src/ImageLoaders/Hunk/bin/Release/netstandard2.1/Reko.ImageLoaders.Hunk.dll
Switch -> /home/dot-net/reko/src/Environments/Switch/bin/Release/netstandard2.1/Reko.Environments.Switch.dll
== Configuration ==
=> Build Type: Release
=> Generator :
=> Platform : AnyCPU
=> Target : gen_c2xml_os2
MorphOS -> /home/dot-net/reko/src/Environments/MorphOS/bin/Release/netstandard2.1/Reko.Environments.MorphOS.dll
Xbe -> /home/dot-net/reko/src/ImageLoaders/Xbe/bin/Release/netstandard2.1/Reko.ImageLoaders.Xbe.dll
-- Found .NET toolchain: /usr/bin/dotnet (version 5.0.203)
-- Adding dotnet project /home/dot-net/reko/src/tools/c2xml/c2xml.csproj (no nupkg)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dot-net/reko
-- Build Args: --target;gen_c2xml_os2
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)
/home/dot-net/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/dot-net/reko/src/BuildTargets/../ -DTARGET=gen_c2xml_os2 -P ../reko.cmake" exited with code 1.
hunktool -> /home/dot-net/reko/src/tools/hunktool/bin/Release/netcoreapp3.1/hunktool.dll
NeoGeo -> /home/dot-net/reko/src/Environments/NeoGeo/bin/Release/netstandard2.1/Reko.Environments.NeoGeo.dll
RT11 -> /home/dot-net/reko/src/Environments/RT11/bin/Release/netstandard2.1/Reko.Environments.RT11.dll
Cpm -> /home/dot-net/reko/src/Environments/Cpm/bin/Release/netstandard2.1/Reko.Environments.Cpm.dll
Trs80 -> /home/dot-net/reko/src/Environments/Trs80/bin/Release/netstandard2.1/Reko.Environments.Trs80.dll
ZX81 -> /home/dot-net/reko/src/Environments/ZX81/bin/Release/netstandard2.1/Reko.Environments.ZX81.dll
MicrochipPIC -> /home/dot-net/reko/src/Arch/Microchip/bin/Release/netstandard2.1/Reko.Arch.MicrochipPIC.dll
SysV -> /home/dot-net/reko/src/Environments/SysV/bin/Release/netstandard2.1/Reko.Environments.SysV.dll
== Configuration ==
=> Build Type: Release
=> Generator :
=> Platform : AnyCPU
=> Target : gen_c2xml_sysv
-- Found .NET toolchain: /usr/bin/dotnet (version 5.0.203)
-- Adding dotnet project /home/dot-net/reko/src/tools/c2xml/c2xml.csproj (no nupkg)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dot-net/reko
-- Build Args: --target;gen_c2xml_sysv
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)
/home/dot-net/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/dot-net/reko/src/BuildTargets/../ -DTARGET=gen_c2xml_sysv -P ../reko.cmake" exited with code 1.
Ldm -> /home/dot-net/reko/src/ImageLoaders/Ldm/bin/Release/netstandard2.1/Reko.ImageLoaders.Ldm.dll
Windows -> /home/dot-net/reko/src/Environments/Windows/bin/Release/netstandard2.1/Reko.Environments.Windows.dll
== Configuration ==
=> Build Type: Release
=> Generator :
=> Platform : AnyCPU
=> Target : gen_c2xml_windows
-- Found .NET toolchain: /usr/bin/dotnet (version 5.0.203)
-- Adding dotnet project /home/dot-net/reko/src/tools/c2xml/c2xml.csproj (no nupkg)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dot-net/reko
-- Build Args: --target;gen_c2xml_windows
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)
/home/dot-net/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/dot-net/reko/src/BuildTargets/../ -DTARGET=gen_c2xml_windows -P ../reko.cmake" exited with code 1.
Build FAILED.
EXEC : error : could not load cache [/home/dot-net/reko/src/BuildTargets/BuildTargets.csproj]
EXEC : error : could not load cache [/home/dot-net/reko/src/BuildTargets/BuildTargets.csproj]
/home/dot-net/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/dot-net/reko/src/BuildTargets/../ -DTARGET=gen_decompiler_menus -P ../reko.cmake" exited with code 1.
/home/dot-net/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/dot-net/reko/src/BuildTargets/../ -DTARGET=run_hdrgen -P ../reko.cmake" exited with code 1.
EXEC : error : could not load cache [/home/dot-net/reko/src/BuildTargets/BuildTargets.csproj]
/home/dot-net/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/dot-net/reko/src/BuildTargets/../ -DTARGET=gen_c2xml_os2 -P ../reko.cmake" exited with code 1.
EXEC : error : could not load cache [/home/dot-net/reko/src/BuildTargets/BuildTargets.csproj]
/home/dot-net/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/dot-net/reko/src/BuildTargets/../ -DTARGET=gen_c2xml_sysv -P ../reko.cmake" exited with code 1.
EXEC : error : could not load cache [/home/dot-net/reko/src/BuildTargets/BuildTargets.csproj]
/home/dot-net/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/dot-net/reko/src/BuildTargets/../ -DTARGET=gen_c2xml_windows -P ../reko.cmake" exited with code 1.
0 Warning(s)
10 Error(s)
Time Elapsed 00:00:27.15
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:
- Ubuntu 20.04 in a VM
-
dotnet-sdk
following the instructions on https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu - apt installed
cmake
,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.