[EXT_EP-10343] Compiler does not support linking code that uses C++ exceptions Created: 04/May/21 Updated: 06/Sep/22 Resolved: 12/May/21 |
|
Status: | Fixed |
Project: | Embedded Software & Tools |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Medium |
Reporter: | TI User | Assignee: | TI User |
Resolution: | Fixed | Votes: | 0 |
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Product: | Code Generation Tools |
Internal ID: | CODEGEN-8887 |
Forum URL: | https://e2e.ti.com/support/tools/ccs/f/81/t/998144 |
Found In Release: | ARMCLANG_1.2.0.STS |
Fix In Release: | ARMCLANG_1.3.0.LTS |
Affected Platform/Device: | default |
Description |
These three commands show the source code, build it without exceptions, then build it with exceptions. C:\working_directory>type hello.cpp #include <iostream> int main() { std::cout << "Hello, world!" << std::endl; return 0; } C:\working_directory>tiarmclang -mcpu=cortex-m0 hello.cpp -o hello.out -Wl,-c C:\working_directory>tiarmclang -fexceptions -mcpu=cortex-m0 hello.cpp -o hello.out -Wl,-c undefined first referenced symbol in file --------- ---------------- _Unwind_Resume C:\Users\name\AppData\Local\Temp\hello-81da66.o __aeabi_unwind_cpp_pr0 C:\Users\name\AppData\Local\Temp\hello-81da66.o __cxa_begin_catch C:\Users\name\AppData\Local\Temp\hello-81da66.o __cxa_end_catch C:\Users\name\AppData\Local\Temp\hello-81da66.o __gxx_personality_v0 C:\Users\name\AppData\Local\Temp\hello-81da66.o error: unresolved symbols remain error: errors encountered during linking; "hello.out" not built tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation) The no exceptions build is clean. The exceptions build has problems when linking. |