Get the most out of your Centmin Mod LEMP stack
Become a Member

Beta Branch add devtoolset-7 for GCC 7.2.1 & Clang 4.0.1 support 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 5, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:11 PM
    Nginx 1.13.x
    MariaDB 5.5
    add devtoolset-7 for GCC 7.2.1 & Clang 4.0.1 support 123.09beta01

    - add GCC 7.2.1 & Clang 4.0.1 support for CentOS 7.x systems
    - GCC 7.2.1 enabled when persistent config variables set in /etc/centminmod/custom_config.inc prior to centmin.sh menu option 4 nginx recompiles
    Code (Text):
    CLANG='n'
    DEVTOOLSETSEVEN='y'
    NGINX_DEVTOOLSETGCC='y'
    

    - Clang 4.0.1 enabled when persistent config variables set in /etc/centminmod/custom_config.inc prior to centmin.sh menu option 4 nginx recompiles
    Code (Text):
    CLANG='y'
    CLANG_FOUR='y'
    NGINX_DEVTOOLSETGCC='y'
    


    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:11 PM
    Nginx 1.13.x
    MariaDB 5.5
    GCC 7.2.1 built Nginx
    Clang 4.0.1 built Nginx
    other examples CentOS 7.x - Beta Branch - Testing GCC 7.1/7.2 & Clang 4.0.1 SCL Yum Packages
     
  3. Sunka

    Sunka Active Member

    926
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +389
    Local Time:
    10:11 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    I belive it is OK?

     
  4. RoldanLT

    RoldanLT Well-Known Member

    3,940
    962
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,315
    Local Time:
    5:11 PM
    1.11
    10.2
    I should replace DEVTOOLSETSIX='y' with DEVTOOLSETSEVEN='y' right?
     
  5. RoldanLT

    RoldanLT Well-Known Member

    3,940
    962
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,315
    Local Time:
    5:11 PM
    1.11
    10.2
    From this:
    Code:
    CLANG='n'
    DEVTOOLSETSIX='y'
    NGINX_DEVTOOLSETGCC='y'
    GENERAL_DEVTOOLSETGCC='y'
    CRYPTO_DEVTOOLSETGCC='y'
    To this?
    Code:
    CLANG='n'
    DEVTOOLSETSEVEN='y'
    NGINX_DEVTOOLSETGCC='y'
    GENERAL_DEVTOOLSETGCC='y'
    CRYPTO_DEVTOOLSETGCC='y'
     
  6. Sunka

    Sunka Active Member

    926
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +389
    Local Time:
    10:11 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    yep

    Code (Text):
    NGINX_DEVTOOLSETGCC='y' # umjesto clang ide gcc kompilacija kod nginx
    DEVTOOLSETSEVEN='y' # ide 7.x verzija gcc kompilacije umjesto defaultne 5.x ili 6.x
    CLANG='n' # potrebno za gcc kompilaciju nginx
    CRYPTO_DEVTOOLSETGCC='y' # newer Intel GCC
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:11 PM
    Nginx 1.13.x
    MariaDB 5.5
    yup looks good
    yup :D

    FYI, CRYPTO_DEVTOOLSETGCC='y' is still some work in progress that you might not want to enable especially on cloud vps like linode where migrating between host vps nodes changes the cpu model/family.
     
    Last edited: Nov 6, 2017
    • Like Like x 1
    • Informative Informative x 1
  8. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:11 PM
    Nginx 1.13.x
    MariaDB 5.5
  9. RoldanLT

    RoldanLT Well-Known Member

    3,940
    962
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,315
    Local Time:
    5:11 PM
    1.11
    10.2
    Succeeded :)
    Code:
    nginx version: nginx/1.13.6
    built by gcc 7.2.1 20170829 (Red Hat 7.2.1-1) (GCC) 
    built with OpenSSL 1.1.0g  2 Nov 2017
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -march=native -DTCP_FASTOPEN=23 -g -O3 -fstack-protector-strong -flto -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations -gsplit-dwarf' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-compat --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --add-dynamic-module=../ngx_brotli --with-openssl=../openssl-1.1.0g --with-openssl-opt='enable-ec_nistp_64_gcc_128' --with-libatomic --with-pcre=../pcre-8.41 --with-pcre-jit --with-zlib=../zlib-1.2.11
    
    Thanks!
     
    • Like Like x 2
  10. RoldanLT

    RoldanLT Well-Known Member

    3,940
    962
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,315
    Local Time:
    5:11 PM
    1.11
    10.2
    Why is it this isn't default right now?
    devtoolset-7 for GCC 7.2.1 or Clang 4.0.1.

    Just curious :).
     
  11. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:11 PM
    Nginx 1.13.x
    MariaDB 5.5
    Stability first while testing as there's no idea if any older or specific cpu modules might not like the newer compilers for something and well it adds to initial install times too quite a bit compared to default system compiler.
     
    • Like Like x 2
  12. RoldanLT

    RoldanLT Well-Known Member

    3,940
    962
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,315
    Local Time:
    5:11 PM
    1.11
    10.2
    Both Clang and GCC has Intel CPU optimization?
     
  13. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:11 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1