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

一個用新toolchain的error #2

Open
CheckHarry opened this issue Feb 13, 2022 · 0 comments
Open

一個用新toolchain的error #2

CheckHarry opened this issue Feb 13, 2022 · 0 comments

Comments

@CheckHarry
Copy link

因為這repo應該是最容易搜到的6.828repo.
所以在這裡填一個坑.

使用新的 toolchain 有可能在lab5之後遇上multiple definition 的error. 這是由於 gcc 把 default 的 -fcommon 改成了 -fno-common.

解決方法:在 makefile 中的 CFLAGS 加上 -fcommon

詳見:https://www.linuxquestions.org/questions/programming-9/multiple-definition-errors-when-linking-on-arch-using-gcc-10-1-0-a-4175675444/

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