Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu 18.04 build fails (release and git version) #1011

Open
jstaursky opened this issue Mar 11, 2021 · 4 comments
Open

ubuntu 18.04 build fails (release and git version) #1011

jstaursky opened this issue Mar 11, 2021 · 4 comments
Assignees
Labels
build This issue is about a problem building Reko

Comments

@jstaursky
Copy link

jstaursky commented Mar 11, 2021

Have tried msbuild /p:Configuration=UnixRelease /p:Platform=x64 src/Reko-decompiler.sln
dotnet msbuild /p:Configuration=UnixRelease /p:Platform=x64 src/Reko-decompiler.sln
nuget restore src/Reko-decompiler.sln then the above.
everything was fresh install, but have never used mono nor msbuild before so maybe I'm missing something.

ending with errors

"/home/jnstaursky/Downloads/reko-version-0.9.3/src/Reko-decompiler.sln" (default target) (1) ->
"/home/jnstaursky/Downloads/reko-version-0.9.3/src/Native/NativeProxy.csproj" (default target) (64) ->
(AfterBuild target) -> 
  EXEC : CMake error : CMAKE_C_COMPILER not set, after EnableLanguage [/home/jnstaursky/Downloads/reko-version-0.9.3/src/Native/NativeProxy.csproj]
  EXEC : CMake error : CMAKE_CXX_COMPILER not set, after EnableLanguage [/home/jnstaursky/Downloads/reko-version-0.9.3/src/Native/NativeProxy.csproj]
  /home/jnstaursky/Downloads/reko-version-0.9.3/src/Native/NativeProxy.csproj(167,5): error MSB3073: The command "cmake -DREKO_PATH="/home/jnstaursky/Downloads/reko-version-0.9.3/src/../" -DCMAKE_BUILD_TYPE=UnixRelease -DREKO_PLATFORM=x64 -P "/home/jnstaursky/Downloads/reko-version-0.9.3/src/Native/reko.cmake"" exited with code 1.

    31 Warning(s)
    3 Error(s)


cmake is on path
even set export CMAKE_C_COMPILER=cc and export CMAKE_CXX_COMPILER=c++ and still seeing these errors.

@uxmal uxmal added the build This issue is about a problem building Reko label Mar 11, 2021
@uxmal
Copy link
Owner

uxmal commented Mar 11, 2021

We're seeing reports of Reko failing to build for Linux users. What platform are you on? What version of CMake is installed?

While we troubleshoot this, you can obtain a nightly build of Reko by clicking on Actions which will take you to https://github.com/uxmal/reko/actions. Pick an successfully completed action (green blob), like https://github.com/uxmal/reko/actions/runs/633940936. Select a download from the Artifacts section at the bottom of the screen.

You can see the logs of those successful builds by clicking on one of the "jobs" in the left column. Perhaps you can compare the output there with the log output you're seeing.

@uxmal
Copy link
Owner

uxmal commented Mar 11, 2021

See also #996

@smx-smx
Copy link
Collaborator

smx-smx commented Mar 11, 2021

I'd make sure you have build-essential installed and that cmake, gcc and g++ are at the latest version available through your system's package manager.
When retrying, run git clean -fxd first to clean any previous build file

@jstaursky
Copy link
Author

We're seeing reports of Reko failing to build for Linux users. What platform are you on? What version of CMake is installed?

While we troubleshoot this, you can obtain a nightly build of Reko by clicking on Actions which will take you to https://github.com/uxmal/reko/actions. Pick an successfully completed action (green blob), like https://github.com/uxmal/reko/actions/runs/633940936. Select a download from the Artifacts section at the bottom of the screen.

You can see the logs of those successful builds by clicking on one of the "jobs" in the left column. Perhaps you can compare the output there with the log output you're seeing.

cmake version 3.16.3
ubuntu 18.04

Thanks for the tip on the nightly. I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build This issue is about a problem building Reko
Projects
None yet
Development

No branches or pull requests

3 participants