Re: Link error building c++ app with master branch

2023-09-18 Thread Alan C. Assis
AFAIK gdb/JTAG using openocd works fine. ESP32S3 has internal USB_SERIAL_JTAG, so you don't need external hardware! BR, Alan On 9/18/23, Mike Moretti wrote: > Hi, > > Thanks. That worked. > > Sorry, I got as far as grepping for pthread_key_create, saw that it > existed in the code, and then j

Re: Link error building c++ app with master branch

2023-09-18 Thread Mike Moretti
Hi, Thanks.  That worked. Sorry, I got as far as grepping for pthread_key_create, saw that it existed in the code, and then just figured it would be easier to ask here again, as after a month of this kind of thing, I'm pretty tired of fighting with configuration/building/crashes in NuttX. A

Re: Link error building c++ app with master branch

2023-09-18 Thread Alan C. Assis
Hi Mike, Let me explain the mental process I follow to fix this kind of error! The error message in this case is very "clear" undefined reference to `pthread_key_create' So let see where it is defined: $ cd nuttxspace/nuttx $ git grep pthread_key_create ... libs/libc/pthread/pthread_keycreate

Link error building c++ app with master branch

2023-09-18 Thread Mike Moretti
Unfortunately, using master seems to come with yet other problems. I'm getting a link error: xtensa-esp32s3-elf-ld: nuttx/staging/libxx.a(cxa_exception_storage.o):(.literal._ZN10__cxxabiv112_GLOBAL__N_110construct_Ev+0xc): undefined reference to `pthread_key_create' xtensa-esp32s3-elf-ld: nut