-
Notifications
You must be signed in to change notification settings - Fork 46
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
Multiple definitions in libmetal.a #229
Comments
Hi @bsousi5 does this issue be resolved? |
I've submitted a PR to freedom-devicetree-tools that fixes the machine.h header problem. That's got my test build working. |
OK, thanks Keith. |
I am integrating gcc-10 with freedom-e-sdk, and it seems the PR is still not merged, so I cherry-pick this patch for local test. And I still see multiple definition errors. Following is the build command: One of the error message: Thanks! |
I'm trying GCC 10 now. When I use GCC 10 toolchain to build libmetal, there are a lot of ld fail.
After GCC 10, -fno-common is default enable, so that the definitions in metal.h will be placed at .bss. .bss not allow multiple definition.
You can use toolchain /work/melc/riscv64-unknown-elf-gcc-10.0.0-20200203, or GCC 8.3 toolchain with -fno-common option, to reproduce this issue.
The text was updated successfully, but these errors were encountered: