build-llvm.sh Error
dokhanchi opened this issue · 2 comments
Hello Jonathan,
I am new in LLVM.
Using Ubuntu 20.04, it seems that the build-llvm.sh does not download the llvm-project properly:
bash build-llvm.sh
~/llvm ~/git/lbd/lbdex/install_llvm
Cloning into 'llvm-project'...
fatal: unable to connect to github.com:
github.com[0: 192.30.255.113]: errno=Connection timed out
build-llvm.sh: line 11: cd: llvm-project: No such file or directory
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
cp: cannot stat 'llvm-project/clang': No such file or directory
cp: cannot stat 'llvm-projHello Jonathan,
I am new in LLVM.
Using Ubuntu 20.04, it seems that the build-llvm.sh does not download the llvm-project properly:
bash build-llvm.sh
~/llvm ~/git/lbd/lbdex/install_llvm
Cloning into 'llvm-project'...
fatal: unable to connect to github.com:
github.com[0: 192.30.255.113]: errno=Connection timed out
build-llvm.sh: line 11: cd: llvm-project: No such file or directory
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
cp: cannot stat 'llvm-project/clang': No such file or directory
cp: cannot stat 'llvm-project/llvm': No such file or directory
cp: cannot stat 'llvm-project/compiler-rt': No such file or directory
~/llvm/release/build ~ ~/git/lbd/lbdex/install_llvm
OS = Linux
CMake Error: The source directory "/home//llvm/release/llvm" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
ninja: error: loading 'build.ninja': No such file or directory
~ ~/git/lbd/lbdex/install_llvm
~/git/lbd/lbdex/install_llvm
Please remember to add ${HOME}/llvm/release/bin to variable ${PATH} to your environment for clang++, clang.ect/llvm': No such file or directory
cp: cannot stat 'llvm-project/compiler-rt': No such file or directory
~/llvm/release/build ~ ~/git/lbd/lbdex/install_llvm
OS = Linux
CMake Error: The source directory "/home//llvm/release/llvm" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
ninja: error: loading 'build.ninja': No such file or directory
~ ~/git/lbd/lbdex/install_llvm
~/git/lbd/lbdex/install_llvm
Please remember to add ${HOME}/llvm/release/bin to variable ${PATH} to your environment for clang++, clang.
It seems that you cannot connect to the github.com
.
You may check this.
in the build-llvm script, the get_llvm is commented out
also you need to first create ~/llvm for the defaults to work