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

build failed with Kubuntu 22.04.1 #352

Open
cho934 opened this issue Dec 14, 2022 · 0 comments
Open

build failed with Kubuntu 22.04.1 #352

cho934 opened this issue Dec 14, 2022 · 0 comments

Comments

@cho934
Copy link

cho934 commented Dec 14, 2022

Hi,

I tried to cross build first unsuccessfully. I was obliged to add USER_EXTRA_CFLAGS with -Wno-error=attributes -Wno-error=address-of-packed-member -Wno-error=missing-attributes -Wno-error=restrict
in order to not block for each warning.

... In file included from ./include/linux/kernel.h:11, from ./include/linux/list.h:8, from ./include/linux/preempt.h:10, from ./include/linux/spinlock.h:50, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/osdep_service_linux.h:24, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/osdep_service.h:41, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/drv_types.h:32, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_types.h:211, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_precomp.h:24, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_DIG.c:25: ./include/linux/log2.h:22:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes] 22 | int ____ilog2_NaN(void); | ^~~ CC [M] /install/armadeus-git/buildroot/output/build/rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/./hal/OUTSRC/phydm_DynamicTxPower.o In file included from ./include/linux/kernel.h:11, from ./include/linux/list.h:8, from ./include/linux/preempt.h:10, from ./include/linux/spinlock.h:50, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/osdep_service_linux.h:24, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/osdep_service.h:41, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/drv_types.h:32, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_types.h:211, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_precomp.h:24, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_PathDiv.c:25: ./include/linux/log2.h:22:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes] 22 | int ____ilog2_NaN(void); | ^~~ CC [M] /install/armadeus-git/buildroot/output/build/rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/./hal/OUTSRC/PhyDM_Adaptivity.o In file included from ./include/linux/kernel.h:11, from ./include/linux/list.h:8, from ./include/linux/preempt.h:10, from ./include/linux/spinlock.h:50, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/osdep_service_linux.h:24, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/osdep_service.h:41, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/drv_types.h:32, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_types.h:211, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_precomp.h:24, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_RaInfo.c:25: ./include/linux/log2.h:22:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes] 22 | int ____ilog2_NaN(void); | ^~~ CC [M] /install/armadeus-git/buildroot/output/build/rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/./hal/OUTSRC/phydm_CfoTracking.o In file included from ./include/linux/kernel.h:11, from ./include/linux/list.h:8, from ./include/linux/preempt.h:10, from ./include/linux/spinlock.h:50, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/osdep_service_linux.h:24, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/osdep_service.h:41, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/drv_types.h:32, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_types.h:211, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_precomp.h:24, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_DynamicBBPowerSaving.c:25: ./include/linux/log2.h:22:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes] 22 | int ____ilog2_NaN(void); | ^~~ CC [M] /install/armadeus-git/buildroot/output/build/rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/./hal/OUTSRC/phydm_NoiseMonitor.o In file included from ./include/linux/kernel.h:11, from ./include/linux/list.h:8, from ./include/linux/preempt.h:10, from ./include/linux/spinlock.h:50, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/osdep_service_linux.h:24, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/osdep_service.h:41, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/drv_types.h:32, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_types.h:211, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_precomp.h:24, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_PowerTracking.c:25: ./include/linux/log2.h:22:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes] 22 | int ____ilog2_NaN(void); | ^~~ CC [M] /install/armadeus-git/buildroot/output/build/rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/./hal/OUTSRC/phydm_ACS.o In file included from ./include/linux/kernel.h:11, from ./include/linux/list.h:8, from ./include/linux/preempt.h:10, from ./include/linux/spinlock.h:50, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/osdep_service_linux.h:24, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/osdep_service.h:41, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/drv_types.h:32, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_types.h:211, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_precomp.h:24, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_DynamicTxPower.c:25: ./include/linux/log2.h:22:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes] 22 | int ____ilog2_NaN(void); | ^~~ CC [M] /install/armadeus-git/buildroot/output/build/rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/./hal/OUTSRC/rtl8812a/HalHWImg8812A_FW.o In file included from ./include/linux/kernel.h:11, from ./include/linux/list.h:8, from ./include/linux/preempt.h:10, from ./include/linux/spinlock.h:50, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/osdep_service_linux.h:24, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/osdep_service.h:41, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/include/drv_types.h:32, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_types.h:211, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/phydm_precomp.h:24, from ../rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/hal/OUTSRC/PhyDM_Adaptivity.c:25: ./include/linux/log2.h:22:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes] 22 | int ____ilog2_NaN(void); | ^~~ CC [M] /install/armadeus-git/buildroot/output/build/rtl8821au-4235b0ec7d7220a6364586d8e25b1e8cb99c36f1/./hal/OUTSRC/rtl8812a/HalHWImg8812A_MAC.o

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