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

Fortran and Go compiler not found #8

Open
Harry-R opened this issue Nov 29, 2021 · 1 comment
Open

Fortran and Go compiler not found #8

Harry-R opened this issue Nov 29, 2021 · 1 comment

Comments

@Harry-R
Copy link

Harry-R commented Nov 29, 2021

When following the instructions and building inside the docker container, it fails because no Fortran and go compilers are found. This should not happen when compiling a plain C application.

CMake Error at /home/hermit-playground/cmake/HermitCore.cmake:65 (enable_language):
 No CMAKE_Fortran_COMPILER could be found.

 Tell CMake where to find the compiler by setting either the environment
 variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full
 path to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
 /home/hermit-playground/cmake/HermitCore-Application.cmake:1 (include)
 CMakeLists.txt:8 (include)


CMake Error at /home/hermit-playground/cmake/HermitCore.cmake:65 (enable_language):
 No CMAKE_Go_COMPILER could be found.

 Tell CMake where to find the compiler by setting either the environment
 variable "GO_COMPILER" or the CMake cache entry CMAKE_Go_COMPILER to the
 full path to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
 /home/hermit-playground/cmake/HermitCore-Application.cmake:1 (include)
 CMakeLists.txt:8 (include)


-- Configuring incomplete, errors occurred!
@stlankes
Copy link
Collaborator

stlankes commented Dec 29, 2021

At least Fortran should work. I found a compiler in my default path and tested with a simple application.

$ docker run -v $PWD:/volume -w /volume --rm -t ghcr.io/hermitcore/hermit-toolchain:latest which x86_64-hermit-gfortran
/opt/hermit/bin/x86_64-hermit-gfortran
$

The Go compiler is also installed:

docker run -v $PWD:/volume -w /volume --rm -t ghcr.io/hermitcore/hermit-toolchain:latest which x86_64-hermit-gccgo  
/opt/hermit/bin/x86_64-hermit-gccgo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants