LLVM 8 and Clang
Built LLVM 8 (moving towards Rust). The Patch.
In addition to lldb disabled in previous builds, this build disables LLVM's OpenMP. It is sad how portability-unfriendly code could be in LLVM, for no reason, even in trivial case like parsing command line options... After some my efforts, I think both can be ported, but both need so much to update. Still a lot of assumptions and quick hacks, countless things like #if defined(linux) || defined(freebsd) || defined(kfreebsd) ...
, which could be done by proper configure system like GNU autoconf or CMake.
Anyway:
clang++-8 gcd.cpp -stdlib=libc++ -o gcd-cpp -v clang version 8.0.1-4+dyson1 (tags/RELEASE_801/final) (llvm/llvm-toolchain-8.git de3800437459c8153299ae0e16ef827e8d000049) Target: x86_64-pc-solaris2.11 Thread model: posix InstalledDir: /usr/bin Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/4.9 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/4.9.1 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/6 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/6.3.0 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/9 Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/4.9 Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/4.9.1 Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/5 Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/5.2.1 Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/6 Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/6.3.0 Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/9 Selected GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/9 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Selected multilib: .;@m64 "/usr/lib/llvm-8/bin/clang" -cc1 -triple x86_64-pc-solaris2.11 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name gcd.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -v -resource-dir /usr/lib/llvm-8/lib/clang/8.0.1 -internal-isystem /usr/lib/llvm-8/bin/../include/c++/v1 -internal-isystem /usr/include/clang/8.0.1/include/ -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-8/lib/clang/8.0.1/include -internal-externc-isystem /usr/include/x86_64-illumos -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /home/pashev/gcd -ferror-limit 19 -fmessage-length 225 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/tmp/gcd-4b480d.o -x c++ gcd.cpp -faddrsig clang -cc1 version 8.0.1 based upon LLVM 8.0.1 default target x86_64-pc-solaris2.11 ignoring nonexistent directory "/usr/local/include" ignoring duplicate directory "/usr/include/clang/8.0.1/include" #include "..." search starts here: #include <...> search starts here: /usr/lib/llvm-8/bin/../include/c++/v1 /usr/include/clang/8.0.1/include /usr/include/x86_64-illumos /usr/include End of search list. "/usr/bin/x86_64-pc-solaris2.11-ld" --hash-style=both --build-id --eh-frame-hdr -m elf_x86_64_sol2 -o gcd-cpp /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/9/../../../x86_64-illumos/crt1.o /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/9/../../../x86_64-illumos/crti.o /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/9/../../../x86_64-illumos/values-Xa.o /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/9/crtbegin.o -L/usr/bin/../lib/gcc/x86_64-pc-solaris2.11/9 -L/usr/bin/../lib/gcc/x86_64-pc-solaris2.11/9/../../../x86_64-illumos -L/lib/x86_64-illumos -L/usr/lib/x86_64-illumos -L/usr/bin/../lib/gcc/x86_64-pc-solaris2.11/9/../../.. -L/usr/lib/llvm-8/bin/../lib -L/lib -L/usr/lib /var/tmp/gcd-4b480d.o -lc++ -lgcc_s -lc -lgcc -lm /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/9/crtend.o /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/9/../../../x86_64-illumos/crtn.o
Comments