xieyaxiongfly / Atheros_CSI_tool_OpenWRT_src

GNU General Public License v2.0
114 stars 53 forks source link

Modifying the kernel, $ make -j16 gives error #70

Closed kr689 closed 1 year ago

kr689 commented 1 year ago

I'm relatively new to Linux. I'm trying to install the tool and while following the commands I got an error when I run the make j16 command. First it wasn't compiling but I added -fno-pie to makeFile to fix an error and make it compile. It finally compiled and for a long time after finally giving this error.

arch/x86/kernel/head64.o: In function x86_64_start_kernel': /home/kumar/Atheros-CSI-Tool/arch/x86/kernel/head64.c:185: undefined reference tostack_chk_fail' init/built-in.o: In function do_one_initcall': /home/kumar/Atheros-CSI-Tool/init/main.c:804: undefined reference tostack_chk_fail' init/built-in.o: In function name_to_dev_t': /home/kumar/Atheros-CSI-Tool/init/do_mounts.c:290: undefined reference to__stack_chk_fail' init/built-in.o: In function calibrate_delay': /home/kumar/Atheros-CSI-Tool/init/calibrate.c:315: undefined reference tostack_chk_fail' init/built-in.o: In function loglevel': /home/kumar/Atheros-CSI-Tool/init/main.c:233: undefined reference tostack_chk_fail' init/built-in.o:/home/kumar/Atheros-CSI-Tool/init/main.c:679: more undefined references to `__stack_chk_fail' follow Makefile:934: recipe for target 'vmlinux' failed make: *** [vmlinux] Error 1

Any ideas on what is going wrong and how to fix it?

kr689 commented 1 year ago

The problem was fixed by have version 14.04 of Ubuntu. Other versions do not work from my experimentation