Since setjmp and longjmp need be called from userspace, the location is moved to: libs/libc/machine/arch Here is the related issue and PR: https://github.com/apache/incubator-nuttx/issues/2478 https://github.com/apache/incubator-nuttx/pull/3315
On Thu, Jun 10, 2021 at 2:51 AM David S. Alessio <david.s.ales...@gmail.com> wrote: > Hello, Foti, > > I wrote setjmp/longjmp for armv7-m some time ago. The code should be in > file: > arch/arm/src/armv7-m/gnu/up_setjmp.S > > If not, it’s attached here. > > Cheers, > -david > > > > > > > > > On Jun 9, 2021, at 11:10 AM, Fotis Panagiotopoulos <f.j.pa...@gmail.com> > wrote: > > Hi everyone! > > I just started adding Lua to my NuttX-based project, but I have some > problems with it. > I am getting undefined references to longjmp/setjmp. > > I am using an STM32F4 and GCC: > arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) > 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599] > > As I see, this combination of arch and compiler should work for > setjmp/longjmp, so I believe that something is misconfigured on my side. > > Is there any special Kconfig option that I am not aware of? Do I need any > special compiler flags? > > >