添加 编译问题记录

payton 2024-06-24 08:20:12 -04:00
parent 7fd03cac65
commit 3ac1480d4d

@ -0,0 +1,52 @@
1. make install_cmake时apt源存在无效源导致make退出解决办法删除无效源即可
```
sudo add-apt-repository --remove ppa:george-edison55/cmake-3.x
sudo apt-get update
```
报错log
```
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/george-edison55/cmake-3.x/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
make[1]: *** [Makefile:2: all] Error 100
make[1]: Leaving directory '/home/payton/hunting/tools/cmake'
make: *** [Makefile:17: install_cmake] Error 2
```
2.github克隆仓库失败。主要是国内网络对GitHub不友好直接使用全局代理即可下载。log如下
```
payton@SER:~/hunting$ make compile_llvm
make -C tools/clang-tidy all
make[1]: Entering directory '/home/payton/hunting/tools/clang-tidy'
llvm-project not exist
Cloning into 'llvm-project'...
fatal: unable to access 'https://github.com/llvm/llvm-project.git/': GnuTLS recv error (-54): Error in the pull function.
/bin/sh: line 3: cd: llvm-project/: No such file or directory
/bin/sh: line 4: cd: build: No such file or directory
make[1]: *** [Makefile:2: all] Error 1
make[1]: Leaving directory '/home/payton/hunting/tools/clang-tidy'
make: *** [Makefile:20: compile_llvm] Error 2
```