Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xgboost install failed #4933

Closed
connect2robiul opened this issue Oct 11, 2019 · 18 comments
Closed

xgboost install failed #4933

connect2robiul opened this issue Oct 11, 2019 · 18 comments

Comments

@connect2robiul
Copy link

Mac OS Catalina .

!pip3 install xgboost 

Collecting xgboost
  Using cached https://files.pythonhosted.org/packages/96/84/4e2cae6247f397f83d8adc5c2a2a0c5d7d790a14a4c7400ff6574586f589/xgboost-0.90.tar.gz
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-aq12k5rq/xgboost/setup.py'"'"'; __file__='"'"'/private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-aq12k5rq/xgboost/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: /private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-aq12k5rq/xgboost/
    Complete output (1133 lines):
    ++ pwd
    + oldpath=/private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-aq12k5rq/xgboost
    + cd ./xgboost/
    + echo darwin19
    + grep -q darwin
    + LIB_XGBOOST=libxgboost.dylib
    + which g++-5
    + which g++-7
    /usr/local/bin/g++-7
    + export CC=gcc-7
    + CC=gcc-7
    + export CXX=g++-7
    + CXX=g++-7
    + make clean
    Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
    rm -f -rf build build_plugin lib bin *~ */*~ */*/*~ */*/*/*~ */*.o */*/*.o */*/*/*.o #xgboost
    rm -f -rf build_tests *.gcov tests/cpp/xgboost_test
    if [ -d "R-package/src" ]; then \
    		cd R-package/src; \
    		rm -f -rf rabit src include dmlc-core amalgamation *.so *.dll; \
    		cd /private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-aq12k5rq/xgboost/xgboost; \
    	fi
    + make lib/libxgboost.dylib -j4
    Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/logging.o src/logging.cc >build/logging.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/c_api/c_api.o src/c_api/c_api.cc >build/c_api/c_api.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/c_api/c_api_error.o src/c_api/c_api_error.cc >build/c_api/c_api_error.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/learner.o src/learner.cc >build/learner.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/c_api/c_api_error.cc -o build/c_api/c_api_error.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/logging.cc -o build/logging.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/c_api/c_api.cc -o build/c_api/c_api.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/learner.cc -o build/learner.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/common/common.o src/common/common.cc >build/common/common.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/common/common.cc -o build/common/common.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/common/hist_util.o src/common/hist_util.cc >build/common/hist_util.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/common/hist_util.cc -o build/common/hist_util.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/common/host_device_vector.o src/common/host_device_vector.cc >build/common/host_device_vector.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/common/host_device_vector.cc -o build/common/host_device_vector.o
    In file included from src/common/hist_util.cc:11:0:
    src/common/./column_matrix.h: In member function 'void xgboost::common::ColumnMatrix::Init(const xgboost::common::GHistIndexMatrix&, double)':
    src/common/./column_matrix.h:83:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (bst_uint fid = 0; fid < nfeature; ++fid) {
                                ~~~~^~~~~~~~~~
    src/common/./column_matrix.h:122:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (bst_uint fid = 0; fid < nfeature; ++fid) {
                                ~~~~^~~~~~~~~~
    src/common/hist_util.cc: In member function 'void xgboost::common::GHistIndexMatrix::Init(xgboost::DMatrix*, int)':
    src/common/hist_util.cc:313:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
           for (size_t tid = 0; tid < nthread; ++tid) {
                                ~~~~^~~~~~~~~
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/data/data.o src/data/data.cc >build/data/data.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/data/data.cc -o build/data/data.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/data/simple_csr_source.o src/data/simple_csr_source.cc >build/data/simple_csr_source.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/data/simple_csr_source.cc -o build/data/simple_csr_source.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/data/simple_dmatrix.o src/data/simple_dmatrix.cc >build/data/simple_dmatrix.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/data/simple_dmatrix.cc -o build/data/simple_dmatrix.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/data/sparse_page_dmatrix.o src/data/sparse_page_dmatrix.cc >build/data/sparse_page_dmatrix.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/data/sparse_page_raw_format.o src/data/sparse_page_raw_format.cc >build/data/sparse_page_raw_format.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/data/sparse_page_dmatrix.cc -o build/data/sparse_page_dmatrix.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/data/sparse_page_raw_format.cc -o build/data/sparse_page_raw_format.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/data/sparse_page_source.o src/data/sparse_page_source.cc >build/data/sparse_page_source.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/data/sparse_page_source.cc -o build/data/sparse_page_source.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/data/sparse_page_writer.o src/data/sparse_page_writer.cc >build/data/sparse_page_writer.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/data/sparse_page_writer.cc -o build/data/sparse_page_writer.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/gbm/gblinear.o src/gbm/gblinear.cc >build/gbm/gblinear.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/gbm/gblinear.cc -o build/gbm/gblinear.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/gbm/gbm.o src/gbm/gbm.cc >build/gbm/gbm.d
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:110:0,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:443:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:449:39: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     setiopolicy_np(int, int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:128:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:52:74: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int   posix_memalign(void **__memptr, size_t __alignment, size_t __size) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0);
                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:270:53: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void  arc4random_buf(void * __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:273:46: error: expected initializer before '__OSX_AVAILABLE_STARTING'
       arc4random_uniform(uint32_t __upper_bound) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:292:45: error: expected initializer before '__OSX_AVAILABLE_BUT_DEPRECATED_MSG'
     int  daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:325:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:333:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/gbm/gbm.cc -o build/gbm/gbm.o
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:79:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:78,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/stdio.h:39:56: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     renameat(int, const char *, int, const char *) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:370:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int dprintf(int, const char * __restrict, ...) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:371:79: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int vdprintf(int, const char * __restrict, __gnuc_va_list) __printflike(2, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:372:123: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getdelim(char ** __restrict __linep, size_t * __restrict __linecapp, int __delimiter, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:373:105: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getline(char ** __restrict __linep, size_t * __restrict __linecapp, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:197:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpcpy(wchar_t * __restrict, const wchar_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:198:76: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpncpy(wchar_t * __restrict, const wchar_t * __restrict, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:199:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcsdup(const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:200:54: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcscasecmp(const wchar_t *, const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:201:65: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcsncasecmp(const wchar_t *, const wchar_t *, size_t n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:202:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t  wcsnlen(const wchar_t *, size_t) __pure __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:215:47: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *fgetwln(FILE * __restrict, size_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from dmlc-core/include/dmlc/./base.h:206:0,
                     from dmlc-core/include/dmlc/parameter.h:25,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:234:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:244:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:249:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:255:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:262:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:268:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    In file included from dmlc-core/include/dmlc/././logging.h:21:0,
                     from dmlc-core/include/dmlc/./json.h:24,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:35:27: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int backtrace(void**,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:41:44: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char** backtrace_symbols(void* const*,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:42:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void backtrace_symbols_fd(void* const*,int,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from dmlc-core/include/dmlc/./json.h:24:0,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    dmlc-core/include/dmlc/././logging.h: In function 'std::__cxx11::string dmlc::StackTrace(size_t, size_t)':
    dmlc-core/include/dmlc/././logging.h:71:17: error: 'backtrace' was not declared in this scope
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:71:17: note: suggested alternative: 'StackTrace'
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
                     StackTrace
    dmlc-core/include/dmlc/././logging.h:73:17: error: 'backtrace_symbols' was not declared in this scope
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:73:17: note: suggested alternative: 'stacktrace_os'
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
                     stacktrace_os
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h: At global scope:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:131:62: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char    *stpncpy(char *__dst, const char *__src, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:132:45: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char *strndup(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:133:48: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t   strnlen(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:155:94: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void *memmem(const void *__big, size_t __big_len, const void *__little, size_t __little_len) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:156:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern4(void *__b, const void *__pattern4, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:157:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern8(void *__b, const void *__pattern8, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:158:77: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern16(void *__b, const void *__pattern16, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:180:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:85:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:86:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:87:15: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  fls(int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                   ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:88:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:89:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from include/xgboost/./../../src/common/span.h:34:0,
                     from include/xgboost/./data.h:20,
                     from include/xgboost/gbm.h:18,
                     from src/gbm/gblinear.cc:10:
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:61:11: error: '::imaxabs' has not been declared
       using ::imaxabs;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:62:11: error: '::imaxdiv' has not been declared
       using ::imaxdiv;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:68:11: error: '::strtoimax' has not been declared
       using ::strtoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:69:11: error: '::strtoumax' has not been declared
       using ::strtoumax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:72:11: error: '::wcstoimax' has not been declared
       using ::wcstoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:73:11: error: '::wcstoumax' has not been declared
       using ::wcstoumax;
               ^~~~~~~~~
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/gbm/gbtree.o src/gbm/gbtree.cc >build/gbm/gbtree.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/gbm/gbtree.cc -o build/gbm/gbtree.o
    make: *** [build/gbm/gblinear.o] Error 1
    make: *** Waiting for unfinished jobs....
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:110:0,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:443:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:449:39: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     setiopolicy_np(int, int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:128:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:52:74: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int   posix_memalign(void **__memptr, size_t __alignment, size_t __size) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0);
                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:270:53: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void  arc4random_buf(void * __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:273:46: error: expected initializer before '__OSX_AVAILABLE_STARTING'
       arc4random_uniform(uint32_t __upper_bound) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:292:45: error: expected initializer before '__OSX_AVAILABLE_BUT_DEPRECATED_MSG'
     int  daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:325:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:333:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:79:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:78,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/stdio.h:39:56: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     renameat(int, const char *, int, const char *) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:370:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int dprintf(int, const char * __restrict, ...) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:371:79: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int vdprintf(int, const char * __restrict, __gnuc_va_list) __printflike(2, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:372:123: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getdelim(char ** __restrict __linep, size_t * __restrict __linecapp, int __delimiter, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:373:105: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getline(char ** __restrict __linep, size_t * __restrict __linecapp, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:197:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpcpy(wchar_t * __restrict, const wchar_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:198:76: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpncpy(wchar_t * __restrict, const wchar_t * __restrict, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:199:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcsdup(const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:200:54: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcscasecmp(const wchar_t *, const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:201:65: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcsncasecmp(const wchar_t *, const wchar_t *, size_t n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:202:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t  wcsnlen(const wchar_t *, size_t) __pure __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:215:47: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *fgetwln(FILE * __restrict, size_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from dmlc-core/include/dmlc/./base.h:206:0,
                     from dmlc-core/include/dmlc/parameter.h:25,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:234:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:244:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:249:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:255:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:262:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:268:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    In file included from dmlc-core/include/dmlc/././logging.h:21:0,
                     from dmlc-core/include/dmlc/./json.h:24,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:35:27: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int backtrace(void**,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:41:44: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char** backtrace_symbols(void* const*,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:42:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void backtrace_symbols_fd(void* const*,int,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from dmlc-core/include/dmlc/./json.h:24:0,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    dmlc-core/include/dmlc/././logging.h: In function 'std::__cxx11::string dmlc::StackTrace(size_t, size_t)':
    dmlc-core/include/dmlc/././logging.h:71:17: error: 'backtrace' was not declared in this scope
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:71:17: note: suggested alternative: 'StackTrace'
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
                     StackTrace
    dmlc-core/include/dmlc/././logging.h:73:17: error: 'backtrace_symbols' was not declared in this scope
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:73:17: note: suggested alternative: 'stacktrace_os'
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
                     stacktrace_os
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h: At global scope:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:131:62: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char    *stpncpy(char *__dst, const char *__src, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:132:45: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char *strndup(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:133:48: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t   strnlen(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:155:94: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void *memmem(const void *__big, size_t __big_len, const void *__little, size_t __little_len) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:156:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern4(void *__b, const void *__pattern4, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:157:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern8(void *__b, const void *__pattern8, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:158:77: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern16(void *__b, const void *__pattern16, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:180:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:85:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:86:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:87:15: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  fls(int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                   ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:88:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:89:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/mach_init.h:62:0,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/mach.h:69,
                     from dmlc-core/include/dmlc/timer.h:19,
                     from src/gbm/gbtree.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/vm_page_size.h:59:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     extern  vm_size_t       vm_kernel_page_size     __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/vm_page_size.h:60:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     extern  vm_size_t       vm_kernel_page_mask     __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/vm_page_size.h:61:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     extern  int             vm_kernel_page_shift    __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from include/xgboost/./../../src/common/span.h:34:0,
                     from include/xgboost/./data.h:20,
                     from include/xgboost/gbm.h:18,
                     from src/gbm/gbtree.cc:11:
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:61:11: error: '::imaxabs' has not been declared
       using ::imaxabs;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:62:11: error: '::imaxdiv' has not been declared
       using ::imaxdiv;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:68:11: error: '::strtoimax' has not been declared
       using ::strtoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:69:11: error: '::strtoumax' has not been declared
       using ::strtoumax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:72:11: error: '::wcstoimax' has not been declared
       using ::wcstoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:73:11: error: '::wcstoumax' has not been declared
       using ::wcstoumax;
               ^~~~~~~~~
    make: *** [build/gbm/gbtree.o] Error 1
    + echo -----------------------------
    -----------------------------
    + echo 'Building multi-thread xgboost failed'
    Building multi-thread xgboost failed
    + echo 'Start to build single-thread xgboost'
    Start to build single-thread xgboost
    + make clean
    Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
    rm -f -rf build build_plugin lib bin *~ */*~ */*/*~ */*/*/*~ */*.o */*/*.o */*/*/*.o #xgboost
    rm -f -rf build_tests *.gcov tests/cpp/xgboost_test
    if [ -d "R-package/src" ]; then \
    		cd R-package/src; \
    		rm -f -rf rabit src include dmlc-core amalgamation *.so *.dll; \
    		cd /private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-aq12k5rq/xgboost/xgboost; \
    	fi
    + make lib/libxgboost.dylib -j4 USE_OPENMP=0
    Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/logging.o src/logging.cc >build/logging.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api.o src/c_api/c_api.cc >build/c_api/c_api.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api_error.o src/c_api/c_api_error.cc >build/c_api/c_api_error.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/learner.o src/learner.cc >build/learner.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/c_api/c_api_error.cc -o build/c_api/c_api_error.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/logging.cc -o build/logging.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/c_api/c_api.cc -o build/c_api/c_api.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/learner.cc -o build/learner.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/common/common.o src/common/common.cc >build/common/common.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/common/common.cc -o build/common/common.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/common/hist_util.o src/common/hist_util.cc >build/common/hist_util.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/common/hist_util.cc -o build/common/hist_util.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/common/host_device_vector.o src/common/host_device_vector.cc >build/common/host_device_vector.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/common/host_device_vector.cc -o build/common/host_device_vector.o
    In file included from src/common/hist_util.cc:11:0:
    src/common/./column_matrix.h: In member function 'void xgboost::common::ColumnMatrix::Init(const xgboost::common::GHistIndexMatrix&, double)':
    src/common/./column_matrix.h:83:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (bst_uint fid = 0; fid < nfeature; ++fid) {
                                ~~~~^~~~~~~~~~
    src/common/./column_matrix.h:122:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (bst_uint fid = 0; fid < nfeature; ++fid) {
                                ~~~~^~~~~~~~~~
    src/common/hist_util.cc: In member function 'void xgboost::common::GHistIndexMatrix::Init(xgboost::DMatrix*, int)':
    src/common/hist_util.cc:313:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
           for (size_t tid = 0; tid < nthread; ++tid) {
                                ~~~~^~~~~~~~~
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/data/data.o src/data/data.cc >build/data/data.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/data/data.cc -o build/data/data.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/data/simple_csr_source.o src/data/simple_csr_source.cc >build/data/simple_csr_source.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/data/simple_csr_source.cc -o build/data/simple_csr_source.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/data/simple_dmatrix.o src/data/simple_dmatrix.cc >build/data/simple_dmatrix.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/data/simple_dmatrix.cc -o build/data/simple_dmatrix.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/data/sparse_page_dmatrix.o src/data/sparse_page_dmatrix.cc >build/data/sparse_page_dmatrix.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/data/sparse_page_raw_format.o src/data/sparse_page_raw_format.cc >build/data/sparse_page_raw_format.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/data/sparse_page_dmatrix.cc -o build/data/sparse_page_dmatrix.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/data/sparse_page_raw_format.cc -o build/data/sparse_page_raw_format.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/data/sparse_page_source.o src/data/sparse_page_source.cc >build/data/sparse_page_source.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/data/sparse_page_source.cc -o build/data/sparse_page_source.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/data/sparse_page_writer.o src/data/sparse_page_writer.cc >build/data/sparse_page_writer.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/data/sparse_page_writer.cc -o build/data/sparse_page_writer.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/gbm/gblinear.o src/gbm/gblinear.cc >build/gbm/gblinear.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/gbm/gblinear.cc -o build/gbm/gblinear.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/gbm/gbm.o src/gbm/gbm.cc >build/gbm/gbm.d
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:110:0,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:443:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:449:39: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     setiopolicy_np(int, int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:128:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:52:74: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int   posix_memalign(void **__memptr, size_t __alignment, size_t __size) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0);
                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:270:53: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void  arc4random_buf(void * __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:273:46: error: expected initializer before '__OSX_AVAILABLE_STARTING'
       arc4random_uniform(uint32_t __upper_bound) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:292:45: error: expected initializer before '__OSX_AVAILABLE_BUT_DEPRECATED_MSG'
     int  daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:325:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:333:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:79:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:78,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/stdio.h:39:56: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     renameat(int, const char *, int, const char *) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:370:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int dprintf(int, const char * __restrict, ...) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:371:79: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int vdprintf(int, const char * __restrict, __gnuc_va_list) __printflike(2, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:372:123: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getdelim(char ** __restrict __linep, size_t * __restrict __linecapp, int __delimiter, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:373:105: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getline(char ** __restrict __linep, size_t * __restrict __linecapp, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:197:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpcpy(wchar_t * __restrict, const wchar_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:198:76: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpncpy(wchar_t * __restrict, const wchar_t * __restrict, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:199:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcsdup(const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:200:54: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcscasecmp(const wchar_t *, const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:201:65: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcsncasecmp(const wchar_t *, const wchar_t *, size_t n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:202:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t  wcsnlen(const wchar_t *, size_t) __pure __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:215:47: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *fgetwln(FILE * __restrict, size_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/gbm/gbm.cc -o build/gbm/gbm.o
    In file included from dmlc-core/include/dmlc/./base.h:206:0,
                     from dmlc-core/include/dmlc/parameter.h:25,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:234:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:244:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:249:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:255:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:262:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:268:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    In file included from dmlc-core/include/dmlc/././logging.h:21:0,
                     from dmlc-core/include/dmlc/./json.h:24,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:35:27: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int backtrace(void**,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:41:44: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char** backtrace_symbols(void* const*,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:42:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void backtrace_symbols_fd(void* const*,int,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from dmlc-core/include/dmlc/./json.h:24:0,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    dmlc-core/include/dmlc/././logging.h: In function 'std::__cxx11::string dmlc::StackTrace(size_t, size_t)':
    dmlc-core/include/dmlc/././logging.h:71:17: error: 'backtrace' was not declared in this scope
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:71:17: note: suggested alternative: 'StackTrace'
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
                     StackTrace
    dmlc-core/include/dmlc/././logging.h:73:17: error: 'backtrace_symbols' was not declared in this scope
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:73:17: note: suggested alternative: 'stacktrace_os'
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
                     stacktrace_os
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h: At global scope:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:131:62: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char    *stpncpy(char *__dst, const char *__src, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:132:45: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char *strndup(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:133:48: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t   strnlen(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:155:94: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void *memmem(const void *__big, size_t __big_len, const void *__little, size_t __little_len) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:156:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern4(void *__b, const void *__pattern4, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:157:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern8(void *__b, const void *__pattern8, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:158:77: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern16(void *__b, const void *__pattern16, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:180:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:85:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:86:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:87:15: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  fls(int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                   ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:88:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:89:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from include/xgboost/./../../src/common/span.h:34:0,
                     from include/xgboost/./data.h:20,
                     from include/xgboost/gbm.h:18,
                     from src/gbm/gblinear.cc:10:
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:61:11: error: '::imaxabs' has not been declared
       using ::imaxabs;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:62:11: error: '::imaxdiv' has not been declared
       using ::imaxdiv;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:68:11: error: '::strtoimax' has not been declared
       using ::strtoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:69:11: error: '::strtoumax' has not been declared
       using ::strtoumax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:72:11: error: '::wcstoimax' has not been declared
       using ::wcstoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:73:11: error: '::wcstoumax' has not been declared
       using ::wcstoumax;
               ^~~~~~~~~
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/gbm/gbtree.o src/gbm/gbtree.cc >build/gbm/gbtree.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/gbm/gbtree.cc -o build/gbm/gbtree.o
    make: *** [build/gbm/gblinear.o] Error 1
    make: *** Waiting for unfinished jobs....
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:110:0,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:443:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:449:39: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     setiopolicy_np(int, int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:128:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:52:74: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int   posix_memalign(void **__memptr, size_t __alignment, size_t __size) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0);
                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:270:53: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void  arc4random_buf(void * __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:273:46: error: expected initializer before '__OSX_AVAILABLE_STARTING'
       arc4random_uniform(uint32_t __upper_bound) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:292:45: error: expected initializer before '__OSX_AVAILABLE_BUT_DEPRECATED_MSG'
     int  daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:325:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:333:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:79:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:78,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/stdio.h:39:56: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     renameat(int, const char *, int, const char *) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:370:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int dprintf(int, const char * __restrict, ...) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:371:79: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int vdprintf(int, const char * __restrict, __gnuc_va_list) __printflike(2, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:372:123: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getdelim(char ** __restrict __linep, size_t * __restrict __linecapp, int __delimiter, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:373:105: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getline(char ** __restrict __linep, size_t * __restrict __linecapp, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:197:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpcpy(wchar_t * __restrict, const wchar_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:198:76: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpncpy(wchar_t * __restrict, const wchar_t * __restrict, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:199:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcsdup(const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:200:54: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcscasecmp(const wchar_t *, const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:201:65: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcsncasecmp(const wchar_t *, const wchar_t *, size_t n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:202:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t  wcsnlen(const wchar_t *, size_t) __pure __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:215:47: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *fgetwln(FILE * __restrict, size_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from dmlc-core/include/dmlc/./base.h:206:0,
                     from dmlc-core/include/dmlc/parameter.h:25,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:234:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:244:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:249:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:255:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:262:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:268:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    In file included from dmlc-core/include/dmlc/././logging.h:21:0,
                     from dmlc-core/include/dmlc/./json.h:24,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:35:27: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int backtrace(void**,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:41:44: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char** backtrace_symbols(void* const*,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:42:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void backtrace_symbols_fd(void* const*,int,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from dmlc-core/include/dmlc/./json.h:24:0,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    dmlc-core/include/dmlc/././logging.h: In function 'std::__cxx11::string dmlc::StackTrace(size_t, size_t)':
    dmlc-core/include/dmlc/././logging.h:71:17: error: 'backtrace' was not declared in this scope
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:71:17: note: suggested alternative: 'StackTrace'
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
                     StackTrace
    dmlc-core/include/dmlc/././logging.h:73:17: error: 'backtrace_symbols' was not declared in this scope
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:73:17: note: suggested alternative: 'stacktrace_os'
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
                     stacktrace_os
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h: At global scope:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:131:62: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char    *stpncpy(char *__dst, const char *__src, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:132:45: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char *strndup(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:133:48: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t   strnlen(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:155:94: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void *memmem(const void *__big, size_t __big_len, const void *__little, size_t __little_len) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:156:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern4(void *__b, const void *__pattern4, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:157:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern8(void *__b, const void *__pattern8, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:158:77: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern16(void *__b, const void *__pattern16, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:180:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:85:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:86:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:87:15: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  fls(int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                   ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:88:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:89:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/mach_init.h:62:0,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/mach.h:69,
                     from dmlc-core/include/dmlc/timer.h:19,
                     from src/gbm/gbtree.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/vm_page_size.h:59:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     extern  vm_size_t       vm_kernel_page_size     __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/vm_page_size.h:60:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     extern  vm_size_t       vm_kernel_page_mask     __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/vm_page_size.h:61:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     extern  int             vm_kernel_page_shift    __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from include/xgboost/./../../src/common/span.h:34:0,
                     from include/xgboost/./data.h:20,
                     from include/xgboost/gbm.h:18,
                     from src/gbm/gbtree.cc:11:
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:61:11: error: '::imaxabs' has not been declared
       using ::imaxabs;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:62:11: error: '::imaxdiv' has not been declared
       using ::imaxdiv;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:68:11: error: '::strtoimax' has not been declared
       using ::strtoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:69:11: error: '::strtoumax' has not been declared
       using ::strtoumax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:72:11: error: '::wcstoimax' has not been declared
       using ::wcstoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:73:11: error: '::wcstoumax' has not been declared
       using ::wcstoumax;
               ^~~~~~~~~
    make: *** [build/gbm/gbtree.o] Error 1
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-aq12k5rq/xgboost/setup.py", line 42, in <module>
        LIB_PATH = libpath['find_lib_path']()
      File "/private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-aq12k5rq/xgboost/xgboost/libpath.py", line 48, in find_lib_path
        'List of candidates:\n' + ('\n'.join(dll_path)))
    XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path?
    List of candidates:
    /private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-aq12k5rq/xgboost/xgboost/libxgboost.dylib
    /private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-aq12k5rq/xgboost/xgboost/../../lib/libxgboost.dylib
    /private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-aq12k5rq/xgboost/xgboost/./lib/libxgboost.dylib
    /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/xgboost/libxgboost.dylib
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
@trivialfis
Copy link
Member

Could you try building it from source with CMake and run setuptools for installation? Currently I don't have access to osx.

@connect2robiul
Copy link
Author

Right now I just update Mac OS from Sierra. On Sierra it worked perfectly.

@connect2robiul
Copy link
Author

After installing CMake and run setuptools

Collecting xgboost
  Using cached https://files.pythonhosted.org/packages/96/84/4e2cae6247f397f83d8adc5c2a2a0c5d7d790a14a4c7400ff6574586f589/xgboost-0.90.tar.gz
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-59sz2_xz/xgboost/setup.py'"'"'; __file__='"'"'/private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-59sz2_xz/xgboost/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: /private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-59sz2_xz/xgboost/
    Complete output (1133 lines):
    ++ pwd
    + oldpath=/private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-59sz2_xz/xgboost
    + cd ./xgboost/
    + echo darwin19
    + grep -q darwin
    + LIB_XGBOOST=libxgboost.dylib
    + which g++-5
    + which g++-7
    /usr/local/bin/g++-7
    + export CC=gcc-7
    + CC=gcc-7
    + export CXX=g++-7
    + CXX=g++-7
    + make clean
    Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
    rm -f -rf build build_plugin lib bin *~ */*~ */*/*~ */*/*/*~ */*.o */*/*.o */*/*/*.o #xgboost
    rm -f -rf build_tests *.gcov tests/cpp/xgboost_test
    if [ -d "R-package/src" ]; then \
    		cd R-package/src; \
    		rm -f -rf rabit src include dmlc-core amalgamation *.so *.dll; \
    		cd /private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-59sz2_xz/xgboost/xgboost; \
    	fi
    + make lib/libxgboost.dylib -j4
    Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/learner.o src/learner.cc >build/learner.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/logging.o src/logging.cc >build/logging.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/c_api/c_api.o src/c_api/c_api.cc >build/c_api/c_api.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/c_api/c_api_error.o src/c_api/c_api_error.cc >build/c_api/c_api_error.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/c_api/c_api_error.cc -o build/c_api/c_api_error.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/logging.cc -o build/logging.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/c_api/c_api.cc -o build/c_api/c_api.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/learner.cc -o build/learner.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/common/common.o src/common/common.cc >build/common/common.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/common/common.cc -o build/common/common.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/common/hist_util.o src/common/hist_util.cc >build/common/hist_util.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/common/hist_util.cc -o build/common/hist_util.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/common/host_device_vector.o src/common/host_device_vector.cc >build/common/host_device_vector.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/common/host_device_vector.cc -o build/common/host_device_vector.o
    In file included from src/common/hist_util.cc:11:0:
    src/common/./column_matrix.h: In member function 'void xgboost::common::ColumnMatrix::Init(const xgboost::common::GHistIndexMatrix&, double)':
    src/common/./column_matrix.h:83:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (bst_uint fid = 0; fid < nfeature; ++fid) {
                                ~~~~^~~~~~~~~~
    src/common/./column_matrix.h:122:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (bst_uint fid = 0; fid < nfeature; ++fid) {
                                ~~~~^~~~~~~~~~
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/data/data.o src/data/data.cc >build/data/data.d
    src/common/hist_util.cc: In member function 'void xgboost::common::GHistIndexMatrix::Init(xgboost::DMatrix*, int)':
    src/common/hist_util.cc:313:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
           for (size_t tid = 0; tid < nthread; ++tid) {
                                ~~~~^~~~~~~~~
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/data/data.cc -o build/data/data.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/data/simple_csr_source.o src/data/simple_csr_source.cc >build/data/simple_csr_source.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/data/simple_csr_source.cc -o build/data/simple_csr_source.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/data/simple_dmatrix.o src/data/simple_dmatrix.cc >build/data/simple_dmatrix.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/data/simple_dmatrix.cc -o build/data/simple_dmatrix.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/data/sparse_page_dmatrix.o src/data/sparse_page_dmatrix.cc >build/data/sparse_page_dmatrix.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/data/sparse_page_raw_format.o src/data/sparse_page_raw_format.cc >build/data/sparse_page_raw_format.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/data/sparse_page_dmatrix.cc -o build/data/sparse_page_dmatrix.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/data/sparse_page_source.o src/data/sparse_page_source.cc >build/data/sparse_page_source.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/data/sparse_page_raw_format.cc -o build/data/sparse_page_raw_format.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/data/sparse_page_source.cc -o build/data/sparse_page_source.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/data/sparse_page_writer.o src/data/sparse_page_writer.cc >build/data/sparse_page_writer.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/data/sparse_page_writer.cc -o build/data/sparse_page_writer.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/gbm/gblinear.o src/gbm/gblinear.cc >build/gbm/gblinear.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/gbm/gblinear.cc -o build/gbm/gblinear.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/gbm/gbm.o src/gbm/gbm.cc >build/gbm/gbm.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/gbm/gbm.cc -o build/gbm/gbm.o
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:110:0,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:443:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:449:39: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     setiopolicy_np(int, int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:128:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:52:74: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int   posix_memalign(void **__memptr, size_t __alignment, size_t __size) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0);
                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:270:53: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void  arc4random_buf(void * __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:273:46: error: expected initializer before '__OSX_AVAILABLE_STARTING'
       arc4random_uniform(uint32_t __upper_bound) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:292:45: error: expected initializer before '__OSX_AVAILABLE_BUT_DEPRECATED_MSG'
     int  daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:325:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:333:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:79:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:78,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/stdio.h:39:56: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     renameat(int, const char *, int, const char *) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:370:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int dprintf(int, const char * __restrict, ...) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:371:79: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int vdprintf(int, const char * __restrict, __gnuc_va_list) __printflike(2, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:372:123: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getdelim(char ** __restrict __linep, size_t * __restrict __linecapp, int __delimiter, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:373:105: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getline(char ** __restrict __linep, size_t * __restrict __linecapp, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:197:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpcpy(wchar_t * __restrict, const wchar_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:198:76: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpncpy(wchar_t * __restrict, const wchar_t * __restrict, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:199:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcsdup(const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:200:54: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcscasecmp(const wchar_t *, const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:201:65: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcsncasecmp(const wchar_t *, const wchar_t *, size_t n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:202:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t  wcsnlen(const wchar_t *, size_t) __pure __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:215:47: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *fgetwln(FILE * __restrict, size_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from dmlc-core/include/dmlc/./base.h:206:0,
                     from dmlc-core/include/dmlc/parameter.h:25,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:234:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:244:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:249:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:255:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:262:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:268:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    In file included from dmlc-core/include/dmlc/././logging.h:21:0,
                     from dmlc-core/include/dmlc/./json.h:24,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:35:27: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int backtrace(void**,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:41:44: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char** backtrace_symbols(void* const*,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:42:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void backtrace_symbols_fd(void* const*,int,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from dmlc-core/include/dmlc/./json.h:24:0,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    dmlc-core/include/dmlc/././logging.h: In function 'std::__cxx11::string dmlc::StackTrace(size_t, size_t)':
    dmlc-core/include/dmlc/././logging.h:71:17: error: 'backtrace' was not declared in this scope
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:71:17: note: suggested alternative: 'StackTrace'
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
                     StackTrace
    dmlc-core/include/dmlc/././logging.h:73:17: error: 'backtrace_symbols' was not declared in this scope
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:73:17: note: suggested alternative: 'stacktrace_os'
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
                     stacktrace_os
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h: At global scope:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:131:62: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char    *stpncpy(char *__dst, const char *__src, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:132:45: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char *strndup(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:133:48: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t   strnlen(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:155:94: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void *memmem(const void *__big, size_t __big_len, const void *__little, size_t __little_len) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:156:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern4(void *__b, const void *__pattern4, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:157:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern8(void *__b, const void *__pattern8, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:158:77: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern16(void *__b, const void *__pattern16, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:180:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:85:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:86:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:87:15: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  fls(int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                   ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:88:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:89:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from include/xgboost/./../../src/common/span.h:34:0,
                     from include/xgboost/./data.h:20,
                     from include/xgboost/gbm.h:18,
                     from src/gbm/gblinear.cc:10:
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:61:11: error: '::imaxabs' has not been declared
       using ::imaxabs;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:62:11: error: '::imaxdiv' has not been declared
       using ::imaxdiv;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:68:11: error: '::strtoimax' has not been declared
       using ::strtoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:69:11: error: '::strtoumax' has not been declared
       using ::strtoumax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:72:11: error: '::wcstoimax' has not been declared
       using ::wcstoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:73:11: error: '::wcstoumax' has not been declared
       using ::wcstoumax;
               ^~~~~~~~~
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/gbm/gbtree.o src/gbm/gbtree.cc >build/gbm/gbtree.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/gbm/gbtree.cc -o build/gbm/gbtree.o
    make: *** [build/gbm/gblinear.o] Error 1
    make: *** Waiting for unfinished jobs....
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:110:0,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:443:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:449:39: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     setiopolicy_np(int, int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:128:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:52:74: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int   posix_memalign(void **__memptr, size_t __alignment, size_t __size) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0);
                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:270:53: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void  arc4random_buf(void * __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:273:46: error: expected initializer before '__OSX_AVAILABLE_STARTING'
       arc4random_uniform(uint32_t __upper_bound) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:292:45: error: expected initializer before '__OSX_AVAILABLE_BUT_DEPRECATED_MSG'
     int  daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:325:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:333:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:79:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:78,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/stdio.h:39:56: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     renameat(int, const char *, int, const char *) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:370:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int dprintf(int, const char * __restrict, ...) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:371:79: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int vdprintf(int, const char * __restrict, __gnuc_va_list) __printflike(2, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:372:123: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getdelim(char ** __restrict __linep, size_t * __restrict __linecapp, int __delimiter, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:373:105: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getline(char ** __restrict __linep, size_t * __restrict __linecapp, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:197:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpcpy(wchar_t * __restrict, const wchar_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:198:76: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpncpy(wchar_t * __restrict, const wchar_t * __restrict, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:199:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcsdup(const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:200:54: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcscasecmp(const wchar_t *, const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:201:65: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcsncasecmp(const wchar_t *, const wchar_t *, size_t n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:202:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t  wcsnlen(const wchar_t *, size_t) __pure __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:215:47: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *fgetwln(FILE * __restrict, size_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from dmlc-core/include/dmlc/./base.h:206:0,
                     from dmlc-core/include/dmlc/parameter.h:25,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:234:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:244:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:249:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:255:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:262:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:268:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    In file included from dmlc-core/include/dmlc/././logging.h:21:0,
                     from dmlc-core/include/dmlc/./json.h:24,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:35:27: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int backtrace(void**,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:41:44: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char** backtrace_symbols(void* const*,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:42:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void backtrace_symbols_fd(void* const*,int,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from dmlc-core/include/dmlc/./json.h:24:0,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    dmlc-core/include/dmlc/././logging.h: In function 'std::__cxx11::string dmlc::StackTrace(size_t, size_t)':
    dmlc-core/include/dmlc/././logging.h:71:17: error: 'backtrace' was not declared in this scope
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:71:17: note: suggested alternative: 'StackTrace'
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
                     StackTrace
    dmlc-core/include/dmlc/././logging.h:73:17: error: 'backtrace_symbols' was not declared in this scope
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:73:17: note: suggested alternative: 'stacktrace_os'
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
                     stacktrace_os
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h: At global scope:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:131:62: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char    *stpncpy(char *__dst, const char *__src, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:132:45: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char *strndup(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:133:48: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t   strnlen(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:155:94: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void *memmem(const void *__big, size_t __big_len, const void *__little, size_t __little_len) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:156:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern4(void *__b, const void *__pattern4, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:157:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern8(void *__b, const void *__pattern8, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:158:77: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern16(void *__b, const void *__pattern16, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:180:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:85:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:86:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:87:15: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  fls(int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                   ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:88:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:89:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/mach_init.h:62:0,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/mach.h:69,
                     from dmlc-core/include/dmlc/timer.h:19,
                     from src/gbm/gbtree.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/vm_page_size.h:59:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     extern  vm_size_t       vm_kernel_page_size     __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/vm_page_size.h:60:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     extern  vm_size_t       vm_kernel_page_mask     __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/vm_page_size.h:61:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     extern  int             vm_kernel_page_shift    __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from include/xgboost/./../../src/common/span.h:34:0,
                     from include/xgboost/./data.h:20,
                     from include/xgboost/gbm.h:18,
                     from src/gbm/gbtree.cc:11:
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:61:11: error: '::imaxabs' has not been declared
       using ::imaxabs;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:62:11: error: '::imaxdiv' has not been declared
       using ::imaxdiv;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:68:11: error: '::strtoimax' has not been declared
       using ::strtoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:69:11: error: '::strtoumax' has not been declared
       using ::strtoumax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:72:11: error: '::wcstoimax' has not been declared
       using ::wcstoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:73:11: error: '::wcstoumax' has not been declared
       using ::wcstoumax;
               ^~~~~~~~~
    make: *** [build/gbm/gbtree.o] Error 1
    + echo -----------------------------
    -----------------------------
    + echo 'Building multi-thread xgboost failed'
    Building multi-thread xgboost failed
    + echo 'Start to build single-thread xgboost'
    Start to build single-thread xgboost
    + make clean
    Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
    rm -f -rf build build_plugin lib bin *~ */*~ */*/*~ */*/*/*~ */*.o */*/*.o */*/*/*.o #xgboost
    rm -f -rf build_tests *.gcov tests/cpp/xgboost_test
    if [ -d "R-package/src" ]; then \
    		cd R-package/src; \
    		rm -f -rf rabit src include dmlc-core amalgamation *.so *.dll; \
    		cd /private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-59sz2_xz/xgboost/xgboost; \
    	fi
    + make lib/libxgboost.dylib -j4 USE_OPENMP=0
    Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/learner.o src/learner.cc >build/learner.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/logging.o src/logging.cc >build/logging.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api.o src/c_api/c_api.cc >build/c_api/c_api.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api_error.o src/c_api/c_api_error.cc >build/c_api/c_api_error.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/c_api/c_api_error.cc -o build/c_api/c_api_error.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/logging.cc -o build/logging.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/c_api/c_api.cc -o build/c_api/c_api.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/learner.cc -o build/learner.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/common/common.o src/common/common.cc >build/common/common.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/common/common.cc -o build/common/common.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/common/hist_util.o src/common/hist_util.cc >build/common/hist_util.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/common/hist_util.cc -o build/common/hist_util.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/common/host_device_vector.o src/common/host_device_vector.cc >build/common/host_device_vector.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/common/host_device_vector.cc -o build/common/host_device_vector.o
    In file included from src/common/hist_util.cc:11:0:
    src/common/./column_matrix.h: In member function 'void xgboost::common::ColumnMatrix::Init(const xgboost::common::GHistIndexMatrix&, double)':
    src/common/./column_matrix.h:83:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (bst_uint fid = 0; fid < nfeature; ++fid) {
                                ~~~~^~~~~~~~~~
    src/common/./column_matrix.h:122:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (bst_uint fid = 0; fid < nfeature; ++fid) {
                                ~~~~^~~~~~~~~~
    src/common/hist_util.cc: In member function 'void xgboost::common::GHistIndexMatrix::Init(xgboost::DMatrix*, int)':
    src/common/hist_util.cc:313:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
           for (size_t tid = 0; tid < nthread; ++tid) {
                                ~~~~^~~~~~~~~
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/data/data.o src/data/data.cc >build/data/data.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/data/data.cc -o build/data/data.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/data/simple_csr_source.o src/data/simple_csr_source.cc >build/data/simple_csr_source.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/data/simple_csr_source.cc -o build/data/simple_csr_source.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/data/simple_dmatrix.o src/data/simple_dmatrix.cc >build/data/simple_dmatrix.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/data/simple_dmatrix.cc -o build/data/simple_dmatrix.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/data/sparse_page_dmatrix.o src/data/sparse_page_dmatrix.cc >build/data/sparse_page_dmatrix.d
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/data/sparse_page_raw_format.o src/data/sparse_page_raw_format.cc >build/data/sparse_page_raw_format.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/data/sparse_page_dmatrix.cc -o build/data/sparse_page_dmatrix.o
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/data/sparse_page_raw_format.cc -o build/data/sparse_page_raw_format.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/data/sparse_page_source.o src/data/sparse_page_source.cc >build/data/sparse_page_source.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/data/sparse_page_source.cc -o build/data/sparse_page_source.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/data/sparse_page_writer.o src/data/sparse_page_writer.cc >build/data/sparse_page_writer.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/data/sparse_page_writer.cc -o build/data/sparse_page_writer.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/gbm/gblinear.o src/gbm/gblinear.cc >build/gbm/gblinear.d
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/gbm/gblinear.cc -o build/gbm/gblinear.o
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/gbm/gbm.o src/gbm/gbm.cc >build/gbm/gbm.d
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:110:0,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:443:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:449:39: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     setiopolicy_np(int, int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:128:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:52:74: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int   posix_memalign(void **__memptr, size_t __alignment, size_t __size) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0);
                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:270:53: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void  arc4random_buf(void * __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:273:46: error: expected initializer before '__OSX_AVAILABLE_STARTING'
       arc4random_uniform(uint32_t __upper_bound) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:292:45: error: expected initializer before '__OSX_AVAILABLE_BUT_DEPRECATED_MSG'
     int  daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:325:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:333:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:79:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:78,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/stdio.h:39:56: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     renameat(int, const char *, int, const char *) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:370:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int dprintf(int, const char * __restrict, ...) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:371:79: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int vdprintf(int, const char * __restrict, __gnuc_va_list) __printflike(2, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:372:123: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getdelim(char ** __restrict __linep, size_t * __restrict __linecapp, int __delimiter, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:373:105: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getline(char ** __restrict __linep, size_t * __restrict __linecapp, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:197:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpcpy(wchar_t * __restrict, const wchar_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:198:76: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpncpy(wchar_t * __restrict, const wchar_t * __restrict, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:199:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcsdup(const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:200:54: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcscasecmp(const wchar_t *, const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:201:65: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcsncasecmp(const wchar_t *, const wchar_t *, size_t n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:202:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t  wcsnlen(const wchar_t *, size_t) __pure __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:215:47: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *fgetwln(FILE * __restrict, size_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/gbm/gbm.cc -o build/gbm/gbm.o
    In file included from dmlc-core/include/dmlc/./base.h:206:0,
                     from dmlc-core/include/dmlc/parameter.h:25,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:234:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:244:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:249:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:255:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:262:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:268:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    In file included from dmlc-core/include/dmlc/././logging.h:21:0,
                     from dmlc-core/include/dmlc/./json.h:24,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:35:27: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int backtrace(void**,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:41:44: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char** backtrace_symbols(void* const*,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:42:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void backtrace_symbols_fd(void* const*,int,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from dmlc-core/include/dmlc/./json.h:24:0,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    dmlc-core/include/dmlc/././logging.h: In function 'std::__cxx11::string dmlc::StackTrace(size_t, size_t)':
    dmlc-core/include/dmlc/././logging.h:71:17: error: 'backtrace' was not declared in this scope
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:71:17: note: suggested alternative: 'StackTrace'
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
                     StackTrace
    dmlc-core/include/dmlc/././logging.h:73:17: error: 'backtrace_symbols' was not declared in this scope
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:73:17: note: suggested alternative: 'stacktrace_os'
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
                     stacktrace_os
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h: At global scope:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:131:62: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char    *stpncpy(char *__dst, const char *__src, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:132:45: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char *strndup(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:133:48: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t   strnlen(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:155:94: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void *memmem(const void *__big, size_t __big_len, const void *__little, size_t __little_len) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:156:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern4(void *__b, const void *__pattern4, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:157:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern8(void *__b, const void *__pattern8, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:158:77: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern16(void *__b, const void *__pattern16, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:180:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gblinear.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:85:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:86:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:87:15: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  fls(int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                   ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:88:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:89:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from include/xgboost/./../../src/common/span.h:34:0,
                     from include/xgboost/./data.h:20,
                     from include/xgboost/gbm.h:18,
                     from src/gbm/gblinear.cc:10:
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:61:11: error: '::imaxabs' has not been declared
       using ::imaxabs;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:62:11: error: '::imaxdiv' has not been declared
       using ::imaxdiv;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:68:11: error: '::strtoimax' has not been declared
       using ::strtoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:69:11: error: '::strtoumax' has not been declared
       using ::strtoumax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:72:11: error: '::wcstoimax' has not been declared
       using ::wcstoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:73:11: error: '::wcstoumax' has not been declared
       using ::wcstoumax;
               ^~~~~~~~~
    g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/gbm/gbtree.o src/gbm/gbtree.cc >build/gbm/gbtree.d
    make: *** [build/gbm/gblinear.o] Error 1
    make: *** Waiting for unfinished jobs....
    g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/gbm/gbtree.cc -o build/gbm/gbtree.o
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:110:0,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:443:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:449:39: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     setiopolicy_np(int, int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:128:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:52:74: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int   posix_memalign(void **__memptr, size_t __alignment, size_t __size) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0);
                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:270:53: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void  arc4random_buf(void * __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:273:46: error: expected initializer before '__OSX_AVAILABLE_STARTING'
       arc4random_uniform(uint32_t __upper_bound) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstdlib:75:0,
                     from dmlc-core/include/dmlc/parameter.h:10,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:292:45: error: expected initializer before '__OSX_AVAILABLE_BUT_DEPRECATED_MSG'
     int  daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:325:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:333:6: error: expected initializer before '__OSX_AVAILABLE_STARTING'
          __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
          ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:79:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:78,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/stdio.h:39:56: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     renameat(int, const char *, int, const char *) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:370:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int dprintf(int, const char * __restrict, ...) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:371:79: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int vdprintf(int, const char * __restrict, __gnuc_va_list) __printflike(2, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:372:123: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getdelim(char ** __restrict __linep, size_t * __restrict __linecapp, int __delimiter, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/lib/gcc/7/gcc/x86_64-apple-darwin18.2.0/7.4.0/include-fixed/stdio.h:373:105: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     ssize_t getline(char ** __restrict __linep, size_t * __restrict __linecapp, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cwchar:44:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/bits/postypes.h:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/iosfwd:40,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/ios:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/istream:38,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/sstream:38,
                     from dmlc-core/include/dmlc/parameter.h:12,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:197:67: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpcpy(wchar_t * __restrict, const wchar_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:198:76: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcpncpy(wchar_t * __restrict, const wchar_t * __restrict, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:199:34: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *wcsdup(const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:200:54: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcscasecmp(const wchar_t *, const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:201:65: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int     wcsncasecmp(const wchar_t *, const wchar_t *, size_t n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:202:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t  wcsnlen(const wchar_t *, size_t) __pure __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:215:47: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     wchar_t *fgetwln(FILE * __restrict, size_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from dmlc-core/include/dmlc/./base.h:206:0,
                     from dmlc-core/include/dmlc/parameter.h:25,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:234:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:244:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:249:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:255:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:262:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:268:25: error: expected constructor, destructor, or type conversion before '(' token
     __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
                             ^
    In file included from dmlc-core/include/dmlc/././logging.h:21:0,
                     from dmlc-core/include/dmlc/./json.h:24,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:35:27: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int backtrace(void**,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:41:44: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char** backtrace_symbols(void* const*,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/execinfo.h:42:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void backtrace_symbols_fd(void* const*,int,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from dmlc-core/include/dmlc/./json.h:24:0,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    dmlc-core/include/dmlc/././logging.h: In function 'std::__cxx11::string dmlc::StackTrace(size_t, size_t)':
    dmlc-core/include/dmlc/././logging.h:71:17: error: 'backtrace' was not declared in this scope
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:71:17: note: suggested alternative: 'StackTrace'
       int nframes = backtrace(stack.data(), static_cast<int>(stack_size));
                     ^~~~~~~~~
                     StackTrace
    dmlc-core/include/dmlc/././logging.h:73:17: error: 'backtrace_symbols' was not declared in this scope
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
    dmlc-core/include/dmlc/././logging.h:73:17: note: suggested alternative: 'stacktrace_os'
       char **msgs = backtrace_symbols(stack.data(), nframes);
                     ^~~~~~~~~~~~~~~~~
                     stacktrace_os
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h: At global scope:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:131:62: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char    *stpncpy(char *__dst, const char *__src, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:132:45: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     char *strndup(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:133:48: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     size_t   strnlen(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:155:94: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void *memmem(const void *__big, size_t __big_len, const void *__little, size_t __little_len) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
                                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42:0,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:156:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern4(void *__b, const void *__pattern4, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:157:75: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern8(void *__b, const void *__pattern8, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:158:77: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     void     memset_pattern16(void *__b, const void *__pattern16, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0);
                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:180:0,
                     from /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cstring:42,
                     from dmlc-core/include/dmlc/././any.h:14,
                     from dmlc-core/include/dmlc/./json.h:33,
                     from dmlc-core/include/dmlc/parameter.h:26,
                     from src/gbm/gbtree.cc:8:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:85:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:86:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:87:15: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  fls(int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                   ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:88:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:89:23: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  flsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                           ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/mach_init.h:62:0,
                     from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/mach.h:69,
                     from dmlc-core/include/dmlc/timer.h:19,
                     from src/gbm/gbtree.cc:9:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/vm_page_size.h:59:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     extern  vm_size_t       vm_kernel_page_size     __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/vm_page_size.h:60:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     extern  vm_size_t       vm_kernel_page_mask     __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/vm_page_size.h:61:49: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     extern  int             vm_kernel_page_shift    __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from include/xgboost/./../../src/common/span.h:34:0,
                     from include/xgboost/./data.h:20,
                     from include/xgboost/gbm.h:18,
                     from src/gbm/gbtree.cc:11:
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:61:11: error: '::imaxabs' has not been declared
       using ::imaxabs;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:62:11: error: '::imaxdiv' has not been declared
       using ::imaxdiv;
               ^~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:68:11: error: '::strtoimax' has not been declared
       using ::strtoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:69:11: error: '::strtoumax' has not been declared
       using ::strtoumax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:72:11: error: '::wcstoimax' has not been declared
       using ::wcstoimax;
               ^~~~~~~~~
    /usr/local/Cellar/gcc@7/7.4.0/include/c++/7.4.0/cinttypes:73:11: error: '::wcstoumax' has not been declared
       using ::wcstoumax;
               ^~~~~~~~~
    make: *** [build/gbm/gbtree.o] Error 1
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-59sz2_xz/xgboost/setup.py", line 42, in <module>
        LIB_PATH = libpath['find_lib_path']()
      File "/private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-59sz2_xz/xgboost/xgboost/libpath.py", line 48, in find_lib_path
        'List of candidates:\n' + ('\n'.join(dll_path)))
    XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path?
    List of candidates:
    /private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-59sz2_xz/xgboost/xgboost/libxgboost.dylib
    /private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-59sz2_xz/xgboost/xgboost/../../lib/libxgboost.dylib
    /private/var/folders/ss/glnm4hh15kxcrfw76bt2r6vm0000gn/T/pip-install-59sz2_xz/xgboost/xgboost/./lib/libxgboost.dylib
    /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/xgboost/libxgboost.dylib


@trivialfis
Copy link
Member

@connect2robiul
Copy link
Author

nothing change

@trivialfis
Copy link
Member

That's most likely some mismatched libraries after the upgrade since the error doesn't come from XGBoost, instead it's coming from libc ... You might better post your question on stack overflow with the specific error :

    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/strings.h:85:17: error: expected initializer before '__OSX_AVAILABLE_STARTING'
     int  ffsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);

And tag osx.

@connect2robiul
Copy link
Author

Could you please suggest someone help me find this bug? "https://stackoverflow.com/questions/58347946/xgboost-install-failed-in-python-on-mac-at-zsh-terminal"

@hcho3
Copy link
Collaborator

hcho3 commented Oct 15, 2019

@connect2robiul Take a look at #4949 for an easy way to install XGBoost on Mac.

@hcho3 hcho3 closed this as completed Oct 15, 2019
@ZichaoHuang
Copy link

@connect2robiul I encounter the same problem when building xgboost from source on macOS 10.15.1, have you solved it yet?

@connect2robiul
Copy link
Author

Update/install most recent Xcode it will be solved @Tencent

@KeyWgh
Copy link

KeyWgh commented Nov 17, 2019

Same problem, installing Xcode 11.12.1 doesn't solve it. What should I do?

@ZichaoHuang
Copy link

@connect2robiul Installing the most recent Xcode (Version 11.2.1 (11B500)) doesn't help, I can neither install xgboost via pip install xgboost nor build it from source. Any other suggestions?

@yage99
Copy link
Contributor

yage99 commented Nov 28, 2019

There is a bug in apple head files, and is fixed by brew-core team in gcc@9 (issue).
Please try to use gcc@9 to compile XGBoost.

brew install gcc@9 libomp
CC=gcc-9 CXX=g++-9 cmake ..
make

This will work.

yage99 added a commit to yage99/xgboost that referenced this issue Nov 28, 2019
@ZichaoHuang
Copy link

@yage99 I can successfully build xgboost from source (v0.90) with gcc@9 and install it, but it falils on the import statement.
image

yage99 added a commit to yage99/xgboost that referenced this issue Nov 29, 2019
  The build documentation and python installation script is updated
  to resolve the installation issue in MacOS versions higher than
  High Sierra. see dmlc#4933
@trivialfis
Copy link
Member

trivialfis commented Nov 29, 2019 via email

@yage99
Copy link
Contributor

yage99 commented Nov 29, 2019

@ZichaoHuang I think this means there is something wrong with your xgboost library. I have fixed the python install script and created a pull request. You may try to do a clean install. And as @trivialfis said, python with gcc4 may not compatible with libraries compiled with gcc9, you can try to upgrade python first.

yage99 added a commit to yage99/xgboost that referenced this issue Dec 3, 2019
  The build documentation and python installation script is updated
  to resolve the installation issue in MacOS versions higher than
  High Sierra. see dmlc#4933
yage99 added a commit to yage99/xgboost that referenced this issue Dec 3, 2019
  The build documentation and python installation script is updated
  to resolve the installation issue in MacOS versions higher than
  High Sierra. see dmlc#4933
yage99 added a commit to yage99/xgboost that referenced this issue Dec 4, 2019
  The build documentation and python installation script is updated
  to resolve the installation issue in MacOS versions higher than
  High Sierra. see dmlc#4933.
@xythu
Copy link

xythu commented Dec 9, 2019

@yage99 I can successfully build xgboost from source (v0.90) with gcc@9 and install it, but it falils on the import statement.
image

I found on my Mac (MacOS Catalina), the XGBoost shared lib libxgboost.dylib built by gcc@9 conficts with ft2font in matplotlib, which is imported by pandas, and pandas is imported by xgboost if they've been installed in you environment. Load the libxgboost.dylib before importing pandas in xgboost can sovle the problem, and it works for me.

You can edit the core.py in xgboost python package. Just put

from .compat import (
    STRING_TYPES, PY3, DataFrame, MultiIndex, py_str,
    PANDAS_INSTALLED, DataTable,
    CUDF_INSTALLED, CUDF_DataFrame, CUDF_Series, CUDF_MultiIndex,
    os_fspath, os_PathLike)

under _LIB = _load_lib() (around line 187) is all you need to do.

Or you can just uninstall matplotlib or pandas if it's acceptable.

@umangs94
Copy link

That didn't work for me but this did: #4949 (comment)

@lock lock bot locked as resolved and limited conversation to collaborators Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants