Here is what I get. I have no idea what the issue is as xgboost is already installed.
Maybe adding autoimpute to conda would do the trick?
$ pip3 install autoimpute
Requirement already satisfied: autoimpute in ./.anaconda/Anaconda3-2019.07/lib/python3.7/site-packages/autoimpute-0.11.6-py3.7.egg (0.11.6)
Requirement already satisfied: numpy in ./.anaconda/Anaconda3-2019.07/lib/python3.7/site-packages (from autoimpute) (1.16.4)
Requirement already satisfied: scipy in ./.anaconda/Anaconda3-2019.07/lib/python3.7/site-packages (from autoimpute) (1.3.0)
Requirement already satisfied: pandas in ./.anaconda/Anaconda3-2019.07/lib/python3.7/site-packages (from autoimpute) (0.24.2)
Requirement already satisfied: statsmodels in ./.anaconda/Anaconda3-2019.07/lib/python3.7/site-packages (from autoimpute) (0.10.0)
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: /Users/josep_ferrandiz/.anaconda/Anaconda3-2019.07/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/yr/4m9kyqd97q54cmlw31gv9gmc0000gn/T/pip-install-cterd68w/xgboost/setup.py'"'"'; file='"'"'/private/var/folders/yr/4m9kyqd97q54cmlw31gv9gmc0000gn/T/pip-install-cterd68w/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 /private/var/folders/yr/4m9kyqd97q54cmlw31gv9gmc0000gn/T/pip-install-cterd68w/xgboost/pip-egg-info
cwd: /private/var/folders/yr/4m9kyqd97q54cmlw31gv9gmc0000gn/T/pip-install-cterd68w/xgboost/
Complete output (1134 lines):
++ pwd
+ oldpath=/private/var/folders/yr/4m9kyqd97q54cmlw31gv9gmc0000gn/T/pip-install-cterd68w/xgboost
+ cd ./xgboost/
+ echo darwin19
+ grep -q darwin
+ LIB_XGBOOST=libxgboost.dylib
+ which g++-5
+ which g++-7
+ which g++-8
/usr/local/bin/g++-8
+ export CC=gcc-8
+ CC=gcc-8
+ export CXX=g++-8
+ CXX=g++-8
+ make clean
Makefile:31: MAKE [/Applications/Xcode.app/Contents/Developer/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/yr/4m9kyqd97q54cmlw31gv9gmc0000gn/T/pip-install-cterd68w/xgboost/xgboost;
fi
+ make lib/libxgboost.dylib -j4
Makefile:31: MAKE [/Applications/Xcode.app/Contents/Developer/usr/bin/make] - checked OK
g++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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:
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 of integer expressions of different signedness: 'xgboost::bst_uint' {aka 'unsigned int'} and 'const int32_t' {aka 'const int'} [-Wsign-compare]
for (bst_uint fid = 0; fid < nfeature; ++fid) {
~~~~^~~~~~~~~~
src/common/./column_matrix.h:122:32: warning: comparison of integer expressions of different signedness: 'xgboost::bst_uint' {aka 'unsigned int'} and 'const int32_t' {aka 'const int'} [-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 of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'const int32_t' {aka 'const int'} [-Wsign-compare]
for (size_t tid = 0; tid < nthread; ++tid) {
~~~~^~~~~~~~~
g++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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,
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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:447: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:453: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,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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@8/8.3.0/include/c++/8.3.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/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@8/8.3.0/include/c++/8.3.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/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,
from /usr/local/Cellar/gcc@8/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.0/include-fixed/stdio.h:78,
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cwchar:44,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/iosfwd:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/ios:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/istream:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cwchar:44,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/iosfwd:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/ios:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/istream:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/sstream:38,
from dmlc-core/include/dmlc/parameter.h:12,
from src/gbm/gblinear.cc:9:
/usr/local/Cellar/gcc@8/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.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@8/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.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,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cwchar:44,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/iosfwd:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/ios:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/istream:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/sstream:38,
from dmlc-core/include/dmlc/parameter.h:12,
from src/gbm/gblinear.cc:9:
/usr/local/Cellar/gcc@8/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.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@8/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.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@8/8.3.0/include/c++/8.3.0/cwchar:44,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/iosfwd:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/ios:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/istream:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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++-8 -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 dmlc-core/include/dmlc/./base.h:206,
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,
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,
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(stack_size));
^~~~~~~~~
dmlc-core/include/dmlc/././logging.h:71:17: note: suggested alternative: 'StackTrace'
int nframes = backtrace(stack.data(), static_cast(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@8/8.3.0/include/c++/8.3.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/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@8/8.3.0/include/c++/8.3.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/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,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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,
from include/xgboost/./data.h:20,
from include/xgboost/gbm.h:18,
from src/gbm/gblinear.cc:10:
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:61:11: error: '::imaxabs' has not been declared
using ::imaxabs;
^~~~~~~
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:62:11: error: '::imaxdiv' has not been declared
using ::imaxdiv;
^~~~~~~
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:68:11: error: '::strtoimax' has not been declared
using ::strtoimax;
^~~~~~~~~
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:69:11: error: '::strtoumax' has not been declared
using ::strtoumax;
^~~~~~~~~
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:72:11: error: '::wcstoimax' has not been declared
using ::wcstoimax;
^~~~~~~~~
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:73:11: error: '::wcstoumax' has not been declared
using ::wcstoumax;
^~~~~~~~~
g++-8 -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++-8 -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,
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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:447: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:453: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,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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@8/8.3.0/include/c++/8.3.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/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@8/8.3.0/include/c++/8.3.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/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,
from /usr/local/Cellar/gcc@8/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.0/include-fixed/stdio.h:78,
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cwchar:44,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/iosfwd:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/ios:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/istream:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cwchar:44,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/iosfwd:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/ios:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/istream:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/sstream:38,
from dmlc-core/include/dmlc/parameter.h:12,
from src/gbm/gbtree.cc:8:
/usr/local/Cellar/gcc@8/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.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@8/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.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,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cwchar:44,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/iosfwd:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/ios:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/istream:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/sstream:38,
from dmlc-core/include/dmlc/parameter.h:12,
from src/gbm/gbtree.cc:8:
/usr/local/Cellar/gcc@8/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.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@8/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.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@8/8.3.0/include/c++/8.3.0/cwchar:44,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/iosfwd:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/ios:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/istream:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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,
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,
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,
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(stack_size));
^~~~~~~~~
dmlc-core/include/dmlc/././logging.h:71:17: note: suggested alternative: 'StackTrace'
int nframes = backtrace(stack.data(), static_cast(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@8/8.3.0/include/c++/8.3.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/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@8/8.3.0/include/c++/8.3.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/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,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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,
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,
from include/xgboost/./data.h:20,
from include/xgboost/gbm.h:18,
from src/gbm/gbtree.cc:11:
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:61:11: error: '::imaxabs' has not been declared
using ::imaxabs;
^~~~~~~
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:62:11: error: '::imaxdiv' has not been declared
using ::imaxdiv;
^~~~~~~
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:68:11: error: '::strtoimax' has not been declared
using ::strtoimax;
^~~~~~~~~
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:69:11: error: '::strtoumax' has not been declared
using ::strtoumax;
^~~~~~~~~
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:72:11: error: '::wcstoimax' has not been declared
using ::wcstoimax;
^~~~~~~~~
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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 [/Applications/Xcode.app/Contents/Developer/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/yr/4m9kyqd97q54cmlw31gv9gmc0000gn/T/pip-install-cterd68w/xgboost/xgboost;
fi
+ make lib/libxgboost.dylib -j4 USE_OPENMP=0
Makefile:31: MAKE [/Applications/Xcode.app/Contents/Developer/usr/bin/make] - checked OK
g++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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:
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 of integer expressions of different signedness: 'xgboost::bst_uint' {aka 'unsigned int'} and 'const int32_t' {aka 'const int'} [-Wsign-compare]
for (bst_uint fid = 0; fid < nfeature; ++fid) {
~~~~^~~~~~~~~~
src/common/./column_matrix.h:122:32: warning: comparison of integer expressions of different signedness: 'xgboost::bst_uint' {aka 'unsigned int'} and 'const int32_t' {aka 'const int'} [-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 of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'const int32_t' {aka 'const int'} [-Wsign-compare]
for (size_t tid = 0; tid < nthread; ++tid) {
~~~~^~~~~~~~~
g++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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++-8 -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,
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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:447: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:453: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,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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@8/8.3.0/include/c++/8.3.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/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@8/8.3.0/include/c++/8.3.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/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,
from /usr/local/Cellar/gcc@8/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.0/include-fixed/stdio.h:78,
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:90,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cwchar:44,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/iosfwd:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/ios:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/istream:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cwchar:44,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/iosfwd:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/ios:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/istream:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/sstream:38,
from dmlc-core/include/dmlc/parameter.h:12,
from src/gbm/gblinear.cc:9:
/usr/local/Cellar/gcc@8/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.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@8/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.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,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cwchar:44,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/iosfwd:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/ios:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/istream:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/sstream:38,
from dmlc-core/include/dmlc/parameter.h:12,
from src/gbm/gblinear.cc:9:
/usr/local/Cellar/gcc@8/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.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@8/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.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@8/8.3.0/include/c++/8.3.0/cwchar:44,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/iosfwd:40,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/ios:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/istream:38,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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++-8 -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,
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,
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,
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(stack_size));
^~~~~~~~~
dmlc-core/include/dmlc/././logging.h:71:17: note: suggested alternative: 'StackTrace'
int nframes = backtrace(stack.data(), static_cast(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@8/8.3.0/include/c++/8.3.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/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@8/8.3.0/include/c++/8.3.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/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,
from /usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.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,
from include/xgboost/./data.h:20,
from include/xgboost/gbm.h:18,
from src/gbm/gblinear.cc:10:
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:61:11: error: '::imaxabs' has not been declared
using ::imaxabs;
^~~~~~~
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:62:11: error: '::imaxdiv' has not been declared
using ::imaxdiv;
^~~~~~~
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:68:11: error: '::strtoimax' has not been declared
using ::strtoimax;
^~~~~~~~~
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:69:11: error: '::strtoumax' has not been declared
using ::strtoumax;
^~~~~~~~~
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:72:11: error: '::wcstoimax' has not been declared
using ::wcstoimax;
^~~~~~~~~
/usr/local/Cellar/gcc@8/8.3.0/include/c++/8.3.0/cinttypes:73:11: error: '::wcstoumax' has not been declared
using ::wcstoumax;
^~~~~~~~~
g++-8 -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++-8 -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
.....