make[1]: Entering directory `/tmp/app/gdal-2.2.2/port'
g++ -std=gnu++11 -I/tmp/app/gdal-2.2.2/port -I/tmp/app/gdal-2.2.2/gcore -I/tmp/app/gdal-2.2.2/alg -I/tmp/app/gdal-2.2.2/ogr -I/tmp/app/gdal-2.2.2/ogr/ogrsf_frmts -I/tmp/app/gdal-2.2.2/gnm -I/tmp/app/gdal-2.2.2/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -Wl,-S -fPIC -fvisibility=hidden -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wduplicated-cond -Wfloat-conversion -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -I/tmp/app/gdal-2.2.2/port -I/tmp/app/local/include -DGDAL_COMPILATION -DINST_DATA=\"/tmp/app/local/share/gdal\" -DHAVE_CURL -DHAVE_LIBZ -DUSE_ONLY_CRYPTODLL_ALG -c -o cpl_conv.o cpl_conv.cpp
g++: error: unrecognized command line option '-Wdate-time'
g++: error: unrecognized command line option '-Wnull-dereference'
g++: error: unrecognized command line option '-Wduplicated-cond'
g++: error: unrecognized command line option '-Wfloat-conversion'
make[1]: *** [cpl_conv.o] Error 1
make[1]: Leaving directory `/tmp/app/gdal-2.2.2/port'
make: *** [port-target] Error 2
The command '/bin/sh -c cd $APP_DIR && wget http://download.osgeo.org/gdal/$GDAL_VERSION/gdal${GDAL_VERSION//.}.zip && unzip gdal${GDAL_VERSION//.}.zip && cd $APP_DIR/gdal-$GDAL_VERSION && wget https://github.com/sgillies/frs-wheel-builds/raw/fafaeadfb638f44d8384e3742c829d2d68297915/patches/changeset_40330.diff && patch -u --verbose -p4 < ./changeset_40330.diff && CFLAGS="-O2 -Wl,-S" CXXFLAGS="-O2 -Wl,-S" ./configure --prefix=$APP_DIR/local --with-static-proj4=$APP_DIR/local --with-geos=$APP_DIR/local/bin/geos-config --with-openjpeg=$APP_DIR/local --with-threads --disable-debug --with-jpeg --with-hide-internal-symbols --with-curl --without-bsb --without-cfitsio --without-cryptopp --without-ecw --without-expat --without-fme --without-freexl --without-gif --without-gif --without-gnm --without-grass --without-grib --without-hdf4 --without-hdf5 --without-idb --without-ingres --without-jasper --without-jp2mrsid --without-kakadu --without-libgrass --without-libkml --without-libtool --without-mrf --without-mrsid --without-mysql --without-netcdf --without-odbc --without-ogdi --without-pcidsk --without-pcraster --without-pcre --without-perl --without-pg --without-php --without-png --without-python --without-qhull --without-sde --without-sqlite3 --without-webp --without-xerces --without-xml2 && make && make install && rm -rf $APP_DIR/gdal${GDAL_VERSION//.}.zip $APP_DIR/gdal-$GDAL_VERSION' returned a non-zero code: 2