./bootstrap-orbit.sh fails if gcc isn't available on path with version suffix #4435
Unanswered
SoftwareApe
asked this question in
Q&A
Replies: 1 comment
-
After quite a lot of trial and error I was able to make it work with the following { pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run
nativeBuildInputs = [
pkgs.buildPackages.cmake
pkgs.buildPackages.clang_9
pkgs.buildPackages.gcc10
pkgs.buildPackages.libGL
pkgs.buildPackages.libGLU
pkgs.buildPackages.x11
pkgs.buildPackages.icu
pkgs.buildPackages.libxml2
pkgs.buildPackages.qt5.full
];
shellHook = ''
export LD_LIBRARY_PATH="/run/opengl-driver/lib:/run/opengl-driver-32/lib:$LD_LIBRARY_PATH"
ln --force -s $(which gcc) ~/.local/bin/gcc-10
ln --force -s $(which g++) ~/.local/bin/g++-10
'';
} I now create symlinks that are on my path. Note that I still needed to remove the -Werror=all option for this to build, as mentioned in #2135 . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
E.g. installing in nix-shell you have gcc version 10, but not gcc-10 or g++-10 available.
I'm trying to install in nix-shell, because the installer doesn't accept the Ubuntu 18.04. cmake version (3.10.2), see #2133
However the installer seems to expect these suffixed versions:
Then later
even when you do
Beta Was this translation helpful? Give feedback.
All reactions