Category : llvm

I’m trying to create a docker image where the llvm-toolset-7 is automatically enabled when the image is run. The context is this image, since it extends from rustembedded/cross:x86_64-unknown-linux-gnu, is to cross-compile to linux. Since for my purposes I need a recent version of llvm, I need the toolset to be enabled by default when I ..

Read more

I built llvm+clang+lld from source code in a docker container. % CC=$HOME/toolchains/bin/gcc CXX=$HOME/toolchains/bin/g++ cmake …/llvm -G “Unix Makefiles” -DLLVM_ENABLE_PROJECTS=“clang;lld” -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_TARGETS_TO_BUILD=“X86” -DCMAKE_CXX_LINK_FLAGS="-Wl,-rpath,$HOME/toolchains/lib64 -L$HOME/toolchains/lib64" % make -j && sudo make install Then I try to compile a hello world program with clang, and I got the error message: // test.c #include <stdio.h> int main(int argc, char** ..

Read more