OK, so I have rebuilt my FPC with your (day old) patch, builds fine and appears to run.
But having trouble with your script to extract out the necessary libraries etc. Seems to me you are mixing esp32s3 in there ? Was that intentional ? eg, I see -
Skipping CMakeFiles
cp: cannot stat '/home/dbannon/esp_5_5/esp-idf/hello_world/build/esp-idf/esp_driver_ana_cmpr/libesp_driver_ana_cmpr.a': No such file or directory
cp: cannot stat '/home/dbannon/esp_5_5/esp-idf/hello_world/build/esp-idf/esp_driver_bitscrambler/libesp_driver_bitscrambler.a': No such file or directory
cp: cannot stat '/home/dbannon/esp_5_5/esp-idf/hello_world/build/esp-idf/esp_driver_dac/libesp_driver_dac.a': No such file or directory
....
cp: cannot stat '/home/dbannon/esp_5_5/esp-idf/components/xtensa/esp32c3/libxt_hal.a': No such file or directory
Looking for the last one (of 17) -
dbannon@dell:~/esp_5_5/esp-idf/hello_world$ ls -l /home/dbannon/esp_5_5/esp-idf/components/xtensa/esp32c3/libxt_hal.a
ls: cannot access '/home/dbannon/esp_5_5/esp-idf/components/xtensa/esp32c3/libxt_hal.a': No such file or directory
dbannon@dell:~/esp_5_5/esp-idf/hello_world$ ls -l /home/dbannon/esp_5_5/esp-idf/components/xtensa/
drwxr-xr-x 3 dbannon dbannon 4096 Aug 24 15:55 esp32
drwxr-xr-x 3 dbannon dbannon 4096 Aug 24 15:55 esp32s2
drwxr-xr-x 3 dbannon dbannon 4096 Aug 24 15:55 esp32s3
...
Are you assuming that both CIS and RISC systems are installed ? Easy to do but I have not yet ....
and /xtensa/esp32c3/ sounds a bit odd ?
On the basis that I am only missing CIS (ie esp32s3) files, I tried to build but get told -
...riscv32-esp-elf-ld: cannot find libcoexist.a: No such file or directory
So, manually copied that from esp-idf/components/esp_coex/lib/esp32c3/ and we got a lot further, however the linker fails to resolve esprv_int_enable, esprv_int_disable, esprv_int_set_priority and a few more similar named symbols. Now, have searched for those symbols without success. Seem to be related to interrupt handler, required by a number of existing libraries. Even exists in the binary the c compiler made in the hello_world demo but I cannot find the library or obj they exist in.
Otherwise, it sounds like you are making great progress, gpio, writeln etc !
Davo