Want more timely Centmin Mod News Updates?
Become a Member

gcc error

Discussion in 'Install & Upgrades or Pre-Install Questions' started by JJC84, Mar 28, 2018.

  1. JJC84

    JJC84 Premium Member Premium Member

    126
    45
    28
    Jan 31, 2018
    Ratings:
    +67
    Local Time:
    10:28 PM
    1.13.9
    10.1
    Centos 7 64bit
    123.09beta01
    nginx 1.13.10
    php 7.2.3
    codebase is up to date

    here is my custom_config.inc

    Code:
    DISABLE_IPVSIX='y'
    PHP_PGO='y'
    NGINXCOMPILE_FORMATSEC='n'
    PHP_TUNING='y'
    NGXDYNAMIC_NGXPAGESPEED='y'
    NGINX_MP4='y'                # Nginx MP4 Module http://nginx.org/en/docs/http/ngx_http_mp4_module.html
    NGINX_LIBBROTLI='y'          # https://github.com/google/ngx_brotli
    NGINX_PAGESPEED='y'          # Install ngx_pagespeed
    ##OPENSSLECDSA_PATCH='y'       # https://community.centminmod.com/posts/57725/
    ##OPENSSLECDHX_PATCH='y'       # https://community.centminmod.com/posts/57726/
    ##OPENSSLEQUALCIPHER_PATCH='y' # https://community.centminmod.com/posts/57916/
    CLOUDFLARE_PATCHSSL='y'     # set 'y' to implement Cloudflare's chacha20 patch https://github.com/cloudflare/sslconfig
    NGINX_DYNAMICTLS='y'        # set 'y' and recompile nginx https://blog.cloudflare.com/optimizing-tls-over-tcp-to-reduce-latency/
    LIBRESSL_SWITCH='n'         # if set to 'y' it overrides OpenSSL as the default static compiled option for Nginx server
    
    getting this error
     
  2. eva2000

    eva2000 Administrator Staff Member

    33,688
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    1:28 PM
    Nginx 1.13.x
    MariaDB 5.5
    Nginx recompile via centmin.sh menu option 4 ? If so, to troubleshoot, you need to check the full nginx upgrade log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the nginx_upgrade.log log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    also what's output of
    Code (Text):
    nginx -t

    when you run centmin.sh menu option 4 there's a nginx upgrade log timestamped at /root/centminlogs

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep nginx_upgrade
    -rw-r--r--  1 root root 3.2M Oct 11 15:55 centminmod_1.2.3-eva2000.09.001_111016-155345_nginx_upgrade.log
    -rw-r--r--  1 root root 672K Oct 11 22:06 centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    So the last nginx upgrade log was named centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log and located at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then use cat command to output the contents of that log

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share. If your SSH client's scroll buffer isn't large enough using cat might not output the entire log file contents, so you may need to download the log and use local text editor to open and copy and paste.

    so only need content of one specific log, in this case most recent nginx_upgrade.log log
     
  3. JJC84

    JJC84 Premium Member Premium Member

    126
    45
    28
    Jan 31, 2018
    Ratings:
    +67
    Local Time:
    10:28 PM
    1.13.9
    10.1
  4. eva2000

    eva2000 Administrator Staff Member

    33,688
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    1:28 PM
    Nginx 1.13.x
    MariaDB 5.5
    if you remove all /etc/centminmod/custom_config.inc options does centmin.sh menu option 4 work ?

    remove these
    Code (Text):
    DISABLE_IPVSIX='y'
    PHP_PGO='y'
    NGINXCOMPILE_FORMATSEC='n'
    PHP_TUNING='y'
    NGXDYNAMIC_NGXPAGESPEED='y'
    NGINX_MP4='y'                # Nginx MP4 Module http://nginx.org/en/docs/http/ngx_http_mp4_module.html
    NGINX_LIBBROTLI='y'          # https://github.com/google/ngx_brotli
    NGINX_PAGESPEED='y'          # Install ngx_pagespeed
    ##OPENSSLECDSA_PATCH='y'       # https://community.centminmod.com/posts/57725/
    ##OPENSSLECDHX_PATCH='y'       # https://community.centminmod.com/posts/57726/
    ##OPENSSLEQUALCIPHER_PATCH='y' # https://community.centminmod.com/posts/57916/
    CLOUDFLARE_PATCHSSL='y'     # set 'y' to implement Cloudflare's chacha20 patch https://github.com/cloudflare/sslconfig
    NGINX_DYNAMICTLS='y'        # set 'y' and recompile nginx https://blog.cloudflare.com/optimizing-tls-over-tcp-to-reduce-latency/
    LIBRESSL_SWITCH='n'         # if set to 'y' it overrides OpenSSL as the default static compiled option for Nginx server
    
     
  5. eva2000

    eva2000 Administrator Staff Member

    33,688
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    1:28 PM
    Nginx 1.13.x
    MariaDB 5.5
    not able to reproduce the issue as with persistent config set to below it compiles so try that first
    Code (Text):
    NGXDYNAMIC_NGXPAGESPEED='y'
    NGINX_PAGESPEED='y'
    NGINX_MP4='y'
    NGXDYNAMIC_BROTLI='y'
    NGINX_LIBBROTLI='y'
    CLOUDFLARE_PATCHSSL='y'
    NGINX_DYNAMICTLS='y'
    PHP_PGO='y'
    

    wonder if it's your server's very old cpu architect and GCC 7.2.1 compatibility as cpu is detected as very old Intel Nocona architecture
    Code (Text):
    2018-03-28 03:59:52 g++ (GCC) 7.2.1 20170829 (Red Hat 7.2.1-1)
    2018-03-28 03:59:52 Copyright (C) 2017 Free Software Foundation, Inc.
    2018-03-28 03:59:52 This is free software; see the source for copying conditions.  There is NO
    2018-03-28 03:59:52 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    2018-03-28 03:59:52
    2018-03-28 03:59:52 /opt/rh/devtoolset-7/root/usr/bin/gcc
    2018-03-28 03:59:52 /opt/rh/devtoolset-7/root/usr/bin/g++
    2018-03-28 03:59:52   -m64                                [enabled]
    2018-03-28 03:59:52   -m80387                             [enabled]
    2018-03-28 03:59:52   -m96bit-long-double                 [enabled]
    2018-03-28 03:59:52   -malign-stringops                   [enabled]
    2018-03-28 03:59:52   -march=                             nocona
    2018-03-28 03:59:52   -mcx16                              [enabled]
    2018-03-28 03:59:52   -mfancy-math-387                    [enabled]
    2018-03-28 03:59:52   -mfentry                            [enabled]
    2018-03-28 03:59:52   -mfp-ret-in-387                     [enabled]
    2018-03-28 03:59:52   -mfxsr                              [enabled]
    2018-03-28 03:59:52   -mglibc                             [enabled]
    2018-03-28 03:59:52   -mhard-float                        [enabled]
    2018-03-28 03:59:52   -mieee-fp                           [enabled]
    2018-03-28 03:59:52   -mlong-double-80                    [enabled]
    2018-03-28 03:59:52   -mmmx                               [enabled]
    2018-03-28 03:59:52   -mno-sse4                           [enabled]
    2018-03-28 03:59:52   -mpush-args                         [enabled]
    2018-03-28 03:59:52   -mred-zone                          [enabled]
    2018-03-28 03:59:52   -msahf                              [enabled]
    2018-03-28 03:59:52   -msse                               [enabled]
    2018-03-28 03:59:52   -msse2                              [enabled]
    2018-03-28 03:59:52   -msse3                              [enabled]
    2018-03-28 03:59:52   -mstackrealign                      [enabled]
    2018-03-28 03:59:52   -mtls-direct-seg-refs               [enabled]
    2018-03-28 03:59:52   -mtune-ctrl=
    2018-03-28 03:59:52   -mtune=                             nocona
    


    what happens if you set in persistent config these 3 values too ?
    Code (Text):
    DEVTOOLSETSIX='y'
    DEVTOOLSETSEVEN='n'
    NGINX_DEVTOOLSETGCC='y'
    
     
  6. JJC84

    JJC84 Premium Member Premium Member

    126
    45
    28
    Jan 31, 2018
    Ratings:
    +67
    Local Time:
    10:28 PM
    1.13.9
    10.1
    I rolled it back but I can go ahead and throw the backup I have from right before this happened so I can check for you. Strange thing is I couldn’t get the formatsec flags to disappear even setting the formatsec=n
     
  7. JJC84

    JJC84 Premium Member Premium Member

    126
    45
    28
    Jan 31, 2018
    Ratings:
    +67
    Local Time:
    10:28 PM
    1.13.9
    10.1
    Until I get a new server I’m going to use php 7.1.x and gcc 6.x.x
     
  8. eva2000

    eva2000 Administrator Staff Member

    33,688
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    1:28 PM
    Nginx 1.13.x
    MariaDB 5.5
    how was the persistent config file /etc/centminmod/custom_config.inc created ? could be incorrect file coding with your text editor ? try deleting /etc/centminmod/custom_config.inc and re-creating it via command shortcut = customconfig which invokes nano text editor where you can copy and paste in the variables and hit ctrl+x to exit and save file.
     
    • Informative Informative x 1
  9. JJC84

    JJC84 Premium Member Premium Member

    126
    45
    28
    Jan 31, 2018
    Ratings:
    +67
    Local Time:
    10:28 PM
    1.13.9
    10.1
    Probably going to spin up a vps on upcloud when I get home.
     
  10. JJC84

    JJC84 Premium Member Premium Member

    126
    45
    28
    Jan 31, 2018
    Ratings:
    +67
    Local Time:
    10:28 PM
    1.13.9
    10.1
    That’s probably it I used sublime text and vim. Both I believe are using utc8
     
  11. JJC84

    JJC84 Premium Member Premium Member

    126
    45
    28
    Jan 31, 2018
    Ratings:
    +67
    Local Time:
    10:28 PM
    1.13.9
    10.1
    I did run into errors before using text editor in my MacBook because it comes initially configured to use rich text.
     
  12. JJC84

    JJC84 Premium Member Premium Member

    126
    45
    28
    Jan 31, 2018
    Ratings:
    +67
    Local Time:
    10:28 PM
    1.13.9
    10.1
    Well after playing around for quite some time earlier today I was unable to find a backup image that would let me reproduce the bug. I'm using the betainstaller-latest.sh script and I have updated the kernel to 4.x with no problems so far. I honestly am a bit baffled but that's ok I suppose... :cyclops:
     
    • Informative Informative x 1
  13. eva2000

    eva2000 Administrator Staff Member

    33,688
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    1:28 PM
    Nginx 1.13.x
    MariaDB 5.5
    thanks for the update anyway :)
     
  14. JJC84

    JJC84 Premium Member Premium Member

    126
    45
    28
    Jan 31, 2018
    Ratings:
    +67
    Local Time:
    10:28 PM
    1.13.9
    10.1
    Hello. I was able to recreate the bug and I resolved it by deleting my custom_config file and rewriting it without any copy/paste. That was it, so you were right. I think somehow it wasn't utf-8 because maybe I used something besides sublime like notepad or text editor was set to rtf files instead of unicode. Anyway the script is all good and it was user error.
     
    • Like Like x 1
  15. eva2000

    eva2000 Administrator Staff Member

    33,688
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    1:28 PM
    Nginx 1.13.x
    MariaDB 5.5
    cheers thanks for confirmation :)
     
..