我正在寻找一些帮助,以解决在使用 llvm 的 Coreutils 配置命令期间弹出的错误的解决方案。
我使用命令:
CC=wllvm ../configure --disable-nls CFLAGS="-g -O1 -Xclang -disable-llvm-passes -D__NO_STRING_INLINES -D_FORTIFY_SOURCE=0 -U__OPTIMIZE__"
并收到错误:
checking whether the compiler works...no
configure: error: in '/home/abhinath/coreutils/obj-llvm
configure: error: c compiler cannot create executables
我已经export LLVM_COMPILER=clang
事先运行了命令
我已经使用命令在我的 Ubuntu 操作系统上安装并设置了clang-6.0和clang++-6.0
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-6.0 1000
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-6.0 1000
sudo update-alternatives --config clang
sudo update-alternatives --config clang++
可以在此处查看生成错误的 config.log 文件,该文件还显示
wllvm: command not found
:
https://drive.google.com/open?id=1ExbLhT2tWRyGSAb67mAgu6D9y3AknZ2v