-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Hi,
today I tried to clone and compile the u-boot for tp-link_tl-wr841n_v9 target. The compile step works fine but linking fails. I get the following error message. Did I do something wrong?
/home/openwrt/openwrt/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: /home/openwrt/router-u-boot/build/net/tftp.o (symbol from plugin): in function `TftpStart':
(.text+0x0): multiple definition of `seed2'; /home/openwrt/router-u-boot/build/net/net.o (symbol from plugin):(.text+0x0): first defined here
/home/openwrt/openwrt/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: /home/openwrt/router-u-boot/build/net/tftp.o (symbol from plugin): in function `TftpStart':
(.text+0x0): multiple definition of `seed1'; /home/openwrt/router-u-boot/build/net/net.o (symbol from plugin):(.text+0x0): first defined here
/home/openwrt/openwrt/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: /home/openwrt/router-u-boot/build/net/bootp.o (symbol from plugin): in function `BootpID':
(.text+0x0): multiple definition of `seed1'; /home/openwrt/router-u-boot/build/net/net.o (symbol from plugin):(.text+0x0): first defined here
/home/openwrt/openwrt/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: /home/openwrt/router-u-boot/build/net/bootp.o (symbol from plugin): in function `BootpID':
(.text+0x0): multiple definition of `seed2'; /home/openwrt/router-u-boot/build/net/net.o (symbol from plugin):(.text+0x0): first defined here
/home/openwrt/openwrt/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: /home/openwrt/router-u-boot/build/net/rarp.o (symbol from plugin): in function `RarpRequest':
(.text+0x0): multiple definition of `seed2'; /home/openwrt/router-u-boot/build/net/net.o (symbol from plugin):(.text+0x0): first defined here
/home/openwrt/openwrt/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: /home/openwrt/router-u-boot/build/net/rarp.o (symbol from plugin): in function `RarpRequest':
(.text+0x0): multiple definition of `seed1'; /home/openwrt/router-u-boot/build/net/net.o (symbol from plugin):(.text+0x0): first defined here
board/ar7240/ap143/../common/qca-eth-953x_phy.h:41:12: warning: type of 'athrs27_phy_speed' does not match original declaration [-Wlto-type-mismatch]
41 | extern int athrs27_phy_speed(int ethUnit);
| ^
board/ar7240/ap143/../common/athr_s27_phy.c:586:5: note: type mismatch in parameter 2
586 | int athrs27_phy_speed(int ethUnit, int phyUnit) {
| ^
board/ar7240/ap143/../common/athr_s27_phy.c:586:5: note: type 'int' should match type 'void'
board/ar7240/ap143/../common/athr_s27_phy.c:586:5: note: 'athrs27_phy_speed' was previously declared here
board/ar7240/ap143/../common/qca-eth-953x_phy.h:40:12: warning: type of 'athrs27_phy_is_fdx' does not match original declaration [-Wlto-type-mismatch]
40 | extern int athrs27_phy_is_fdx(int ethUnit);
| ^
board/ar7240/ap143/../common/athr_s27_phy.c:544:5: note: type mismatch in parameter 2
544 | int athrs27_phy_is_fdx(int ethUnit, int phyUnit) {
| ^
board/ar7240/ap143/../common/athr_s27_phy.c:544:5: note: type 'int' should match type 'void'
board/ar7240/ap143/../common/athr_s27_phy.c:544:5: note: 'athrs27_phy_is_fdx' was previously declared here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:378: /home/openwrt/router-u-boot/build/u-boot] Error 1
make: *** [Makefile:265: tp-link_tl-wr841n_v9] Error 2
Metadata
Metadata
Assignees
Labels
No labels