tce-load -i libffi-dev python-dev cd llvm-3.7.0.src tar -xf ../cfe-3.7.0.src.tar.xz -C tools tar -xf ../compiler-rt-3.7.0.src.tar.xz -C projects mv tools/cfe-3.7.0.src tools/clang mv projects/compiler-rt-3.7.0.src projects/compiler-rt mkdir build cd build CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ../configure --prefix=/usr/local -disable-static --localstatedir=/var --datarootdir=/usr/local/share --enable-libffi --enable-optimized --enable-shared --enable-targets=host,r600,amdgpu --disable-assertions --docdir=/usr/local/share/doc/llvm-3.7.0 find . -name Makefile.config -type f -exec sed -i 's/-O3//g' {} \; make [real 2h 0m 42s] make install sudo chmod 644 /usr/local/lib/libLLVM*.a sudo chmod 644 /usr/local/lib/libLTO*.a sudo chmod 644 /usr/local/lib/libclang*.a sudo install -dm755 /usr/local/lib/clang-analyzer for prog in scan-build scan-view do cp -rf ../tools/clang/tools/$prog /usr/local/lib/clang-analyzer/ ln -sf ../lib/clang-analyzer/$prog/$prog /usr/local/bin/ done unset prog sudo ln -sf /usr/local/bin/clang /usr/local/lib/clang-analyzer/scan-build/ config.log ... clang: warning: optimization flag '-fuse-linker-plugin' is not supported clang: warning: argument unused during compilation: '-fuse-linker-plugin' /usr/local/bin/ld: /tmp/tcloop/clang/usr/local/bin/../lib/LLVMgold.so: error loading plugin: /tmp/tcloop/clang/usr/local/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory