Welcome to Centmin Mod Community
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

    53,247
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    10:18 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    53,247
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    10:18 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    2:18 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    I belive it is OK?

     
  4. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    8:18 PM
    Mainline
    10.2
    I should replace DEVTOOLSETSIX='y' with DEVTOOLSETSEVEN='y' right?
     
  5. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    8:18 PM
    Mainline
    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 Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    2:18 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    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

    53,247
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    10:18 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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
  8. eva2000

    eva2000 Administrator Staff Member

    53,247
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    10:18 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  9. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    8:18 PM
    Mainline
    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!
     
  10. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    8:18 PM
    Mainline
    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

    53,247
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    10:18 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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.
     
  12. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    8:18 PM
    Mainline
    10.2
    Both Clang and GCC has Intel CPU optimization?
     
  13. eva2000

    eva2000 Administrator Staff Member

    53,247
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    10:18 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+