I tried to compile a firmware version with debug info,but i keep encounter this :
~/amng-build/release/src-rt-7.14.114.x/src$ make rt-ac88u
make bin
make[1]: Entering directory '~/amng-build/release/src-rt-7.14.114.x/src'
# prepare config_base
# prepare prebuilt kernel binary
make[2]: Entering directory '~/amng-build/release/src-rt-7.14.114.x/src'
Using profile, build config.
if grep -q "CONFIG_RALINK_MT7628=y" ~/amng-build/release/src-rt-7.14.114.x/src/linux/linux-2.6/.config ; then \
sed -i "/RTCONFIG_WLMODULE_MT7628_AP/d" router/.config; \
echo "RTCONFIG_WLMODULE_MT7628_AP=y" >> router/.config; \
echo "CONFIG_RALINK_MT7628!!!!"; \
fi
make -C router oldconfig
make[3]: Entering directory '~/amng-build/release/src/router'
"CLM In ~/amng-build/release/src-rt-7.14.114.x/src/../4365/src/wl/clm/src/ NOT CREATING new clm_blob ..."
make -C ~/amng-build/release/src-rt-7.14.114.x/src/linux/linux-2.6.36 oldconfig
make[4]: Entering directory '~/amng-build/release/src-rt-7.14.114.x/src/linux/linux-2.6.36'
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
scripts/basic/docproc.c: In function ‘docsect’:
scripts/basic/docproc.c:336:9: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
336 | asprintf(&s, "DOC: %s", line);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --oldconfig arch/arm/Kconfig
.config:576:warning: override: reassigning to symbol IP_SET_HASH_IPMARK
.config:580:warning: override: reassigning to symbol IP_SET_HASH_NETNET
.config:581:warning: override: reassigning to symbol IP_SET_HASH_NETPORTNET
.config:1903:warning: override: reassigning to symbol DUMP_PREV_OOPS_MSG
.config:1904:warning: override: reassigning to symbol DUMP_PREV_OOPS_MSG_BUF_ADDR
.config:1905:warning: override: reassigning to symbol DUMP_PREV_OOPS_MSG_BUF_LEN
.config:1951:warning: override: reassigning to symbol XFRM
.config:1956:warning: override: reassigning to symbol INET
.config:1961:warning: override: reassigning to symbol INET_TUNNEL
.config:1964:warning: override: reassigning to symbol NETFILTER
.config:1965:warning: override: reassigning to symbol NETFILTER_XTABLES
.config:1966:warning: override: reassigning to symbol NETFILTER_XT_MATCH_POLICY
.config:1967:warning: override: reassigning to symbol XFRM_SUB_POLICY
.config:1968:warning: override: reassigning to symbol XFRM_MIGRATE
.config:1969:warning: override: reassigning to symbol XFRM_STATISTICS
.config:1970:warning: override: reassigning to symbol NET_KEY_MIGRATE
.config:1976:warning: override: reassigning to symbol INET6_XFRM_MODE_TRANSPORT
.config:1977:warning: override: reassigning to symbol INET6_XFRM_MODE_TUNNEL
.config:1978:warning: override: reassigning to symbol IPV6_MULTIPLE_TABLES
.config:1980:warning: override: reassigning to symbol INET6_XFRM_MODE_BEET
#
# configuration written to .config
#
make[4]: Leaving directory '~/amng-build/release/src-rt-7.14.114.x/src/linux/linux-2.6.36'
make -C ~/amng-build/release/src-rt-7.14.114.x/src/linux/linux-2.6.36 include/linux/version.h
make[4]: Entering directory '~/amng-build/release/src-rt-7.14.114.x/src/linux/linux-2.6.36'
CHK include/linux/version.h
UPD include/linux/version.h
make[4]: Leaving directory '~/amng-build/release/src-rt-7.14.114.x/src/linux/linux-2.6.36'
make -C config
make[4]: Entering directory '~/amng-build/release/src/router/config'
lxtemp.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | main() {}
| ^~~~
cp zconf.tab.h_shipped zconf.tab.h
gcc -I. -c conf.c -o conf.o
cp zconf.tab.c_shipped zconf.tab.c
cp lex.zconf.c_shipped lex.zconf.c
gcc -I. -c zconf.tab.c -o zconf.tab.o
gcc conf.o zconf.tab.o -o conf
gcc -DCURSES_LOC="<ncurses.h>" -I. -c mconf.c -o mconf.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c checklist.c -o checklist.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c menubox.c -o menubox.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c textbox.c -o textbox.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c yesno.c -o yesno.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c inputbox.c -o inputbox.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c util.c -o util.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c msgbox.c -o msgbox.o
gcc mconf.o checklist.o menubox.o textbox.o yesno.o inputbox.o util.o msgbox.o zconf.tab.o -o mconf -lncurses
/usr/bin/ld: zconf.tab.o
.bss+0x8a8): multiple definition of `current_menu'; mconf.o
.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:59: mconf] Error 1
make[4]: Leaving directory '~/amng-build/release/src/router/config'
make[3]: *** [Makefile:2250: config/conf] Error 2
make[3]: Leaving directory '~/amng-build/release/src/router'
make[2]: *** [Makefile:4502: setprofile] Error 2
make[2]: Leaving directory '~/amng-build/release/src-rt-7.14.114.x/src'
make[1]: *** [Makefile:4328: bin] Error 2
make[1]: Leaving directory '~/amng-build/release/src-rt-7.14.114.x/src'
make: *** [Makefile:4473: rt-ac88u] Error 2,
i don`t kown how to fix this
is there something wrong with source code?