Learn about Centmin Mod LEMP Stack today
Register Now

Featured Install Compiling Newer Versions of Clang 4.0

Discussion in 'Centmin Mod User Tutorials & Guides' started by Revenge, Jan 31, 2017.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    29,719
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    10:50 AM
    Nginx 1.13.x
    MariaDB 5.5
  2. eva2000

    eva2000 Administrator Staff Member

    29,719
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    10:50 AM
    Nginx 1.13.x
    MariaDB 5.5

    Clang 5 Release Retested



    Clang 5.0 final release was made, so retested my Clang 4.0.1 + 5.0 installer on my OVH i7 4790K 32GB server to compare with install times on my Intel Xeon E3-1270v1, 16GB server which took ~67 minutes to install. Should be faster due to i7 4790K's higher cpu clock speed 4.0-4.4GHZ versus E3-1270v1 @3.4-3.8Ghz clock speed. Would really like to see how Clang compiles on AMD EPYC servers one day :)

    From LLVM 5.0 Released With C++17 Support, Ryzen Scheduler, AMDGPU Vega & Much More - Phoronix

    Installed Clang 4.0.1 + 5.0 with GCC 6.2.1 Gold linker enabled.

    Took ~47 minutes to install so faster than E3-1270v1 time of ~67 minutes due to higher clock speed and new processor :)

    Code (Text):
    tail -1 /root/centminlogs/centminmod_llvm_090917-052357.log
    Total LLVM 4 & 5 Build Time: 2821.023094214 seconds
    


    Code (Text):
    /usr/local/bin/ld -v
    GNU ld (GNU Binutils) 2.29
    

    Code (Text):
    /usr/local/bin/ld.gold -v
    GNU gold (GNU Binutils 2.29) 1.14
    

    Code (Text):
    /usr/local/bin/ld.bfd -v
    GNU ld (GNU Binutils) 2.29
    

    Code (Text):
    /opt/sbin/llvm-release_50/bin/clang -v
    clang version 5.0.0 (branches/release_50 312855)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    InstalledDir: /opt/sbin/llvm-release_50/bin
    Found candidate GCC installation: /opt/rh/devtoolset-4/root/usr/lib/gcc/x86_64-redhat-linux/5.3.1
    Found candidate GCC installation: /opt/rh/devtoolset-6/root/usr/lib/gcc/x86_64-redhat-linux/6.2.1
    Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.2
    Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5
    Selected GCC installation: /opt/rh/devtoolset-6/root/usr/lib/gcc/x86_64-redhat-linux/6.2.1
    Candidate multilib: .;@m64
    Candidate multilib: 32;@m32
    Selected multilib: .;@m64
    

    Code (Text):
    /opt/sbin/llvm-release_40/bin/clang -v
    clang version 4.0.1 (branches/release_40 312854)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    InstalledDir: /opt/sbin/llvm-release_40/bin
    Found candidate GCC installation: /opt/rh/devtoolset-4/root/usr/lib/gcc/x86_64-redhat-linux/5.3.1
    Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.2
    Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5
    Selected GCC installation: /opt/rh/devtoolset-4/root/usr/lib/gcc/x86_64-redhat-linux/5.3.1
    Candidate multilib: .;@m64
    Candidate multilib: 32;@m32
    Selected multilib: .;@m64
    


    Centmin Mod 123.09beta01's Nginx 1.13.5 compiled with newly installed Clang 5.0
     
    • Like Like x 1
  3. eva2000

    eva2000 Administrator Staff Member

    29,719
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    10:50 AM
    Nginx 1.13.x
    MariaDB 5.5