The error is
.../libguile/threads.h:194:43: error: 'scm_i_current_thread' is defined with
tls model global-dynamic
194 | SCM_INTERNAL SCM_THREAD_LOCAL scm_thread *scm_i_current_thread;
| ^
.../libguile/threads.c:357:30: note: previously defined here as local-dynamic
357 | SCM_THREAD_LOCAL scm_thread *scm_i_current_thread = NULL;
Simply repeating SCM_INTERNAL in the .c fixes it...
regards
Daniel
