I'm building OpenWRT 22.03.2 for D-Link DSL-2750B D1 on an i386 server
Necessary packages specified in buildsystem preparation guide are installed
OpenWRT repo is downloaded
Actions performed are:
git checkout v22.03.2
unset C_INCLUDE_PATH
./scripts/feeds update -a
./scripts/feeds install -a -f
make menuconfig
make clean
make kernel_menuconfig V=s
This is the resulting error:
g++ -x c++ -I. -I. -I./config -DLOCALEDIR="\"/home/user/OpenWRT/openwrt/staging_dir/toolchain-mips_mips32_gcc-11.2.0_musl/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/readline/.. -I./../zlib -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber -I./../gnulib/import -I../gnulib/import -I./.. -I.. -DTUI=1 -I/home/user/OpenWRT/openwrt/staging_dir/host/include -I./.. -pthread -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-variable -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-error=maybe-uninitialized -Wno-mismatched-tags -Wsuggest-override -Wimplicit-fallthrough=3 -Wduplicated-cond -Wshadow=local -Wdeprecated-copy -Wdeprecated-copy-dtor -Wredundant-move -Wmissing-declarations -Wstrict-null-sentinel -Wformat -Wformat-nonliteral -c -o gdb.o -MT gdb.o -MMD -MP -MF ./.deps/gdb.Tpo gdb.c
In file included from defs.h:36,
from gdb.c:19:
../bfd/config.h:7:4: error: #error config.h must be #included before system headers
7 | # error config.h must be #included before system headers
| ^~~~~
../bfd/config.h:316: warning: "VERSION" redefined
316 | #define VERSION "2.37.50"
|
In file included from ./../gdbsupport/common-defs.h:23,
from defs.h:28,
from gdb.c:19:
./../gdbsupport/config.h:393: note: this is the location of the previous definition
393 | #define VERSION "1.0"
|
make[5]: *** [Makefile:1641: gdb.o] Error 1
Any help is appreciated