jsoftware / jsource

J engine source mirror
Other
657 stars 90 forks source link

Instructions for testing do not work under debian 12. #205

Open ebellani opened 1 month ago

ebellani commented 1 month ago

./bin/linux/j64/jconsole test/tsu.ijs

|file name error
|       0!:0 y
Press ENTER to inspect

|value error
|   'dbr 0 to end inspection; use y___1 to look inside top stack frame (see code.jsoftware.com/wiki/Debug/Stack#irefs)'[    dbg_z_ 513
bilam commented 1 month ago

The error message said test/tsu.ijs not found. what is your pwd? From you current directory, does ls test/tsu.ijs find anything?

ebellani commented 1 month ago

The error message said test/tsu.ijs not found. what is your pwd? From you current directory, does ls test/tsu.ijs find anything?

I'm on the project root.

ls test/tsu.ijs test/tsu.ij

bilam commented 1 month ago

But what's your project root?

ebellani commented 1 month ago

I don't follow your question. Here are my steps:

  1. git clone https://github.com/jsoftware/jsource j-lang-source
  2. cd j-lang-source
  3. cd make2/
  4. chmod +x *.sh
  5. ./clean.sh
  6. jplatform=linux j64x=j64avx2 ./build_libj.sh
  7. ./build_all.sh
  8. ./cpbin.sh
  9. cd ../
  10. ./bin/linux/j64avx2/jconsole ./test/tsu.ijs
bilam commented 1 month ago

Recap from make.txt

cd the jlibrary/bin or jlibrary/bin32 folder and run depending on the cpu architecture

avx2 / x86 / arm

./jconsole ../../test/tsu.ijs

avx512

./jconsole -lib libjavx512.so ../../test/tsu.ijs

nonavx

./jconsole -lib libj-nonavx.so ../../test/tsu.ijs

ebellani commented 1 month ago

there is no jconsole on that folder

cd jlibrary/bin/ && ls libjavx2.so profile.ijs