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

Compilation failed #2

Open
KevinLikesDringCoffe opened this issue Jun 14, 2023 · 1 comment
Open

Compilation failed #2

KevinLikesDringCoffe opened this issue Jun 14, 2023 · 1 comment

Comments

@KevinLikesDringCoffe
Copy link

Hi,
I tried to install fclkcfg on my ultra96 board. After make command it raised some errors:

root@ultra96:/home/xilinx/fclkcfg# make
make -C /lib/modules/5.4.0-xilinx-v2020.1/build ARCH=arm64 CROSS_COMPILE= M=/home/xilinx/fclkcfg CONFIG_FCLKCFG=m modules
make[1]: Entering directory '/lib/modules/5.4.0-xilinx-v2020.1/build'
  CC [M]  /home/xilinx/fclkcfg/fclkcfg.o
gcc: error: unrecognized command line option ‘-mstack-protector-guard=sysreg’; did you mean ‘-fstack-protector-strong’?
gcc: error: unrecognized command line option ‘-mstack-protector-guard-reg=sp_el0’; did you mean ‘-fstack-protector-all’?
gcc: error: unrecognized command line option ‘-mstack-protector-guard-offset=1064’; did you mean ‘-fstack-protector-strong’?
scripts/Makefile.build:265: recipe for target '/home/xilinx/fclkcfg/fclkcfg.o' failed
make[2]: *** [/home/xilinx/fclkcfg/fclkcfg.o] Error 1
Makefile:1652: recipe for target '/home/xilinx/fclkcfg' failed
make[1]: *** [/home/xilinx/fclkcfg] Error 2
make[1]: Leaving directory '/lib/modules/5.4.0-xilinx-v2020.1/build'
Makefile:35: recipe for target 'all' failed
make: *** [all] Error 2

Any idea on how to solve this?
Thanks!

@ikwzm
Copy link
Owner

ikwzm commented Jun 14, 2023

Thanks for the issue.

What C Compiler are you using?
According to the following information, this may be caused by different versions of C Compiler.
https://lore.kernel.org/all/DB8PR04MB6795F0EF780DC63DE0202B78E6589@DB8PR04MB6795.eurprd04.prod.outlook.com/T/

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

2 participants