I try to build latest binutils 2.26 instead 2.25.1 and fails with errors. 2.25.1 buided without problem with mingw 4.8.1. I run configure in separated folder. Taken from my shell script:
export TARGET=arm-none-symbianelf GCCC=gcc-5.3.0 # Installation folder export PREFIX=/usr/local/$GCCC export PATH=$PATH:$PREFIX/bin unset CFLAGS export CFLAGS+="-pipe" ../binutils-2.26/configure --target=$TARGET --prefix=$PREFIX \ --enable-gold --enable-ld --enable-lto --enable-vtable-verify \ --enable-werror --without-headers --disable-nls --disable-shared \ --with-lib-path=$PREFIX/lib --disable-libquadmath --enable-plugins \ --without-mpc --without-mpfr --without-gmp --without-isl # --enable-multilib --enable-interwork make make install-strip Errors: binutils/../include -D__USE_MINGW_FSEEK -DLOCALEDIR="\"/usr/local/gcc-5.3.0/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -I../../binutils-2.26/binutils/../zlib -pipe -D__USE_MINGW_ACCESS -MT readelf.o -MD -MP -MF .deps/readelf.Tpo -c -o readelf.o ../../binutils-2.26/binutils/readelf.c ../../binutils-2.26/binutils/readelf.c: In function 'get_data': ../../binutils-2.26/binutils/readelf.c:350:9: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) nmemb, (unsigned long long) size, reason); ^ ../../binutils-2.26/binutils/readelf.c:350:9: error: unknown conversion type character 'l' in format [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:350:9: error: format '%s' expects argument of type 'char *', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:350:9: error: too many arguments for format [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:359:9: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) nmemb, (unsigned long long) size, reason); ^ ../../binutils-2.26/binutils/readelf.c:359:9: error: unknown conversion type character 'l' in format [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:359:9: error: format '%s' expects argument of type 'char *', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:359:9: error: too many arguments for format [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:370:9: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) amt, reason); ^ ../../binutils-2.26/binutils/readelf.c:370:9: error: format '%s' expects argument of type 'char *', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:370:9: error: too many arguments for format [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:394:6: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) amt, reason); ^ ../../binutils-2.26/binutils/readelf.c:394:6: error: format '%s' expects argument of type 'char *', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:394:6: error: too many arguments for format [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:405:9: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) amt, reason); ^ ../../binutils-2.26/binutils/readelf.c:405:9: error: format '%s' expects argument of type 'char *', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:405:9: error: too many arguments for format [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c: In function 'get_dynamic_data': ../../binutils-2.26/binutils/readelf.c:10355:7: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) number, ent_size); ^ ../../binutils-2.26/binutils/readelf.c:10355:7: error: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:10355:7: error: too many arguments for format [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:10364:7: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) number); ^ ../../binutils-2.26/binutils/readelf.c:10364:7: error: too many arguments for format [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:10372:7: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) number); ^ ../../binutils-2.26/binutils/readelf.c:10372:7: error: too many arguments for format [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:10379:7: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) (number * ent_size)); ^ ../../binutils-2.26/binutils/readelf.c:10379:7: error: too many arguments for format [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:10388:7: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) number); ^ ../../binutils-2.26/binutils/readelf.c:10388:7: error: too many arguments for format [-Werror=format-extra-args] cc1.exe: all warnings being treated as errors make[5]: *** [readelf.o] Error 1 make[5]: Leaving directory `/d/mbuild/src/build-binutils/binutils' make[4]: *** [install-recursive] Error 1 make[4]: Leaving directory `/d/mbuild/src/build-binutils/binutils' make[3]: *** [install] Error 2 make[3]: Leaving directory `/d/mbuild/src/build-binutils/binutils' make[2]: *** [install-strip] Error 2 make[2]: Leaving directory `/d/mbuild/src/build-binutils/binutils' make[1]: *** [install-strip-binutils] Error 2 make[1]: Leaving directory `/d/mbuild/src/build-binutils' make: *** [install-strip] Error 2 Administrator@fedor4ever /d/mbuild/src/build-binutils $ build-binutils-2.26.sh 2 > err.txt *** This configuration is not supported in the following subdirectories: target-zlib (Any other directories should still work fine.) ../../binutils-2.26/libiberty/waitpid.c: In function 'waitpid': ../../binutils-2.26/libiberty/waitpid.c:31:7: warning: implicit declaration of f unction 'wait' [-Wimplicit-function-declaration] int wpid = wait(stat_loc); ^ libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 shared libraries libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 shared libraries ../../binutils-2.26/binutils/readelf.c: In function 'get_data': ../../binutils-2.26/binutils/readelf.c:350:9: error: unknown conversion type cha racter 'l' in format [-Werror=format=] (unsigned long long) nmemb, (unsigned long long) size, reason); ^ ../../binutils-2.26/binutils/readelf.c:350:9: error: unknown conversion type cha racter 'l' in format [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:350:9: error: format '%s' expects argumen t of type 'char *', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:350:9: error: too many arguments for form at [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:359:9: error: unknown conversion type cha racter 'l' in format [-Werror=format=] (unsigned long long) nmemb, (unsigned long long) size, reason); ^ ../../binutils-2.26/binutils/readelf.c:359:9: error: unknown conversion type cha racter 'l' in format [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:359:9: error: format '%s' expects argumen t of type 'char *', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:359:9: error: too many arguments for form at [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:370:9: error: unknown conversion type cha racter 'l' in format [-Werror=format=] (unsigned long long) amt, reason); ^ ../../binutils-2.26/binutils/readelf.c:370:9: error: format '%s' expects argumen t of type 'char *', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:370:9: error: too many arguments for form at [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:394:6: error: unknown conversion type cha racter 'l' in format [-Werror=format=] (unsigned long long) amt, reason); ^ ../../binutils-2.26/binutils/readelf.c:394:6: error: format '%s' expects argumen t of type 'char *', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:394:6: error: too many arguments for form at [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:405:9: error: unknown conversion type cha racter 'l' in format [-Werror=format=] (unsigned long long) amt, reason); ^ ../../binutils-2.26/binutils/readelf.c:405:9: error: format '%s' expects argumen t of type 'char *', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:405:9: error: too many arguments for form at [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c: In function 'get_dynamic_data': ../../binutils-2.26/binutils/readelf.c:10355:7: error: unknown conversion type c haracter 'l' in format [-Werror=format=] (unsigned long long) number, ent_size); ^ ../../binutils-2.26/binutils/readelf.c:10355:7: error: format '%u' expects argum ent of type 'unsigned int', but argument 2 has type 'bfd_size_type' [-Werror=for mat=] ../../binutils-2.26/binutils/readelf.c:10355:7: error: too many arguments for fo rmat [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:10364:7: error: unknown conversion type c haracter 'l' in format [-Werror=format=] (unsigned long long) number); ^ ../../binutils-2.26/binutils/readelf.c:10364:7: error: too many arguments for fo rmat [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:10372:7: error: unknown conversion type c haracter 'l' in format [-Werror=format=] (unsigned long long) number); ^ ../../binutils-2.26/binutils/readelf.c:10372:7: error: too many arguments for fo rmat [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:10379:7: error: unknown conversion type c haracter 'l' in format [-Werror=format=] (unsigned long long) (number * ent_size)); ^ ../../binutils-2.26/binutils/readelf.c:10379:7: error: too many arguments for fo rmat [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:10388:7: error: unknown conversion type c haracter 'l' in format [-Werror=format=] (unsigned long long) number); ^ ../../binutils-2.26/binutils/readelf.c:10388:7: error: too many arguments for fo rmat [-Werror=format-extra-args] cc1.exe: all warnings being treated as errors make[4]: *** [readelf.o] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-binutils] Error 2 make: *** [all] Error 2 ../../binutils-2.26/binutils/readelf.c: In function 'get_data': ../../binutils-2.26/binutils/readelf.c:350:9: error: unknown conversion type cha racter 'l' in format [-Werror=format=] (unsigned long long) nmemb, (unsigned long long) size, reason); ^ ../../binutils-2.26/binutils/readelf.c:350:9: error: unknown conversion type cha racter 'l' in format [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:350:9: error: format '%s' expects argumen t of type 'char *', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:350:9: error: too many arguments for form at [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:359:9: error: unknown conversion type cha racter 'l' in format [-Werror=format=] (unsigned long long) nmemb, (unsigned long long) size, reason); ^ ../../binutils-2.26/binutils/readelf.c:359:9: error: unknown conversion type cha racter 'l' in format [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:359:9: error: format '%s' expects argumen t of type 'char *', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:359:9: error: too many arguments for form at [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:370:9: error: unknown conversion type cha racter 'l' in format [-Werror=format=] (unsigned long long) amt, reason); ^ ../../binutils-2.26/binutils/readelf.c:370:9: error: format '%s' expects argumen t of type 'char *', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:370:9: error: too many arguments for form at [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:394:6: error: unknown conversion type cha racter 'l' in format [-Werror=format=] (unsigned long long) amt, reason); ^ ../../binutils-2.26/binutils/readelf.c:394:6: error: format '%s' expects argument of type 'char *', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:394:6: error: too many arguments for format [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:405:9: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) amt, reason); ^ ../../binutils-2.26/binutils/readelf.c:405:9: error: format '%s' expects argument of type 'char *', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:405:9: error: too many arguments for format [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c: In function 'get_dynamic_data': ../../binutils-2.26/binutils/readelf.c:10355:7: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) number, ent_size); ^ ../../binutils-2.26/binutils/readelf.c:10355:7: error: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'bfd_size_type' [-Werror=format=] ../../binutils-2.26/binutils/readelf.c:10355:7: error: too many arguments for format [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:10364:7: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) number); ^ ../../binutils-2.26/binutils/readelf.c:10364:7: error: too many arguments for format [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:10372:7: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) number); ^ ../../binutils-2.26/binutils/readelf.c:10372:7: error: too many arguments for format [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:10379:7: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) (number * ent_size)); ^ ../../binutils-2.26/binutils/readelf.c:10379:7: error: too many arguments for format [-Werror=format-extra-args] ../../binutils-2.26/binutils/readelf.c:10388:7: error: unknown conversion type character 'l' in format [-Werror=format=] (unsigned long long) number); ^ ../../binutils-2.26/binutils/readelf.c:10388:7: error: too many arguments for format [-Werror=format-extra-args] cc1.exe: all warnings being treated as errors make[5]: *** [readelf.o] Error 1 make[4]: *** [install-recursive] Error 1 make[3]: *** [install] Error 2 make[2]: *** [install-strip] Error 2 make[1]: *** [install-strip-binutils] Error 2 make: *** [install-strip] Error 2 Stryzhniou Fiodar Стрижнёв Федор _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils