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
Related
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 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
Operating System: CentOS 6.8
Compiler: gcc 4.8.2 and g++4.8.2
Steps to reproduce
Just follow the steps at installation guide
My steps
git clone --recursive https://github.com/dmlc/xgboost
git submodule init
git submodule update
cd xgboost
make -j4
Then I get the error below
[root#xxx]# make -j4
g++ -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp -MM -MT build/learner.o src/learner.cc >build/learner.d
g++ -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp -MM -MT build/logging.o src/logging.cc >build/logging.d
g++ -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp -MM -MT build/c_api/c_api.o src/c_api/c_api.cc >build/c_api/c_api.d
g++ -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -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++ -c -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp src/c_api/c_api_error.cc -o build/c_api/c_api_error.o
g++ -c -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp src/learner.cc -o build/learner.o
g++ -c -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp src/logging.cc -o build/logging.o
g++ -c -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp src/c_api/c_api.cc -o build/c_api/c_api.o
g++ -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp -MM -MT build/common/common.o src/common/common.cc >build/common/common.d
g++ -c -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp src/common/common.cc -o build/common/common.o
g++ -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp -MM -MT build/data/data.o src/data/data.cc >build/data/data.d
g++ -c -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp src/data/data.cc -o build/data/data.o
g++ -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp -MM -MT build/data/simple_csr_source.o src/data/simple_csr_source.cc >build/data/simple_csr_source.d
g++ -c -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp src/data/simple_csr_source.cc -o build/data/simple_csr_source.o
/tmp/ccNp7oXM.s: Assembler messages:
/tmp/ccNp7oXM.s:148: Error: expecting string instruction after `rep'
/tmp/ccNp7oXM.s:1796: Error: expecting string instruction after `rep'
/tmp/ccNp7oXM.s:4394: Error: expecting string instruction after `rep'
make: *** [build/data/simple_csr_source.o] Error 1
make: *** Waiting for unfinished jobs....
/tmp/ccnxYuhm.s: Assembler messages:
/tmp/ccnxYuhm.s:44: Error: expecting string instruction after `rep'
/tmp/ccnxYuhm.s:272: Error: expecting string instruction after `rep'
/tmp/ccnxYuhm.s:276: Error: expecting string instruction after `rep'
/tmp/ccnxYuhm.s:316: Error: expecting string instruction after `rep'
/tmp/ccnxYuhm.s:29012: Error: expecting string instruction after `rep'
make: *** [build/learner.o] Error 1
/tmp/ccyHo0ol.s: Assembler messages:
/tmp/ccyHo0ol.s:331: Error: expecting string instruction after `rep'
/tmp/ccyHo0ol.s:386: Error: expecting string instruction after `rep'
/tmp/ccyHo0ol.s:555: Error: expecting string instruction after `rep'
/tmp/ccyHo0ol.s:11407: Error: expecting string instruction after `rep'
/tmp/ccyHo0ol.s:17712: Error: expecting string instruction after `rep'
make: *** [build/c_api/c_api.o] Error 1
/tmp/cc3gD7Gv.s: Assembler messages:
/tmp/cc3gD7Gv.s:82: Error: expecting string instruction after `rep'
make: *** [build/data/data.o] Error 1
Is any suggestion for the root cause?
I am not familiar with xgboost, however from the error it seems obvious that some ASM code is not getting generated properly:
expecting string instruction after `rep'
The REP keyword prefix in ASM means "repeat this instruction a number of times (defined by the C register)".
However it could also be a problem with your toolchain. Actually, if the code that generates this error is not relying on inline ASM, it would seem likely that this is a toolchain error.
Some versions of binutils consider rep ret to be invalid, while it is in fact a valid x86-64 instruction.
Try upgrading to binutils 2.23.52.0.1
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.
I am trying to build squid-3.HEAD on Fedora 13 but i am getting the
following compilation errors.
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H - I../..../../include -I../../lib -I../../src -I../../include
-I../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Werror -pipe -D_REENTRANT -g -O2 -std=c++0x -MT Acl.lo -MD -MP -MF
.deps/Acl.Tpo -c -o Acl.lo Acl.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT
-g -O2 -std=c++0x -MT Acl.lo -MD -MP -MF .deps/Acl.Tpo -c Acl.cc
-fPIC -DPIC -o .libs/Acl.o
In file included from ../../src/ProtoPort.h:12:0,
from Acl.cc:40:
/src/ssl/gadgets.h:57:1: error: variable or field 'TXT_DB_free_cpp'
declared void
../../src/ssl/gadgets.h:57:1: error: 'TXT_DB' was not declared in this scope
../../src/ssl/gadgets.h:57:1: error: 'a' was not declared in this scope
../../src/ssl/gadgets.h:58:21: error: 'TXT_DB' was not declared in this scope
../../src/ssl/gadgets.h:58:29: error: 'TXT_DB_free_cpp' was not
declared in this scope
../../src/ssl/gadgets.h:58:44: error: template argument 1 is invalid
../../src/ssl/gadgets.h:58:44: error: template argument 2 is invalid
../../src/ssl/gadgets.h:58:60: error: invalid type in declaration
before ';' token
Openssl and openssl-devel are already installed and with latest versions
Gcc(g++) version = 4.4.5
OpenSSL version = 1.0.0d-1.fc13.i686
Any suggestions?
Got the same problem on voyage/Debian. Somewhere I have read you should try an older version.