cancel
Showing results for 
Search instead for 
Did you mean: 

OpenSTLinux on MYiR MYD-LD25X development board and 8th programming language

jalih
Associate

Hi all,

I am trying to get 8th programming language fully working on OpenSTLinux. Currently, it almost fully works, including KMSDRM and Wayland backend suppport using SDL3 for Nuklear based GUI.

There seems to be some problem using FFI and libc. 

"libc.so.6" lib libc
libc drop
"ZZ" "getenv" func: getenv
"VZ" "chdir" func: I:_chdir
: chdir f:expand-home I:_chdir ;

I have tested that 'libc.so.6' seems to get loaded:

Stack depth: 1
 0 X: 0000ffff832e6340 3  X:3:0000ffff832e6340:7:7:0000ffff83c11b10

 But when I try to use 'chdir' word, 8th silently gets killed without displaying any error message. I have 8th fully working on STM32MP157 based board running Debian, so I am puzzled.

Any ideas?

1 REPLY 1
Christophe Guibout
ST Employee

Hello @jalih,

 

I'am not an expert, but did you try to compare the libc source code versions ?

With my current OpenSTLinux version:

root@stm32mp2:~# /lib/libc.so.6 
GNU C Library (GNU libc) stable release version 2.39.

I would check the libc version of the Debian to know which one is the most recent, and try to find a potential commit between them, which could fix the problem...

 

If the delta of code is too huge, try strace or ltrace.

 

BR,

Christophe

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.