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

A problem when building u-boot-xlnx #102

Open
yonghaoXuGit opened this issue Nov 21, 2018 · 1 comment
Open

A problem when building u-boot-xlnx #102

yonghaoXuGit opened this issue Nov 21, 2018 · 1 comment

Comments

@yonghaoXuGit
Copy link

When I execute "make arm-uboot" command,I encounter the problem:errno: TLS definition in //home/linuxbrew/.linuxbrew/Cellar/glibc/2.23/lib/libc.so.6 section .tbss mismatches non-TLS reference in /tmp/ccWHlgwX.o
/home/linuxbrew/.linuxbrew/bin/ld: //home/linuxbrew/.linuxbrew/Cellar/glibc/2.23/lib/libc.so.6: error adding symbols: bad value
After debugging,I find a global variable was declared in include/errno.h.What's the reason?Any method can solve it.
Thanks!

@yonghaoXuGit
Copy link
Author

But when I chang the "extern int errno" to "int errno" in errno.h,the problem change to common/env_sf.o: In function env_init': /home/whut/xuyonghao/RISCV/test/fpga-zynq/common/u-boot-xlnx/common/env_sf.c:221: multiple definition of errno'
common/env_attr.o:/home/whut/xuyonghao/RISCV/test/fpga-zynq/common/u-boot-xlnx/common/env_attr.c:30: first defined here

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