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

Fix Kernel build with GCC 10 #46

Open
dl1com opened this issue Oct 16, 2020 · 0 comments
Open

Fix Kernel build with GCC 10 #46

dl1com opened this issue Oct 16, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@dl1com
Copy link
Contributor

dl1com commented Oct 16, 2020

GCC 10 also causes problems when building the Linux kernel, also because of the change of default behavior -fcommon (see #38) (although compilation happens with arm-linux-gnueabihf-gcc, linking is obviously done by compilation host's gcc toolchain)

During a linking step, it shows multiple definition of 'yylloc'.
It can be patched by removing the line
YYLTYPE yylloc;
in plutosdr-fw/linux/scripts/dtc/dtc-lexer.l, which is a redundant global declaration (see https://lkml.org/lkml/2020/4/1/1206).

@dl1com dl1com added the bug Something isn't working label Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant