Closed skeledrew closed 3 years ago
https://github.com/hpcng/singularity/issues/5265#issuecomment-621861361
Check the output of which x86_64-conda-linux-gnu-cc
- where does it show?
That link was very helpful, thanks. A conda install gcc_linux-64
resolved the issue.
Just one other minor thing. I notice hover
was installed into $HOME/go/bin/hover
instead of path/to/env/bin/hover
. Not sure if it's due to how the install was invoked, or if it's just a "Go thing", but it'd be nice if it respected the given environment setup.
That is how go works.
OK, thanks.
I'm now running into another issue:
$ ~/go/bin/hover run --target lib/main.dart
[...]
💪 Building with sound null safety 💪
hover: Compiling 'go-flutter' and plugins
runtime/cgo
# runtime/cgo
[~]/.conda/envs/flutter_env/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: [~]/.cache/hover/engine/linux-debug_unopt/libflutter_engine.so: undefined reference to `memcpy@GLIBC_2.14'
[~]/.conda/envs/flutter_env/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: [~]/.cache/hover/engine/linux-debug_unopt/libflutter_engine.so: undefined reference to `getauxval@GLIBC_2.16'
[~]/.conda/envs/flutter_env/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: [~]/.cache/hover/engine/linux-debug_unopt/libflutter_engine.so: undefined reference to `clock_gettime@GLIBC_2.17'
collect2: error: ld returned 1 exit status
hover: Go build failed: exit status 2
Read this section of the hover readme:
Install these dependencies:
You need to make sure you have a C compiler.
The recommended C compiler are documented here.
You need to make sure you have dependencies of GLFW:
xcode-select --install
) for required headers and libraries.libgl1-mesa-dev xorg-dev
packages.This one is important: https://github.com/golang/go/wiki/InstallFromSource#install-c-tools
TLDR: Install with conda GLIBC share lib.
Installing
I have installed Go within a Conda environment, and and would like
hover
to be installed there as well. Conda was installed via the script to $HOME/.conda, dependencies installed withsudo apt install libgl1-mesa-dev xorg-dev
and the environment created withconda create -n my_env go
.OS: Kubuntu 20.04 LTS