Build errors on ubuntu 22.04 LTS
There are build errors during compilation of the buildroot. Errors are in m4 and gcc packages. For m4:
>>> host-m4 1.4.17 Building
PATH="/build/buildroot-2016.02/output/host/bin:/build/buildroot-2016.02/output/host/sbin:/build/buildroot-2016.02/output/host/usr/bin:/build/buildroot-2016.02/output/host/usr/sbin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/sbin" PKG_CONFIG="/build/buildroot-2016.02/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/build/buildroot-2016.02/output/host/usr/lib/pkgconfig" /usr/bin/make -C /build/buildroot-2016.02/output/build/host-m4-1.4.17/
make[1]: Entering directory '/build/buildroot-2016.02/output/build/host-m4-1.4.17'
/usr/bin/make all-recursive
make[2]: Entering directory '/build/buildroot-2016.02/output/build/host-m4-1.4.17'
Making all in .
make[3]: Entering directory '/build/buildroot-2016.02/output/build/host-m4-1.4.17'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/build/buildroot-2016.02/output/build/host-m4-1.4.17'
Making all in examples
make[3]: Entering directory '/build/buildroot-2016.02/output/build/host-m4-1.4.17/examples'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/build/buildroot-2016.02/output/build/host-m4-1.4.17/examples'
Making all in lib
make[3]: Entering directory '/build/buildroot-2016.02/output/build/host-m4-1.4.17/lib'
/usr/bin/make all-am
make[4]: Entering directory '/build/buildroot-2016.02/output/build/host-m4-1.4.17/lib'
/usr/bin/gcc -I. -I/build/buildroot-2016.02/output/host/usr/include -O2 -I/build/buildroot-2016.02/output/host/usr/include -c -o c-stack.o c-stack.c
In file included from /usr/include/signal.h:328,
from ./signal.h:52,
from c-stack.c:49:
c-stack.c:55:26: error: missing binary operator before token "("
55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
| ^~~~~~~~
Applying the patch https://raw.githubusercontent.com/keyfour/openwrt/2722d51c5cf6a296b8ecf7ae09e46690403a6c3d/tools/m4/patches/011-fix-sigstksz.patch does solve the problem with m4, but there are further problems with gcc
a@lts2204:~/wr/build$ WRS_NO_REPLACE_BUILDROOT=y ../wr-switch-sw/build/wrs_build-all
make -f Makefile.kconfig oldconfig
make[1]: Entering directory '/home/a/wr/wr-switch-sw'
make -f /home/a/wr/wr-switch-sw/scripts/Makefile.build obj=scripts/basic
make -f /home/a/wr/wr-switch-sw/scripts/Makefile.build obj=scripts/kconfig Makefile.kconfig
make[2]: Nothing to be done for 'Makefile.kconfig'.
make -f /home/a/wr/wr-switch-sw/scripts/Makefile.build obj=scripts/kconfig oldconfig
scripts/kconfig/conf --oldconfig /home/a/wr/wr-switch-sw/Kconfig
#
# configuration written to .config
#
make[1]: Leaving directory '/home/a/wr/wr-switch-sw'
Building with the following parameters:
WRS_BASE_DIR = /home/a/wr/wr-switch-sw/build
WRS_OUTPUT_DIR = /home/a/wr/build
WRS_DOWNLOAD_DIR = /home/a/wr/build/downloads
WRS_SCRIPTS_DIR = /home/a/wr/wr-switch-sw/build/scripts
WRS_DONE_DIR = /home/a/wr/build/build/_done
You may now ctrl-C for 3 seconds...
removed '/home/a/wr/build/build/_done/00-download'
make -f Makefile.kconfig oldconfig
make[1]: Entering directory '/home/a/wr/wr-switch-sw'
make -f /home/a/wr/wr-switch-sw/scripts/Makefile.build obj=scripts/basic
make -f /home/a/wr/wr-switch-sw/scripts/Makefile.build obj=scripts/kconfig Makefile.kconfig
make[2]: Nothing to be done for 'Makefile.kconfig'.
make -f /home/a/wr/wr-switch-sw/scripts/Makefile.build obj=scripts/kconfig oldconfig
scripts/kconfig/conf --oldconfig /home/a/wr/wr-switch-sw/Kconfig
#
# configuration written to .config
#
make[1]: Leaving directory '/home/a/wr/wr-switch-sw'
2023-01-26 14:05:54: --- Downloading base packages
2023-01-26 14:05:54: 01-buildroot_init done; skipping script wrs_buildroot_init
2023-01-26 14:05:54: 02-buildroot_download done; skipping script wrs_buildroot_download
make -f Makefile.kconfig oldconfig
make[1]: Entering directory '/home/a/wr/wr-switch-sw'
make -f /home/a/wr/wr-switch-sw/scripts/Makefile.build obj=scripts/basic
make -f /home/a/wr/wr-switch-sw/scripts/Makefile.build obj=scripts/kconfig Makefile.kconfig
make[2]: Nothing to be done for 'Makefile.kconfig'.
make -f /home/a/wr/wr-switch-sw/scripts/Makefile.build obj=scripts/kconfig oldconfig
scripts/kconfig/conf --oldconfig /home/a/wr/wr-switch-sw/Kconfig
#
# configuration written to .config
#
make[1]: Leaving directory '/home/a/wr/wr-switch-sw'
2023-01-26 14:05:55: --- Buildroot: compiler and filesystem
2023-01-26 14:05:55: Compiling buildroot
>>> host-gcc-initial 4.9.3 Building
PATH="/home/a/wr/build/build/buildroot-2016.02/output/host/bin:/home/a/wr/build/build/buildroot-2016.02/output/host/sbin:/home/a/wr/build/build/buildroot-2016.02/output/host/usr/bin:/home/a/wr/build/build/buildroot-2016.02/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/sbin" PKG_CONFIG="/home/a/wr/build/build/buildroot-2016.02/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/home/a/wr/build/build/buildroot-2016.02/output/host/usr/lib/pkgconfig" /usr/bin/make -j3 gcc_cv_libc_provides_ssp=yes all-gcc all-target-libgcc -C /home/a/wr/build/build/buildroot-2016.02/output/build/host-gcc-initial-4.9.3/build
make[3]: Nothing to be done for 'all'.
make[4]: Nothing to be done for 'all'.
make[4]: Nothing to be done for 'all'.
true "AR_FLAGS=rc" "CC_FOR_BUILD=/usr/bin/gcc" "CFLAGS=-O2 -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include" "CXXFLAGS=-O2 -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include" "CFLAGS_FOR_BUILD=-O2 -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include" "CFLAGS_FOR_TARGET=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=-static-libstdc++ -static-libgcc -L/home/a/wr/build/build/buildroot-2016.02/output/host/lib -L/home/a/wr/build/build/buildroot-2016.02/output/host/usr/lib -Wl,-rpath,/home/a/wr/build/build/buildroot-2016.02/output/host/usr/lib" "LIBCFLAGS=-O2 -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include" "LIBCFLAGS_FOR_TARGET=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " "MAKE=/usr/bin/make" "MAKEINFO=/home/a/wr/build/build/buildroot-2016.02/output/build/host-gcc-initial-4.9.3/missing makeinfo --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/bash" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/home/a/wr/build/build/buildroot-2016.02/output/host/usr" "infodir=/home/a/wr/build/build/buildroot-2016.02/output/host/usr/share/info" "libdir=/home/a/wr/build/build/buildroot-2016.02/output/host/usr/lib" "prefix=/home/a/wr/build/build/buildroot-2016.02/output/host/usr" "tooldir=/home/a/wr/build/build/buildroot-2016.02/output/host/usr/arm-buildroot-linux-gnueabi" "AR=/usr/bin/ar" "AS=/usr/bin/as" "CC=/usr/bin/gcc" "CXX=/usr/bin/g++" "LD=/usr/bin/ld" "LIBCFLAGS=-O2 -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include" "NM=/usr/bin/nm" "PICFLAG=" "RANLIB=/usr/bin/ranlib" "DESTDIR=" DO=all multi-do # /usr/bin/make
/usr/bin/make all-am
true DO=all multi-do # /usr/bin/make
make[3]: Nothing to be done for 'all'.
/usr/bin/make all-am
test -f config.h || (rm -f stamp-h1 && /usr/bin/make stamp-h1)
make[3]: Nothing to be done for 'all'.
make[3]: Nothing to be done for 'all'.
/usr/bin/g++ -c -O2 -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace -o reload1.o -MT reload1.o -MMD -MP -MF ./.deps/reload1.TPo ../../gcc/reload1.c
/usr/bin/g++ -c -O2 -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace -o resource.o -MT resource.o -MMD -MP -MF ./.deps/resource.TPo ../../gcc/resource.c
/usr/bin/g++ -c -O2 -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace -o rtl-error.o -MT rtl-error.o -MMD -MP -MF ./.deps/rtl-error.TPo ../../gcc/rtl-error.c
In file included from ./tm.h:26,
from ../../gcc/resource.c:23:
../../gcc/config/elfos.h:102:21: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
102 | fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
| ^
../../gcc/config/elfos.h:170:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
170 | fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
| ^
In file included from ./tm.h:26,
from ../../gcc/rtl-error.c:24:
../../gcc/config/elfos.h:102:21: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
102 | fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
| ^
../../gcc/config/elfos.h:170:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
170 | fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
| ^
In file included from ./tm.h:26,
from ../../gcc/reload1.c:23:
../../gcc/config/elfos.h:102:21: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
102 | fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
| ^
../../gcc/config/elfos.h:170:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
170 | fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
| ^
In file included from ./tm.h:47,
from ../../gcc/rtl-error.c:24:
../../gcc/defaults.h:126:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
126 | fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
| ^
In file included from ./tm.h:47,
from ../../gcc/reload1.c:23:
../../gcc/defaults.h:126:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
126 | fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
| ^
In file included from ./tm.h:47,
from ../../gcc/resource.c:23:
../../gcc/defaults.h:126:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
126 | fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
| ^
In file included from ../../gcc/reload1.c:41:
../../gcc/recog.h:338:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
338 | #if HAVE_DESIGNATED_UNION_INITIALIZERS
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/resource.c: In function ‘void mark_referenced_resources(rtx, resources*, bool)’:
../../gcc/resource.c:370:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
370 | }
| ^
../../gcc/resource.c:374:5: note: here
374 | case INSN:
| ^~~~
../../gcc/resource.c: In function ‘void mark_set_resources(rtx, resources*, int, mark_resource_type)’:
../../gcc/resource.c:673:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
673 | }
| ^
../../gcc/resource.c:677:5: note: here
677 | case JUMP_INSN:
| ^~~~
/usr/bin/g++ -c -O2 -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -I/home/a/wr/build/build/buildroot-2016.02/output/host/usr/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace -o rtl.o -MT rtl.o -MMD -MP -MF ./.deps/rtl.TPo ../../gcc/rtl.c
In file included from ../../gcc/reload1.c:41:
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx) const’:
../../gcc/recog.h:283:44: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f1’ {aka ‘rtx_def* (*)(rtx_def*)’} [-Wcast-function-type]
283 | rtx operator () (rtx a0) const { return ((f1)func) (a0); }
| ^~~~~~~~
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx, rtx) const’:
../../gcc/recog.h:284:52: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f2’ {aka ‘rtx_def* (*)(rtx_def*, rtx_def*)’} [-Wcast-function-type]
284 | rtx operator () (rtx a0, rtx a1) const { return ((f2)func) (a0, a1); }
| ^~~~~~~~
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx, rtx, rtx) const’:
../../gcc/recog.h:285:60: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f3’ {aka ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*)’} [-Wcast-function-type]
285 | rtx operator () (rtx a0, rtx a1, rtx a2) const { return ((f3)func) (a0, a1, a2); }
| ^~~~~~~~
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx, rtx, rtx, rtx) const’:
../../gcc/recog.h:286:68: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f4’ {aka ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*, rtx_def*)’} [-Wcast-function-type]
286 | rtx operator () (rtx a0, rtx a1, rtx a2, rtx a3) const { return ((f4)func) (a0, a1, a2, a3); }
| ^~~~~~~~
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx) const’:
../../gcc/recog.h:287:76: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f5’ {aka ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)’} [-Wcast-function-type]
287 | rtx operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4) const { return ((f5)func) (a0, a1, a2, a3, a4); }
| ^~~~~~~~
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx) const’:
../../gcc/recog.h:288:84: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f6’ {aka ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)’} [-Wcast-function-type]
288 | rtx operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5) const { return ((f6)func) (a0, a1, a2, a3, a4, a5); }
| ^~~~~~~~
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx) const’:
../../gcc/recog.h:289:92: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f7’ {aka ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)’} [-Wcast-function-type]
289 | rtx operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6) const { return ((f7)func) (a0, a1, a2, a3, a4, a5, a6); }
| ^~~~~~~~
In file included from ../../gcc/reload1.c:41:
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const’:
../../gcc/recog.h:290:100: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f8’ {aka ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)’} [-Wcast-function-type]
290 | rtx operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7) const { return ((f8)func) (a0, a1, a2, a3, a4, a5, a6, a7); }
| ^~~~~~~~
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const’:
../../gcc/recog.h:291:108: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f9’ {aka ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)’} [-Wcast-function-type]
291 | rtx operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8) const { return ((f9)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8); }
| ^~~~~~~~
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const’:
../../gcc/recog.h:292:116: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f10’ {aka ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)’} [-Wcast-function-type]
292 | rtx operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8, rtx a9) const { return ((f10)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); }
| ^~~~~~~~~
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const’:
../../gcc/recog.h:293:125: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f11’ {aka ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)’} [-Wcast-function-type]
293 | rtx operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8, rtx a9, rtx a10) const { return ((f11)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10); }
| ^~~~~~~~~
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const’:
../../gcc/recog.h:294:134: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f12’ {aka ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)’} [-Wcast-function-type]
294 | rtx operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8, rtx a9, rtx a10, rtx a11) const { return ((f12)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11); }
| ^~~~~~~~~
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const’:
../../gcc/recog.h:295:143: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f13’ {aka ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)’} [-Wcast-function-type]
295 | x operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8, rtx a9, rtx a10, rtx a11, rtx a12) const { return ((f13)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12); }
| ^~~~~~~~~
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const’:
../../gcc/recog.h:296:152: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f14’ {aka ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)’} [-Wcast-function-type]
296 | r () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8, rtx a9, rtx a10, rtx a11, rtx a12, rtx a13) const { return ((f14)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13); }
| ^~~~~~~~~
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const’:
../../gcc/recog.h:297:161: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f15’ {aka ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)’} [-Wcast-function-type]
297 | a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8, rtx a9, rtx a10, rtx a11, rtx a12, rtx a13, rtx a14) const { return ((f15)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); }
| ^~~~~~~~~
../../gcc/recog.h: In member function ‘rtx_def* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const’:
../../gcc/recog.h:298:170: warning: cast between incompatible function types from ‘insn_gen_fn::stored_funcptr’ {aka ‘rtx_def* (*)()’} to ‘insn_gen_fn::f16’ {aka ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*)’} [-Wcast-function-type]
298 | a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8, rtx a9, rtx a10, rtx a11, rtx a12, rtx a13, rtx a14, rtx a15) const { return ((f16)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15); }
| ^~~~~~~~~
../../gcc/reload1.c: In function ‘void init_reload()’:
../../gcc/reload1.c:89:24: error: use of an operand of type ‘bool’ in ‘operator++’ is forbidden in C++17
89 | (this_target_reload->x_spill_indirect_levels)
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/reload1.c:444:7: note: in expansion of macro ‘spill_indirect_levels’
444 | spill_indirect_levels++;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./tm.h:26,
from ../../gcc/rtl.c:30:
../../gcc/config/elfos.h:102:21: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
102 | fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
| ^
../../gcc/config/elfos.h:170:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
170 | fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
| ^
In file included from ./tm.h:47,
from ../../gcc/rtl.c:30:
../../gcc/defaults.h:126:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
126 | fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
| ^
../../gcc/reload1.c: In function ‘void elimination_effects(rtx, machine_mode)’:
../../gcc/reload1.c:3044:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
3044 | if (code == POST_MODIFY || code == PRE_MODIFY)
| ^~
../../gcc/reload1.c:3048:5: note: here
3048 | case STRICT_LOW_PART:
| ^~~~
make[3]: *** [Makefile:1058: reload1.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:3954: all-gcc] Error 2
make[1]: *** [package/pkg-generic.mk:198: /home/a/wr/build/build/buildroot-2016.02/output/build/host-gcc-initial-4.9.3/.stamp_built] Error 2
make: *** [Makefile:36: _all] Error 2
2023-01-26 14:06:03: Error: buildroot compilation
2023-01-26 14:06:03: Error: Building step /home/a/wr/wr-switch-sw/build/scripts/wrs_buildroot_build failed. Build aborted !