I get the following error when attempting to build gdal 2.3.0 on an AWS ec2 AMI - more specifically when attempting to make the directory:
[ec2-user#ip-172-31-7-225 gdal-2.3.0]$ make -j4
(cd port; make)
(cd gcore; make generate_gdal_version_h)
rm -f gdal.pc
echo 'CONFIG_VERSION='`cat ./VERSION`'' >> gdal.pc
echo 'CONFIG_INST_PREFIX=/usr/local' >> gdal.pc
make[1]: Entering directory `/tmp/gdal-2.3.0/port'
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CXX g++ -std=c++11 -I/tmp/gdal-2.3.0/port -I/tmp/gdal-2.3.0/gcore -I/tmp/gdal-2.3.0/alg -I/tmp/gdal-2.3.0/ogr -I/tmp/gdal-2.3.0/ogr/ogrsf_frmts -I/tmp/gdal-2.3.0/gnm -I/tmp/gdal-2.3.0/apps -Wold-style-cast -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -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 -Wzero-as-null-pointer-constant -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -I/tmp/gdal-2.3.0/ogr/ogrsf_frmts/geojson/libjson -DINST_DATA=\"/usr/local/share/gdal\" -DHAVE_CURL -DHAVE_LIBZ -I/usr/include/libxml2 -DHAVE_LIBXML2 -DUSE_ONLY_CRYPTODLL_ALG -DHAVE_OPENSSL_CRYPTO -c -o cpl_conv.lo cpl_conv.cpp
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CXX g++ -std=c++11 -I/tmp/gdal-2.3.0/port -I/tmp/gdal-2.3.0/gcore -I/tmp/gdal-2.3.0/alg -I/tmp/gdal-2.3.0/ogr -I/tmp/gdal-2.3.0/ogr/ogrsf_frmts -I/tmp/gdal-2.3.0/gnm -I/tmp/gdal-2.3.0/apps -Wold-style-cast -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -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 -Wzero-as-null-pointer-constant -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -I/tmp/gdal-2.3.0/ogr/ogrsf_frmts/geojson/libjson -DINST_DATA=\"/usr/local/share/gdal\" -DHAVE_CURL -DHAVE_LIBZ -I/usr/include/libxml2 -DHAVE_LIBXML2 -DUSE_ONLY_CRYPTODLL_ALG -DHAVE_OPENSSL_CRYPTO -c -o cpl_error.lo cpl_error.cpp
echo 'CONFIG_INST_LIBS=-L/usr/local/lib -lgdal' >> gdal.pc
echo 'CONFIG_INST_CFLAGS=-I/usr/local/include' >> gdal.pc
echo 'CONFIG_INST_DATA=/usr/local/share/gdal/data' >> gdal.pc
cat gdal.pc.in >> gdal.pc
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CXX g++ -std=c++11 -I/tmp/gdal-2.3.0/port -I/tmp/gdal-2.3.0/gcore -I/tmp/gdal-2.3.0/alg -I/tmp/gdal-2.3.0/ogr -I/tmp/gdal-2.3.0/ogr/ogrsf_frmts -I/tmp/gdal-2.3.0/gnm -I/tmp/gdal-2.3.0/apps -Wold-style-cast -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -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 -Wzero-as-null-pointer-constant -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -I/tmp/gdal-2.3.0/ogr/ogrsf_frmts/geojson/libjson -DINST_DATA=\"/usr/local/share/gdal\" -DHAVE_CURL -DHAVE_LIBZ -I/usr/include/libxml2 -DHAVE_LIBXML2 -DUSE_ONLY_CRYPTODLL_ALG -DHAVE_OPENSSL_CRYPTO -c -o cpl_string.lo cpl_string.cpp
make[1]: Entering directory `/tmp/gdal-2.3.0/gcore'
make[1]: Nothing to be done for `generate_gdal_version_h'.
make[1]: Leaving directory `/tmp/gdal-2.3.0/gcore'
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CXX g++ -std=c++11 -I/tmp/gdal-2.3.0/port -I/tmp/gdal-2.3.0/gcore -I/tmp/gdal-2.3.0/alg -I/tmp/gdal-2.3.0/ogr -I/tmp/gdal-2.3.0/ogr/ogrsf_frmts -I/tmp/gdal-2.3.0/gnm -I/tmp/gdal-2.3.0/apps -Wold-style-cast -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -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 -Wzero-as-null-pointer-constant -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -I/tmp/gdal-2.3.0/ogr/ogrsf_frmts/geojson/libjson -DINST_DATA=\"/usr/local/share/gdal\" -DHAVE_CURL -DHAVE_LIBZ -I/usr/include/libxml2 -DHAVE_LIBXML2 -DUSE_ONLY_CRYPTODLL_ALG -DHAVE_OPENSSL_CRYPTO -c -o cplgetsymbol.lo cplgetsymbol.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.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
(cd gcore; make)
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_error.lo] Error 1
(cd frmts; make)
make[1]: Entering directory `/tmp/gdal-2.3.0/frmts'
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CXX g++ -std=c++11 -c -I/tmp/gdal-2.3.0/port -I/tmp/gdal-2.3.0/gcore -I/tmp/gdal-2.3.0/alg -I/tmp/gdal-2.3.0/ogr -I/tmp/gdal-2.3.0/ogr/ogrsf_frmts -I/tmp/gdal-2.3.0/gnm -I/tmp/gdal-2.3.0/apps -I/tmp/gdal-2.3.0/gnm -I/tmp/gdal-2.3.0/gnm/gnm_frmts -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -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 -Wzero-as-null-pointer-constant -DGNM_ENABLED -DFRMT_gxf -DFRMT_gtiff -DFRMT_hfa -DFRMT_aigrid -DFRMT_aaigrid -DFRMT_ceos -DFRMT_ceos2 -DFRMT_iso8211 -DFRMT_xpm -DFRMT_sdts -DFRMT_raw -DFRMT_dted -DFRMT_mem -DFRMT_jdem -DFRMT_envisat -DFRMT_elas -DFRMT_fit -DFRMT_vrt -DFRMT_usgsdem -DFRMT_l1b -DFRMT_nitf -DFRMT_bmp -DFRMT_airsar -DFRMT_rs2 -DFRMT_ilwis -DFRMT_rmf -DFRMT_leveller -DFRMT_sgi -DFRMT_srtmhgt -DFRMT_idrisi -DFRMT_gsg -DFRMT_ingr -DFRMT_ers -DFRMT_jaxapalsar -DFRMT_dimap -DFRMT_gff -DFRMT_cosar -DFRMT_pds -DFRMT_adrg -DFRMT_coasp -DFRMT_tsx -DFRMT_terragen -DFRMT_blx -DFRMT_msgn -DFRMT_til -DFRMT_r -DFRMT_northwood -DFRMT_saga -DFRMT_xyz -DFRMT_hf2 -DFRMT_kmlsuperoverlay -DFRMT_ctg -DFRMT_e00grid -DFRMT_zmap -DFRMT_ngsgeoid -DFRMT_iris -DFRMT_map -DFRMT_cals -DFRMT_safe -DFRMT_sentinel2 -DFRMT_derived -DFRMT_prf -DFRMT_mrf -DFRMT_wcs -DFRMT_wms -DFRMT_plmosaic -DFRMT_wmts -DFRMT_rda -DFRMT_grib -DFRMT_bsb -DFRMT_netcdf -DFRMT_hdf5 -DFRMT_gif -DFRMT_jpeg -DFRMT_png -DFRMT_pcraster -DFRMT_pcidsk -DFRMT_rik -DFRMT_ozi -DFRMT_pdf -DFRMT_postgisraster -DFRMT_arg \
-DGDAL_FORMATS=" gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp airsar rs2 ilwis rmf leveller sgi srtmhgt idrisi gsg ingr ers jaxapalsar dimap gff cosar pds adrg coasp tsx terragen blx msgn til r northwood saga xyz hf2 kmlsuperoverlay ctg e00grid zmap ngsgeoid iris map cals safe sentinel2 derived prf mrf wcs wms plmosaic wmts rda grib bsb netcdf hdf5 gif jpeg png pcraster pcidsk rik ozi pdf postgisraster arg" \
gdalallregister.cpp -o o/gdalallregister.lo
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’
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_string.lo] Error 1
make -C gxf install-obj
make[1]: *** [cplgetsymbol.lo] Error 1
make[1]: Leaving directory `/tmp/gdal-2.3.0/port'
make: *** [port-target] Error 2
make: *** Waiting for unfinished jobs....
make -C gtiff install-obj
make[1]: Entering directory `/tmp/gdal-2.3.0/gcore'
make -C mdreader
make[2]: Entering directory `/tmp/gdal-2.3.0/frmts/gxf'
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CXX g++ -std=c++11 -I/tmp/gdal-2.3.0/port -I/tmp/gdal-2.3.0/gcore -I/tmp/gdal-2.3.0/alg -I/tmp/gdal-2.3.0/ogr -I/tmp/gdal-2.3.0/ogr/ogrsf_frmts -I/tmp/gdal-2.3.0/gnm -I/tmp/gdal-2.3.0/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -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 -Wzero-as-null-pointer-constant -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -c -o ../o/gxfdataset.lo gxfdataset.cpp
make[2]: Entering directory `/tmp/gdal-2.3.0/frmts/gtiff'
(cd libgeotiff; make install-obj)
make[2]: Entering directory `/tmp/gdal-2.3.0/gcore/mdreader'
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CXX g++ -std=c++11 -I/tmp/gdal-2.3.0/port -I/tmp/gdal-2.3.0/gcore -I/tmp/gdal-2.3.0/alg -I/tmp/gdal-2.3.0/ogr -I/tmp/gdal-2.3.0/ogr/ogrsf_frmts -I/tmp/gdal-2.3.0/gnm -I/tmp/gdal-2.3.0/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -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 -Wzero-as-null-pointer-constant -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -c -o ../reader_digital_globe.lo reader_digital_globe.cpp
make[3]: Entering directory `/tmp/gdal-2.3.0/frmts/gtiff/libgeotiff'
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CC gcc -c -I../../port -I../libtiff -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wduplicated-cond -Wfloat-conversion -std=gnu89 -DDONT_DEPRECATE_SPRINTF xtiff.c -o ../../o/xtiff.lo
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[2]: *** [../o/gxfdataset.lo] Error 1
make[2]: Leaving directory `/tmp/gdal-2.3.0/frmts/gxf'
make[1]: *** [gxf-install-obj] Error 2
make[1]: *** Waiting for unfinished jobs....
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CXX g++ -std=c++11 -I/tmp/gdal-2.3.0/port -I/tmp/gdal-2.3.0/gcore -I/tmp/gdal-2.3.0/alg -I/tmp/gdal-2.3.0/ogr -I/tmp/gdal-2.3.0/ogr/ogrsf_frmts -I/tmp/gdal-2.3.0/gnm -I/tmp/gdal-2.3.0/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -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 -Wzero-as-null-pointer-constant -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -c -o ../reader_geo_eye.lo reader_geo_eye.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[2]: *** [../reader_digital_globe.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CC gcc -c -I../../port -I../libtiff -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wduplicated-cond -Wfloat-conversion -std=gnu89 -DDONT_DEPRECATE_SPRINTF geo_free.c -o ../../o/geo_free.lo
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[2]: *** [../reader_geo_eye.lo] Error 1
make[2]: Leaving directory `/tmp/gdal-2.3.0/gcore/mdreader'
make[1]: *** [mdreader-target] Error 2
make[1]: Leaving directory `/tmp/gdal-2.3.0/gcore'
make: *** [core-target] Error 2
(cd libtiff; make install-obj)
make[3]: Entering directory `/tmp/gdal-2.3.0/frmts/gtiff/libtiff'
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CC gcc -c -I../../port -g -O2 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wduplicated-cond -Wfloat-conversion -std=gnu89 -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -DDONT_DEPRECATE_SPRINTF -DPIXARLOG_SUPPORT -DZIP_SUPPORT -DJPEG_SUPPORT -DOJPEG_SUPPORT tif_aux.c -o ../../o/tif_aux.lo
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]: *** [o/gdalallregister.lo] Error 1
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CC gcc -c -I../../port -g -O2 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wduplicated-cond -Wfloat-conversion -std=gnu89 -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -DDONT_DEPRECATE_SPRINTF -DPIXARLOG_SUPPORT -DZIP_SUPPORT -DJPEG_SUPPORT -DOJPEG_SUPPORT tif_close.c -o ../../o/tif_close.lo
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CC gcc -c -I../../port -I../libtiff -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wduplicated-cond -Wfloat-conversion -std=gnu89 -DDONT_DEPRECATE_SPRINTF geo_get.c -o ../../o/geo_get.lo
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CXX g++ -std=c++11 -I/tmp/gdal-2.3.0/port -I/tmp/gdal-2.3.0/gcore -I/tmp/gdal-2.3.0/alg -I/tmp/gdal-2.3.0/ogr -I/tmp/gdal-2.3.0/ogr/ogrsf_frmts -I/tmp/gdal-2.3.0/gnm -I/tmp/gdal-2.3.0/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -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 -Wzero-as-null-pointer-constant -I.. -I../jpeg -DHAVE_LIBJPEG -DINTERNAL_LIBGEOTIFF -Ilibgeotiff -DINTERNAL_LIBTIFF -Ilibtiff -DBIGTIFF_SUPPORT -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -c -o ../o/geotiff.lo geotiff.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[2]: *** [../o/geotiff.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CC gcc -c -I../../port -g -O2 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wduplicated-cond -Wfloat-conversion -std=gnu89 -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -DDONT_DEPRECATE_SPRINTF -DPIXARLOG_SUPPORT -DZIP_SUPPORT -DJPEG_SUPPORT -DOJPEG_SUPPORT tif_codec.c -o ../../o/tif_codec.lo
[... similar lines without errors ...]
/bin/sh /tmp/gdal-2.3.0/libtool --mode=compile --silent --tag=CC gcc -c -I../../port -g -O2 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wduplicated-cond -Wfloat-conversion -std=gnu89 -DGNM_ENABLED -I/tmp/gdal-2.3.0/port -I/usr/include -DGDAL_COMPILATION -DDONT_DEPRECATE_SPRINTF -DPIXARLOG_SUPPORT -DZIP_SUPPORT -DJPEG_SUPPORT -DOJPEG_SUPPORT tif_zstd.c -o ../../o/tif_zstd.lo
make[3]: Leaving directory `/tmp/gdal-2.3.0/frmts/gtiff/libtiff'
make[2]: Leaving directory `/tmp/gdal-2.3.0/frmts/gtiff'
make[1]: *** [gtiff-install-obj] Error 2
make[1]: Leaving directory `/tmp/gdal-2.3.0/frmts'
make: *** [frmts-target] Error 2
I am a complete rookie in linux, so not sure how to move forward or interpret the error. I can successfully build 2.0 by following this guide, but attempts to build any more recent versions fail with output similar to the one below (whether I just adapt the guide above, follow this other one, or just try to config without specifying any options).
As requested in the comments, I have tried the following config options (following instructions linked above) - all seem to give the same error output when I make the directory:
./configure --with-static-proj4=/usr/local/lib --with-threads --with-pg=/usr/bin/pg_config
./configure --prefix=/usr/local --without-python
./configure --prefix=/usr/local
./configure
g++: error: unrecognized ... option -Wdate-time , -Wnull-dereference ,
-Wduplicated-cond, -Wfloat-conversion
Seems to be a poorly configured / built gcc/g++ -4.8.5 . gdal-2.x.x was built OK with "any" g++ version ...
gdal-2.2.4-fedora/ ← gdal-2.2.4-fedora.tar.xz : gcc-7.3
gdal-2.3.0/ ← gdal_2.3.0+dfsg.orig.tar.xz : gcc-7.3
gdal-2.3.0/ ← gdal_2.3.0+dfsg.orig.tar.xz : gcc-4.8 (result packed with rpmbuild)
gdal-2.1.4-fedora/ ← gdal-2.1.4-fedora.tar.xz + patches: gcc-4.8 (+ most config options)
gdal-2.1.2/ ← gdal_2.1.2+dfsg.orig.tar.gz : gcc-6.3
gdal-2.1.2/ ← gdal_2.1.2+dfsg.orig.tar.gz : gcc-4.9
gdal-2.1.2/ ← gdal_2.1.2+dfsg.orig.tar.gz : gcc-4.8
BuildRequires, for the most options: # yum install armadillo-devel cfitsio-devel freexl-devel g2clib-static geos-devel hdf-devel hdf-static jasper-devel libgeotiff-devel libgta-devel libtiff-devel libwebp-devel giflib-devel netcdf-devel libdap-devel librx-devel ogdi-devel openjpeg2-devel poppler-devel proj-devel unixODBC-devel bash-completion json-c-devel perl-generators
Package example, "all-in-one" gdal2-2.3.0-1.el7.x86_64.rpm https://drive.google.com/file/d/1xCYT3m4Br4VmakaZsYK_mXhXhYNS8c7a/view?usp=sharing , configured with $ ./configure --prefix=/usr --libdir=/usr/lib64
Download, and install : # yum install Downloads/gdal2-2.3.0-1.el7.x86_64.rpm
P.S. : Possible config options with CentOS 7.5 (and maybe "Amazon AWS ec2 ?) are :
./configure \
--prefix=/usr \
--libdir=/usr/lib64 \
--with-armadillo \
--with-curl \
--with-cfitsio \
--with-expat \
--with-freexl \
--with-geos \
--with-geotiff=external \
--with-gif \
--with-gta \
--with-hdf4 \
--with-hdf5 \
--with-jasper \
--with-java \
--with-jpeg \
--with-libjson-c \
--without-jpeg12 \
--with-liblzma \
--with-libtiff=external \
--with-libz \
--without-mdb \
--with-mysql \
--with-netcdf \
--with-odbc \
--with-ogdi \
--without-msg \
--with-openjpeg \
--with-pcraster \
--with-pg \
--with-png \
--with-poppler \
--with-sqlite3 \
--with-threads \
--with-webp \
--with-xerces \
--enable-shared \
--with-perl \
--with-python
Related
CentOS 7, kernel 5.12.8-1.el7.elrepo.x86_64, VirtualBox 6.1
I want to execute this command:
sudo /sbin/vboxconfig
but I get error:
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
Here content of file vbox-setup.log
Building the main VirtualBox module.
Error building the module:
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/5.12.8-1.el7.elrepo.x86_64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j12 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
make -C /usr/src/kernels/5.12.8-1.el7.elrepo.x86_64 -f /usr/src/kernels/5.12.8-1.el7.elrepo.x86_64/Makefile modules
make -f ./scripts/Makefile.build obj=/tmp/vbox.0 \
single-build= \
need-builtin=1 need-modorder=1
gcc -Wp,-MMD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -fno-strict-overflow -fno-stack-check -Werror=date-time -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie -Wno-declaration-after-statement -I./include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV -DIPRT_WITHOUT_EFLAGS_AC_PRESERVING -DVBOX_WITH_64_BITS_GUESTS -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DMODULE -DKBUILD_BASENAME='"SUPDrv_linux"' -DKBUILD_MODNAME='"vboxdrv"' -D__KBUILD_MODNAME=kmod_vboxdrv -c -o /tmp/vbox.0/linux/SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
gcc: error: unrecognized command line option ‘-mrecord-mcount’
gcc -Wp,-MMD,/tmp/vbox.0/.SUPDrv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -fno-strict-overflow -fno-stack-check -Werror=date-time -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie -Wno-declaration-after-statement -I./include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV -DIPRT_WITHOUT_EFLAGS_AC_PRESERVING -DVBOX_WITH_64_BITS_GUESTS -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DMODULE -DKBUILD_BASENAME='"SUPDrv"' -DKBUILD_MODNAME='"vboxdrv"' -D__KBUILD_MODNAME=kmod_vboxdrv -c -o /tmp/vbox.0/SUPDrv.o /tmp/vbox.0/SUPDrv.c
make[3]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 1
make[3]: *** Waiting for unfinished jobs....
gcc: error: unrecognized command line option ‘-mrecord-mcount’
make[3]: *** [/tmp/vbox.0/SUPDrv.o] Error 1
make[2]: *** [/tmp/vbox.0] Error 2
make[1]: *** [__sub-make] Error 2
make: *** [vboxdrv] Error 2
CentOS 7 is shipped with gcc 4.8.5 and newer ELrepo kernels need newer gcc to compile modules. So you need to install devtoolset.
# yum -y install centos-release-scl
# yum -y install devtoolset-9
After this, patch the /usr/share/virtualbox/src/vboxhost/build_in_tmp by adding the devtoolset-9 env to the top of the file, either by copying contents of /opt/rh/devtoolset-9/enable or adding manually the following:
export INFOPATH=/opt/rh/devtoolset-9/root/usr/share/info
export LD_LIBRARY_PATH=/opt/rh/devtoolset-9/root/usr/lib64:/opt/rh/devtoolset-9/root/usr/lib:/opt/rh/devtoolset-9/root/usr/lib64/dyninst:/opt/rh/devtoolset-9/root/usr/lib/dyninst:/opt/rh/devtoolset-9/root/usr/lib64:/opt/rh/devtoolset-9/root/usr/lib
export PATH=/opt/rh/devtoolset-9/root/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/puppetlabs/bin:/root/bin
export PCP_DIR=/opt/rh/devtoolset-9/root
export PKG_CONFIG_PATH=/opt/rh/devtoolset-9/root/usr/lib64/pkgconfig
export SHLVL=4
export X_SCLS=devtoolset-9
After this, run:
# /sbin/vboxconfig
# systemctl enable --now vboxdrv
And you're done!
I want to build DRAMPower for GEM5 and it gives error when i run the command "make -j4"
Downloaded DRAMPower.zip and then after unzipping it running the make command
The Error which is get is:
g++ -O -W -pedantic-errors -Wextra -Werror -Wformat -Wformat-
nonliteral -Wpointer-arith -Wcast-align -Wconversion -Wall -Werror -g
-std=c++0x -MMD -MF src/TraceParser.d -iquote src -o src/TraceParser.o
-c src/TraceParser.cc
g++ -O -W -pedantic-errors -Wextra -Werror -Wformat -Wformat-
nonliteral -Wpointer-arith -Wcast-align -Wall -Werror -g -std=c++0x
-MMD -MF src/CmdScheduler.d -iquote src -o src/CmdScheduler.o -c
src/CmdScheduler.cc
g++ -O -W -pedantic-errors -Wextra -Werror -Wformat -Wformat-
nonliteral -Wpointer-arith -Wcast-align -Wconversion -Wall -Werror -g
-std=c++0x -MMD -MF src/cli/drampower.d -iquote src -o
src/cli/drampower.o -c src/cli/drampower.cc
g++ -O -W -pedantic-errors -Wextra -Werror -Wformat -Wformat-
nonliteral -Wpointer-arith -Wcast-align -Wconversion -Wall -Werror -g
-std=c++0x -MMD -MF src/libdrampower/LibDRAMPower.d -iquote src -o
src/libdrampower/LibDRAMPower.o -c src/libdrampower/LibDRAMPower.cc
In file included from src/CommandAnalysis.h:55:0, from
src/TraceParser.h:46,
from src/TraceParser.cc:37:
src/Utils.h:49:1: error: dynamic exception specifications are
deprecated in C++11 [-Werror=deprecated]
throw(std::runtime_error)
In file included from src/CommandAnalysis.h:55:0,
from src/libdrampower/LibDRAMPower.h:48,
from src/libdrampower/LibDRAMPower.cc:42:
src/Utils.h:49:1: error: dynamic exception specifications are
deprecated in C++11 [-Werror=deprecated]
throw(std::runtime_error)
src/Utils.h:49:1: error: dynamic exception specifications are
deprecated in C++11 [-Werror=deprecated]
throw(std::runtime_error)
cc1plus: all warnings being treated as errors
Makefile:106: recipe for target 'src/libdrampower/LibDRAMPower.o'
failed
make: *** [src/libdrampower/LibDRAMPower.o] Error 1
make: *** Waiting for unfinished jobs....
cc1plus: all warnings being treated as errors
Makefile:106: recipe for target 'src/cli/drampower.o' failed
make: *** [src/cli/drampower.o] Error 1
cc1plus: all warnings being treated as errors
Makefile:106: recipe for target 'src/TraceParser.o' failed
make: *** [src/TraceParser.o] Error 1
cc1plus: all warnings being treated as errors
Makefile:102: recipe for target 'src/CmdScheduler.o' failed
make: *** [src/CmdScheduler.o] Error 1
When I try building cpprestsdk with a cross compiler gcc I've the following issue:
cd /home/ubuntu/projects/cpprestsdk/Release/build_qamf-dev/src && /opt/qamf-dev/x86_64-qamf/bin/x86_64-qamf-linux-gnu-g++ -DCPPREST_EXCLUDE_BROTLI=1 -DCPPREST_FORCE_HTTP_CLIENT_ASIO -DCPPREST_FORCE_HTTP_LISTENER_ASIO -DCPPREST_NO_SSL_LEAK_SUPPRESS -Dcpprest_EXPORTS -I/home/ubuntu/projects/cpprestsdk/Release/include -I/home/ubuntu/projects/cpprestsdk/Release/src/pch -I/home/ubuntu/projects/cpprestsdk/Release/libs/websocketpp -isystem /opt/qamf-dev/x86_64-qamf/x86_64-qamf-linux-gnu/sysroot/usr/include -std=c++11 -fno-strict-aliasing -O3 -DNDEBUG -fPIC -Werror -pedantic -Wall -Wextra -Wunused-parameter -Wcast-align -Wcast-qual -Wconversion -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wpacked -Wredundant-decls -Wunreachable-code -o CMakeFiles/cpprest.dir/http/oauth/oauth2.cpp.o -c /home/ubuntu/projects/cpprestsdk/Release/src/http/oauth/oauth2.cpp
cd /home/ubuntu/projects/cpprestsdk/Release/build_qamf-dev/src && /opt/qamf-dev/x86_64-qamf/bin/x86_64-qamf-linux-gnu-g++ -DCPPREST_EXCLUDE_BROTLI=1 -DCPPREST_FORCE_HTTP_CLIENT_ASIO -DCPPREST_FORCE_HTTP_LISTENER_ASIO -DCPPREST_NO_SSL_LEAK_SUPPRESS -Dcpprest_EXPORTS -I/home/ubuntu/projects/cpprestsdk/Release/include -I/home/ubuntu/projects/cpprestsdk/Release/src/pch -I/home/ubuntu/projects/cpprestsdk/Release/libs/websocketpp -isystem /opt/qamf-dev/x86_64-qamf/x86_64-qamf-linux-gnu/sysroot/usr/include -std=c++11 -fno-strict-aliasing -O3 -DNDEBUG -fPIC -Werror -pedantic -Wall -Wextra -Wunused-parameter -Wcast-align -Wcast-qual -Wconversion -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wpacked -Wredundant-decls -Wunreachable-code -o CMakeFiles/cpprest.dir/json/json.cpp.o -c /home/ubuntu/projects/cpprestsdk/Release/src/json/json.cpp
[ 7%] Building CXX object src/CMakeFiles/cpprest.dir/http/oauth/oauth1.cpp.o
cd /home/ubuntu/projects/cpprestsdk/Release/build_qamf-dev/src && /opt/qamf-dev/x86_64-qamf/bin/x86_64-qamf-linux-gnu-g++ -DCPPREST_EXCLUDE_BROTLI=1 -DCPPREST_FORCE_HTTP_CLIENT_ASIO -DCPPREST_FORCE_HTTP_LISTENER_ASIO -DCPPREST_NO_SSL_LEAK_SUPPRESS -Dcpprest_EXPORTS -I/home/ubuntu/projects/cpprestsdk/Release/include -I/home/ubuntu/projects/cpprestsdk/Release/src/pch -I/home/ubuntu/projects/cpprestsdk/Release/libs/websocketpp -isystem /opt/qamf-dev/x86_64-qamf/x86_64-qamf-linux-gnu/sysroot/usr/include -std=c++11 -fno-strict-aliasing -O3 -DNDEBUG -fPIC -Werror -pedantic -Wall -Wextra -Wunused-parameter -Wcast-align -Wcast-qual -Wconversion -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wpacked -Wredundant-decls -Wunreachable-code -o CMakeFiles/cpprest.dir/http/oauth/oauth1.cpp.o -c /home/ubuntu/projects/cpprestsdk/Release/src/http/oauth/oauth1.cpp
[ 10%] Building CXX object src/CMakeFiles/cpprest.dir/uri/uri_builder.cpp.o
[ 7%] Building CXX object src/CMakeFiles/cpprest.dir/json/json_serialization.cpp.o
[ 8%] Building CXX object src/CMakeFiles/cpprest.dir/uri/uri.cpp.o
In file included from /opt/qamf-dev/x86_64-qamf/x86_64-qamf-linux-gnu/include/c++/8.2.0/ext/string_conversions.h:41,
from /opt/qamf-dev/x86_64-qamf/x86_64-qamf-linux-gnu/include/c++/8.2.0/bits/basic_string.h:6391,
from /opt/qamf-dev/x86_64-qamf/x86_64-qamf-linux-gnu/include/c++/8.2.0/string:52,
from /home/ubuntu/projects/cpprestsdk/Release/src/pch/stdafx.h:55,
from /home/ubuntu/projects/cpprestsdk/Release/src/http/client/http_client_msg.cpp:13:
/opt/qamf-dev/x86_64-qamf/x86_64-qamf-linux-gnu/include/c++/8.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^~~~~~~~~~
In file included from /opt/qamf-dev/x86_64-qamf/x86_64-qamf-linux-gnu/include/c++/8.2.0/ext/string_conversions.h:41,
from /opt/qamf-dev/x86_64-qamf/x86_64-qamf-linux-gnu/include/c++/8.2.0/bits/basic_string.h:6391,
from /opt/qamf-dev/x86_64-qamf/x86_64-qamf-linux-gnu/include/c++/8.2.0/string:52,
from /home/ubuntu/projects/cpprestsdk/Release/src/pch/stdafx.h:55,
from /home/ubuntu/projects/cpprestsdk/Release/src/http/client/http_client.cpp:16:
/opt/qamf-dev/x86_64-qamf/x86_64-qamf-linux-gnu/include/c++/8.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^~~~~~~~~~
compilation terminated.
In file included from /opt/qamf-dev/x86_64-qamf/x86_64-qamf-linux-gnu/include/c++/8.2.0/ext/string_conversions.h:41,
from /opt/qamf-dev/x86_64-qamf/x86_64-qamf-linux-gnu/include/c++/8.2.0/bits/basic_string.h:6391,
from /opt/qamf-dev/x86_64-qamf/x86_64-qamf-linux-gnu/include/c++/8.2.0/string:52,
from /home/ubuntu/projects/cpprestsdk/Release/src/pch/stdafx.h:55,
from /home/ubuntu/projects/cpprestsdk/Release/src/http/common/http_compression.cpp:14:
/opt/qamf-dev/x86_64-qamf/x86_64-qamf-linux-gnu/include/c++/8.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^~~~~~~~~~
compilation terminated.
If I replace -isystem with a simple -I everything works well...
I know the gcc is working well cos I already built zlib openssl opencv and boost 1.69.
EDIT
To avoid the problem I edited the Makefile generated by cmake and removed -isystem from cxx flags
I'm using a supercluster which only uses glibc 2.12. I managed to install Bazel(version 0.15.0) successfully, but failed to bazel build tensorflow with a long error log, a part of which is:
ERROR: /home2/yangto/.cache/bazel/_bazel_yangto/b9c3b9594c932d1e804df44467c1c0d2/external/boringssl/BUILD:115:1: C++ compilation of rule '#boringssl//:crypto' failed (Exit 1)
external/boringssl/linux-x86_64/crypto/fipsmodule/rsaz-avx2.S: Assembler messages:
external/boringssl/linux-x86_64/crypto/fipsmodule/rsaz-avx2.S:37: Error: suffix or operands invalid for 'vpxor'
external/boringssl/linux-x86_64/crypto/fipsmodule/rsaz-avx2.S:80: Error: no such instruction: 'vpbroadcastq .Land_mask(%rip),%ymm15'
external/boringssl/linux-x86_64/crypto/fipsmodule/rsaz-avx2.S:91: Error: suffix or operands invalid for 'vpaddq'
external/boringssl/linux-x86_64/crypto/fipsmodule/rsaz-avx2.S:92: Error: no such instruction: 'vpbroadcastq 0-128(%rsi),%ymm10'
external/boringssl/linux-x86_64/crypto/fipsmodule/rsaz-avx2.S:93: Error: suffix or operands invalid for 'vpaddq'
.... .etc
And when using --verbose_failures to monitor the failure, I obtained the following message:
/home2/my_name/.cache/bazel/_bazel_my_name/b9c3b9594c932d1e804df44467c1c0d2/external/boringssl/BUILD:115:1:
C++ compilation of rule '#boringssl//:crypto' failed (Exit 1):
gcc failed: error executing command
cd /home2/my_name/.cache/bazel/_bazel_my_name/b9c3b9594c932d1e804df44467c1c0d2/execroot/org_tensorflow && \
exec env - \
LD_LIBRARY_PATH=/usr/public/gnu/gcc/4.8.4/lib:
/usr/public/gnu/gcc/4.8.4/lib64:
/usr/local/cuda-8.0/lib64:
/usr/public/torque/lib \
PATH=/home2/my_name/bazel/output:
/home2/my_name/anaconda3/bin:
/usr/public/gnu/gcc/4.8.4/bin:
/usr/local/cuda-8.0/bin:
/usr/local/cuda-8.0/samples/bin/x86_64/linux/release:
/usr/public/torque/bin:
/usr/public/torque/sbin:
/usr/public/moab/bin:
/usr/public/moab/sbin:
/usr/local/sbin:
/usr/sbin:
/sbin:
/home2/my_name/bin:
/usr/lib64/qt-3.3/bin:
/usr/local/bin:
/bin:
/usr/bin:
/opt/ganglia/bin:
/opt/ganglia/sbin:
/usr/java/latest/bin:
/opt/rocks/bin \
PWD=/proc/self/cwd \
PYTHON_BIN_PATH=/home2/my_name/anaconda3/bin/python \
PYTHON_LIB_PATH=/home2/my_name/anaconda3/lib/python3.6/site-packages \
TF_DOWNLOAD_CLANG=0 \
TF_NEED_CUDA=0 \
TF_NEED_OPENCL_SYCL=0 \
/usr/public/gnu/gcc/4.8.4/bin/gcc
-U_FORTIFY_SOURCE
-fstack-protector
-Wall
-B/usr/public/gnu/gcc/4.8.4/bin
-B/usr/bin
-Wunused-but-set-parameter
-Wno-free-nonheap-object
-fno-omit-frame-pointer
-g0 -O2
'-D_FORTIFY_SOURCE=1'
-DNDEBUG
-ffunction-sections
-fdata-sections
-MD -MF
bazel-out/k8-opt/bin/external/boringssl/_objs/crypto/external/boringssl/linux-x86_64/crypto/fipsmodule/p256-x86_64-asm.pic.d
-fPIC
-iquote external/boringssl
-iquote bazel-out/k8-opt/genfiles/external/boringssl
-iquote external/bazel_tools
-iquote bazel-out/k8-opt/genfiles/external/bazel_tools
-isystem external/boringssl/src/include
-isystem bazel-out/k8-opt/genfiles/external/boringssl/src/include
-isystem bazel-out/k8-opt/bin/external/boringssl/src/include
'-march=native'
-DGPR_BACKWARDS_COMPATIBILITY_MODE
-Wa,--noexecstack
'-D_XOPEN_SOURCE=700'
-Wall
-Werror
'-Wformat=2'
-Wsign-compare
-Wmissing-field-initializers
-Wwrite-strings
-Wshadow
-fno-common
'-std=c11'
-Wmissing-prototypes
-Wold-style-definition
-Wstrict-prototypes
-fno-canonical-system-headers
-Wno-builtin-macro-redefined
'-D__DATE__="redacted"'
'-D__TIMESTAMP__="redacted"'
'-D__TIME__="redacted"'
-c external/boringssl/linux-x86_64/crypto/fipsmodule/p256-x86_64-asm.S
-o bazel-out/k8-opt/bin/external/boringssl/_objs/crypto/external/boringssl/linux-x86_64/crypto/fipsmodule/p256-x86_64-asm.pic.o
Can anyone help me with this? (I've looked through online for similar problems but still struggling).
Additionally Note:
I'm using shared supercluster without sudo permission. Wondering if there would be any solutions in my case...
hi i want to use cocos2dx android studio in windows.
i downloaded android-ndk-r12, android studio and apache-ant-1.9.7. cocos2dx 3.11.1
now i am successfully create a project by using command cocos.py new MyGame -p com.MyCompany.MyGame -l cpp -d I:\Work\cocos2dx.
But where i am using cocos.py compile -p android --android-studio to compile i am getting this error
[armeabi] "Compile++ thumb": "MyGame_shared <= AppDelegate.cpp"
process_begin: CreateProcess(NULL, I:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/armeabi/objs-debug/MyGame_shared/hellocpp/ma
in.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -g -march=armv5te -mtune=xscale -msoft-float -fno-exceptions -fno-rtti -mthumb -O0 -UNDEBUG -Ijni/../../../Classes -II:/Software/ProgramingSoftware/cocos2dx/android
-ndk-r12/build//../sources/cxx-stl/gnu-libstdc++/4.9/include -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../sources/c
xx-stl/gnu-libstdc++/4.9/include/backward -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/cocostudio/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/cocosbuilder/.. -II:/Work/cocos2dx/MyGame/proj.an
droid-studio/../cocos2d/cocos/3d/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/spine/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/network -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/audi
o/android/../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/ui/../editor-support -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/audio/android/../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/fl
atbuffers/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/GUI/CCControlExtension -II:/Work/cocos2
dx/MyGame/proj.android-studio/../cocos2d/extensions/GUI/CCScrollView -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/coc
os/./.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/tinyxml2 -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/unzip -II:/Wo
rk/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/chipmunk/include/chipmunk -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/xxhash -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/nslo
g -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/poly2tri -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/poly2tri/common -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/pol
y2tri/sweep -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/clipper -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/websockets/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/..
/cocos2d/external/Box2D/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/bullet/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/freetype2/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-stud
io/../cocos2d/external/freetype2/prebuilt/android/../../include/android/freetype2 -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/png/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/jpeg
/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/tiff/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/webp/prebuilt/android/../../include/android -
II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/chipmunk/prebuilt/android/../../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/zlib/prebuilt/android/../../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos
2d/external/recast/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/platform/android -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../sources/android/cpufeatures -Ijni -DANDROID -DUSE_FILE32API -Wa,--noexecstack -Wformat -Wer
ror=format-security -Wno-deprecated-declarations -Wno-extern-c-compat -D__STDC_LIMIT_MACROS=1 -Wno-extern-c-compat -fexceptions -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char -DCOCOS2D_DEBUG=1 -isystem I:/Software/ProgramingSoftware/cocos2dx
/android-ndk-r12/build//../platforms/android-19/arch-arm/usr/include -c jni/hellocpp/main.cpp -o ./obj/local/armeabi/objs-debug/MyGame_shared/hellocpp/main.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: * [obj/local/armeabi/objs-debug/MyGame_shared/hellocpp/main.o] Error 2
make: * Waiting for unfinished jobs....
process_begin: CreateProcess(NULL, I:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/armeabi/objs-debug/MyGame_shared////Cl
asses/AppDelegate.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -g -march=armv5te -mtune=xscale -msoft-float -fno-exceptions -fno-rtti -mthumb -O0 -UNDEBUG -Ijni/../../../Classes -II:/Software/ProgramingSoftware/c
ocos2dx/android-ndk-r12/build//../sources/cxx-stl/gnu-libstdc++/4.9/include -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/buil
d//../sources/cxx-stl/gnu-libstdc++/4.9/include/backward -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/cocostudio/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/cocosbuilder/.. -II:/Work/cocos2dx
/MyGame/proj.android-studio/../cocos2d/cocos/3d/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/spine/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/network -II:/Work/cocos2dx/MyGame/proj.android-studio/../coc
os2d/cocos/audio/android/../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/ui/../editor-support -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/audio/android/../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../coco
s2d/external/flatbuffers/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/GUI/CCControlExtension -
II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/GUI/CCScrollView -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./. -II:/Work/cocos2dx/MyGame/proj.android-studio
/../cocos2d/cocos/./.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/tinyxml2 -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../externa
l/unzip -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/chipmunk/include/chipmunk -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/xxhash -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./.
./external/nslog -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/poly2tri -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/poly2tri/common -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./
../external/poly2tri/sweep -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/clipper -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/websockets/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.an
droid-studio/../cocos2d/external/Box2D/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/bullet/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/freetype2/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/pr
oj.android-studio/../cocos2d/external/freetype2/prebuilt/android/../../include/android/freetype2 -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/png/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2
d/external/jpeg/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/tiff/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/webp/prebuilt/android/../../in
clude/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/chipmunk/prebuilt/android/../../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/zlib/prebuilt/android/../../include -II:/Work/cocos2dx/MyGame/proj.android-
studio/../cocos2d/external/recast/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/platform/android -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../sources/android/cpufeatures -Ijni -DANDROID -DUSE_FILE32API -Wa,--noexecstac
k -Wformat -Werror=format-security -Wno-deprecated-declarations -Wno-extern-c-compat -D__STDC_LIMIT_MACROS=1 -Wno-extern-c-compat -fexceptions -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char -DCOCOS2D_DEBUG=1 -isystem I:/Software/ProgramingSo
ftware/cocos2dx/android-ndk-r12/build//../platforms/android-19/arch-arm/usr/include -c jni/../../../Classes/AppDelegate.cpp -o ./obj/local/armeabi/objs-debug/MyGame_shared////Classes/AppDelegate.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [obj/local/armeabi/objs-debug/MyGame_shared///__/Classes/AppDelegate.o] Error 2
make: Leaving directory `I:/Work/cocos2dx/MyGame/proj.android-studio/app'
Error running command, return code: 2.
That command made everything works for me :
cocos compile -p android --android-studio --app-abi armeabi
But it only gonna compile it for the abi armeabi architecture.