Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling project #15

Open
technikamateur opened this issue Jul 9, 2024 · 0 comments
Open

Error compiling project #15

technikamateur opened this issue Jul 9, 2024 · 0 comments

Comments

@technikamateur
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant