Xiaomi_Kernel_OpenSource icon indicating copy to clipboard operation
Xiaomi_Kernel_OpenSource copied to clipboard

moonstone kernel build error - net/mac80211] Error

Open owen800q opened this issue 7 months ago • 0 comments

make O=out defconfig && make -j$(nproc) O=out 2>&1 | tee kernel.log
/usr/src/moonstone/gcc/gcc-arm64-gcc-master/bin/aarch64-elf-ld: net/mac80211/rc80211_minstrel_ht.o: in function `minstrel_ht_get_tp_avg':
/usr/src/moonstone/kernel/out/../net/mac80211/rc80211_minstrel_ht.c:354: multiple definition of `minstrel_ht_get_tp_avg'; net/mac80211/rc80211_minstrel.o:/usr/src/moonstone/kernel/out/../net/mac80211/rc80211_minstrel_ht.c:354: first defined here
/usr/src/moonstone/gcc/gcc-arm64-gcc-master/bin/aarch64-elf-ld: net/mac80211/rc80211_minstrel_ht.o: in function `rc80211_minstrel_init':
/usr/src/moonstone/kernel/out/../net/mac80211/rc80211_minstrel_ht.c:1754: multiple definition of `rc80211_minstrel_init'; net/mac80211/rc80211_minstrel.o:/usr/src/moonstone/kernel/out/../net/mac80211/rc80211_minstrel_ht.c:1754: first defined here
/usr/src/moonstone/gcc/gcc-arm64-gcc-master/bin/aarch64-elf-ld: net/mac80211/rc80211_minstrel_ht.o: in function `rc80211_minstrel_exit':
/usr/src/moonstone/kernel/out/../net/mac80211/rc80211_minstrel_ht.c:1761: multiple definition of `rc80211_minstrel_exit'; net/mac80211/rc80211_minstrel.o:/usr/src/moonstone/kernel/out/../net/mac80211/rc80211_minstrel_ht.c:1761: first defined here
/usr/src/moonstone/gcc/gcc-arm64-gcc-master/bin/aarch64-elf-ld: net/mac80211/rc80211_minstrel_ht.o:/usr/src/moonstone/kernel/out/../net/mac80211/rc80211_minstrel_ht.c:183: multiple definition of `minstrel_mcs_groups'; net/mac80211/rc80211_minstrel.o:/usr/src/moonstone/kernel/out/../net/mac80211/rc80211_minstrel_ht.c:183: first defined here
make[3]: *** [../scripts/Makefile.build:495: net/mac80211/mac80211.o] Error 1
make[2]: *** [../scripts/Makefile.build:558: net/mac80211] Error 2
make[2]: *** Waiting for unfinished jobs....
  CC      net/sunrpc/auth_null.o
  CC      net/ipv4/proc.o
  CC      net/ipv4/ipconfig.o
  CC      net/ipv4/netfilter.o
  CC      net/sunrpc/auth_unix.o
  CC      net/sunrpc/svc.o
  CC      fs/binfmt_script.o
  CC      net/sunrpc/svcsock.o
  CC      net/ipv4/inet_diag.o
  CC [M]  net/wireless/sme.o
  CC      net/ipv4/tcp_diag.o
  CC      fs/binfmt_elf.o
  CC      fs/compat_binfmt_elf.o
  CC      fs/mbcache.o
  CC      net/sunrpc/svcauth.o
  CC      net/sunrpc/svcauth_unix.o
  CC      net/ipv4/tcp_cubic.o
  CC      net/sunrpc/addr.o
  CC      fs/posix_acl.o
  CC [M]  net/ipv4/ip_tunnel.o
  CC      fs/coredump.o
  CC      fs/drop_caches.o
  CC      fs/fhandle.o
  CC [M]  net/ipv4/udp_tunnel.o
  CC      fs/dcookies.o
  CC [M]  net/wireless/chan.o
  CC [M]  net/wireless/ethtool.o
  CC [M]  net/wireless/mesh.o
  CC [M]  net/wireless/ap.o
  CC [M]  net/wireless/trace.o
  CC      net/sunrpc/rpcb_clnt.o
  CC [M]  net/ipv4/tunnel4.o
  CC      net/sunrpc/timer.o
  CC      net/sunrpc/xdr.o
  CC [M]  net/wireless/ocb.o
  CC [M]  net/wireless/pmsr.o
  CC      net/sunrpc/sunrpc_syms.o
  CC      net/sunrpc/cache.o
  AR      fs/built-in.a
  AR      net/ipv4/built-in.a
  CC      net/sunrpc/rpc_pipe.o
  CC [M]  net/wireless/of.o
  GEN     net/wireless/shipped-certs.c
  CC      net/sunrpc/svc_xprt.o
  CC      net/sunrpc/xprtmultipath.o
  CC      net/sunrpc/backchannel_rqst.o
  CC [M]  net/wireless/shipped-certs.o
  CC      net/sunrpc/stats.o
  CC      net/sunrpc/sysctl.o
  LD [M]  net/wireless/cfg80211.o
  AR      net/sunrpc/built-in.a
make[1]: *** [/usr/src/moonstone/kernel/Makefile:1852: net] Error 2
make[1]: Leaving directory '/usr/src/moonstone/kernel/out'
make: *** [Makefile:183: sub-make] Error 2

owen800q avatar Nov 26 '23 10:11 owen800q