Errors while compiling

make -C /home/shravan/inventum/wlan-ap/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/backports-5.15.8-1 M=/home/shravan/inventum/wlan-ap/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/backports-5.15.8-1/drivers/net/wireless/ath/ath11k modules
make[1]: Entering directory '/home/shravan/inventum/wlan-ap/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/backports-5.15.8-1'
make[2]: 'Kconfig.versions' is up to date.
make[4]: 'Kconfig.versions' is up to date.
make[5]: 'conf' is up to date.
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.
  CC [M]  /home/shravan/inventum/wlan-ap/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/backports-5.15.8-1/drivers/net/wireless/ath/ath11k/core.o
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mno-sse'; did you mean '-fno-dse'?
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mno-mmx'; did you mean '-gno-vms'?
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mno-sse2'; did you mean '-fno-dse'?
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mno-3dnow'
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mno-avx'; did you mean '-Wno-abi'?
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-m64'
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mno-80387'
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mno-fp-ret-in-387'
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mpreferred-stack-boundary=3'; did you mean '-mstructure-size-boundary='?
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mskip-rax-setup'
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mno-red-zone'; did you mean '-fno-regmove'?
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mcmodel=kernel'
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mindirect-branch=thunk-extern'
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mindirect-branch-register'
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mfunction-return=thunk-extern'
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mrecord-mcount'; did you mean '-frecord-marker=4'?
arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-mfentry'; did you mean '--entry'?
make[8]: *** [scripts/Makefile.build:297: /home/shravan/inventum/wlan-ap/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/backports-5.15.8-1/drivers/net/wireless/ath/ath11k/core.o] Error 1
make[7]: *** [scripts/Makefile.build:560: /home/shravan/inventum/wlan-ap/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/backports-5.15.8-1/drivers/net/wireless/ath/ath11k] Error 2
make[6]: *** [scripts/Makefile.build:560: /home/shravan/inventum/wlan-ap/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/backports-5.15.8-1/drivers/net/wireless/ath] Error 2
make[5]: *** [scripts/Makefile.build:560: /home/shravan/inventum/wlan-ap/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/backports-5.15.8-1/drivers/net/wireless] Error 2
make[4]: *** [Makefile:1904: /home/shravan/inventum/wlan-ap/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/backports-5.15.8-1] Error 2
make[3]: *** [Makefile.build:13: modules] Error 2
make[2]: *** [Makefile.real:93: modules] Error 2
make[1]: *** [Makefile:121: modules] Error 2
make[1]: Leaving directory '/home/shravan/inventum/wlan-ap/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/backports-5.15.8-1'
make: *** [Makefile:46: default] Error 2

please help me

start by using the </> button on top of the message window, to get the cli text formatting right ...

pretty sure ath11k isn't used in conjunction with ipq40xx, in any device supported by openwrt.

1 Like

@sharavan - Since your issue does not appear to be directly related to this old thread, I have split your comment into a new thread.

It would be helpful if you could provide more information about what you are trying to achieve (what hardware, what potentially non-standard build options) since the errors shown may not provide all necessary context. Further, please let me know if you would like a more descriptive title... without the context, it's hard to add detail to the title.

@psherman -- Actually we want to do cross compilation in ath11k driver for openwrt and we use compiler arm-openwrt-linux-muslgnueabi-gcc.

and my makefile is --------

# SPDX-License-Identifier: BSD-3-Clause-Clear
  2 CC=/home/shravan/inventum/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl_eabi/bin/arm-openwrt-linux-muslgnueabi-gcc
  3 #CC=/home/shravan/inventum/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-8.4.0_musl_eabi/bin/arm-openwrt-linux-muslgnueabi-gcc
  4 
  5 obj-m += ath11k.o
  6 ath11k-y += core.o \
  7             hal.o \
  8             hal_tx.o \
  9             hal_rx.o \
 10             wmi.o \
 11             mac.o \
 12             reg.o \
 13             htc.o \
 14             qmi.o \
 15             dp.o  \
 16             dp_tx.o \
 17             dp_rx.o \
 18             debug.o \
 19             ce.o \
 20             peer.o \
 21             dbring.o \
 22             hw.o \
 23             wow.o
 24 
 25 ath11k-$(CPTCFG_ATH11K_DEBUGFS) += debugfs.o debugfs_htt_stats.o debugfs_sta.o
 26 ath11k-$(CPTCFG_NL80211_TESTMODE) += testmode.o
 27 ath11k-$(CPTCFG_ATH11K_TRACING) += trace.o
 28 ath11k-$(CONFIG_THERMAL) += thermal.o
 29 ath11k-$(CPTCFG_ATH11K_SPECTRAL) += spectral.o
 30 
 31 obj-$(CPTCFG_ATH11K_AHB) += ath11k_ahb.o
 32 #obj-m += ath11k_ahb.o
 33 ath11k_ahb-y += ahb.o
 34 
 35 obj-$(CPTCFG_ATH11K_PCI) += ath11k_pci.o
 36 ath11k_pci-y += mhi.o pci.o 
 37 KERNELDIR=/home/shravan/inventum/wlan-ap/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/backports-5.15.8-1
 38 #KERNELDIR=/home/shravan/inventum/wlan-ap/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/linux-5.4.158
 39 
 40 PWD := $(shell pwd)
 default:
 44         $(MAKE) -I -C  $(KERNELDIR) M=$(PWD) modules

any help after giveing this details...

Wow, you really didn't read the 1st reply you got, did you ?

1 Like