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 the issue #32041: Fix riscv32_mcu link failure in build period. #33972
Conversation
Fix the ld error: undefined references to __wrap_puts for build commands like `make -f tensorflow/lite/experimental/micro/tools/make/Makefile TARGET=riscv32_mcu hello_world_bin` The related issue is #32041 The Makefile variables XXX_TEST_SRCS/XXX_SRCS in targets/mcu_riscv_makefile.inc are overridden by the the examples's respective makefile.inc (eg. hello_world/Makefile.inc), which leads to the architecture specified __wrap__funs are not included correctly.
For arduino sketch in of riscv_mcu examples, this patch fix this bug by declare the following global variable `void* __dso_handle;`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
… for update changes later. This reverts commit 6325b29.
…rences" for update change later. This reverts commit 2a18731.
Fix the ld error: undefined references to __wrap_puts for build commands like `make -f tensorflow/lite/experimental/micro/tools/make/Makefile TARGET=riscv32_mcu hello_world_bin` The related issue is #32041 The Makefile variables XXX_TEST_SRCS/XXX_SRCS in targets/mcu_riscv_makefile.inc are overridden by the the examples's respective makefile.inc (eg. hello_world/Makefile.inc), which leads to the architecture special __wrap__funs are not included correctly.
For arduino sketch in of riscv_mcu examples, this patch fix this bug by declare the global variable `void* __dso_handle;`.
For the `.bss' will not fit in region ram error, how to set freedom-e300-hifive1/flash.lds link scrip to get build pass.
This reverts commit fb3eb8f.
@nkreeger |
@zhoupeng Can you please resolve conflicts? Thanks! |
It has been 15 days with no activity and the |
@zhoupeng gentle ping to resolve conflicts. Thanks! |
It has been 29 days that this pull-request has stalled. Please create a new pull-request with the requested changes. |
Fix the issue #32041
Fix the ld error: undefined references to __wrap_puts for build commands like
make -f tensorflow/lite/experimental/micro/tools/make/Makefile TARGET=riscv32_mcu hello_world_bin
The Makefile variables XXX_TEST_SRCS/XXX_SRCS in targets/mcu_riscv_makefile.inc are overridden by the the examples's respective makefile.inc (eg. hello_world/Makefile.inc), which leads to the architecture specified __wrap__funs are not included correctly.
__dso_handle' isn't defined. For arduino sketch in of riscv_mcu examples, this patch fix this bug by declare the following global variable
void* __dso_handle;`make -f tensorflow/lite/experimental/micro/tools/make/Makefile TARGET=riscv32_mcu hello_world_test_bin
make -f tensorflow/lite/experimental/micro/tools/make/Makefile TARGET=riscv32_mcu hello_world_bin