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

Missing C++ symbols on arm-none-eabi gcc 14 #182

Closed
offa opened this issue Dec 16, 2024 · 1 comment
Closed

Missing C++ symbols on arm-none-eabi gcc 14 #182

offa opened this issue Dec 16, 2024 · 1 comment

Comments

@offa
Copy link
Owner

offa commented Dec 16, 2024

arm-none-eabi gcc 14 fails due to missing symbols:

 [ 23%] Building CXX object system/src/CMakeFiles/newlib.dir/newlib/_cxx.cpp.obj
/__w/stm32-eth/stm32-eth/system/src/newlib/_cxx.cpp: In function 'void __gnu_cxx::__verbose_terminate_handler()':
/__w/stm32-eth/stm32-eth/system/src/newlib/_cxx.cpp:29:5: error: 'abort' was not declared in this scope; did you mean 'std::abort'?
   29 |     abort();
      |     ^~~~~
      |     std::abort
In file included from /__w/stm32-eth/stm32-eth/system/src/newlib/_cxx.cpp:13:
/opt/arm-none-eabi/arm-none-eabi/include/c++/14.2.1/cstdlib:58:19: note: 'std::abort' declared here
   58 |   extern "C" void abort(void) _GLIBCXX_NOTHROW _GLIBCXX_NORETURN;
      |                   ^~~~~
/__w/stm32-eth/stm32-eth/system/src/newlib/_cxx.cpp: In function 'void __cxa_pure_virtual()':
/__w/stm32-eth/stm32-eth/system/src/newlib/_cxx.cpp:45:5: error: 'abort' was not declared in this scope; did you mean 'std::abort'?
   45 |     abort();
      |     ^~~~~
      |     std::abort
/opt/arm-none-eabi/arm-none-eabi/include/c++/14.2.1/cstdlib:58:19: note: 'std::abort' declared here
   58 |   extern "C" void abort(void) _GLIBCXX_NOTHROW _GLIBCXX_NORETURN;
      |                   ^~~~~
/__w/stm32-eth/stm32-eth/system/src/newlib/_cxx.cpp: In function 'void __gnu_cxx::__verbose_terminate_handler()':
/__w/stm32-eth/stm32-eth/system/src/newlib/_cxx.cpp:30:3: warning: 'noreturn' function does return
   30 |   }
      |   ^
/__w/stm32-eth/stm32-eth/system/src/newlib/_cxx.cpp: In function 'void __cxa_pure_virtual()':
/__w/stm32-eth/stm32-eth/system/src/newlib/_cxx.cpp:46:3: warning: 'noreturn' function does return
   46 |   }
      |   ^
make[2]: *** [system/src/CMakeFiles/newlib.dir/build.make:93: system/src/CMakeFiles/newlib.dir/newlib/_cxx.cpp.obj] Error 1
@offa offa added this to the next milestone Dec 16, 2024
@offa offa self-assigned this Dec 16, 2024
@offa offa removed this from the next milestone Dec 19, 2024
@offa
Copy link
Owner Author

offa commented Dec 19, 2024

Despite the newlib issue, <chrono> is no longer available in the freestanding implementation, thus needs a replacement.

offa added a commit that referenced this issue Dec 19, 2024
offa added a commit that referenced this issue Dec 19, 2024
offa added a commit that referenced this issue Dec 19, 2024
offa added a commit that referenced this issue Dec 19, 2024
This was referenced Dec 19, 2024
@offa offa closed this as completed Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant