Hello here, I have just built the Git Aldor version and rebuilt FriCAS with Aldor support. Aldor from: https://github.com/aldorlang/aldor
But I encounter difficulties to run samples given (fib.as and sieve.as).
For example, the sieve.as file (attached). With a FriCAS with Aldor built
on top of SBCL I have always this message and the sieve example from Peter
Broadbery proposed in a pull request can not be executed:
===========================
)read test
)set bre resume
)co sieve.as
Compiling FriCAS source code from file /home/greg/Tmp/sieve.as using
Aldor compiler and options
-O -Fasy -Fao -Flsp -lfricas -Mno-ALDOR_W_WillObsolete -DFriCAS -Y
$FRICAS/algebra -I $FRICAS/algebra
Use the system command )set compiler args to change these
options.
Compiling Lisp source code from file ./sieve.lsp
Issuing )library command for sieve
Reading /home/greg/Tmp/sieve.asy
)expose UnittestCount UnittestAux Unittest
UnittestCount is now explicitly exposed in frame initial
UnittestAux is now explicitly exposed in frame initial
Unittest is now explicitly exposed in frame initial
testsuite "AldorSmoke"
All user variables and function definitions have been cleared.
testcase "AldorSmoke1"
All user variables and function definitions have been cleared.
ee := 8
(2) 8
ss := sieve 22
>> System error:
The function FOAM-USER::|fiRaiseException| is undefined.
Continuing to read the file...
testEquals(8, sieve 22)
>> System error:
The function FOAM-USER::|fiRaiseException| is undefined.
Continuing to read the file...
====================================
Any ideas what is going on, and how to fix this issue? Or maybe, I should
have used the Ralf's Aldor version?
https://github.com/hemmecke/aldor
BTW, the ')compile' system command uses the environment variable
$ALDOR_COMPILER for .as files. This variable is set in the fricas script
that starts FriCAS. I was not aware of this, and I usually use a script
$HOME/.local/jlfricas which basically sets the $FRICAS environment variable
and starts 'FRICASsys' with 'rlwrap'. I had to look at source code to know
the existence of the $ALDOR_COMPILER variable. What about modifying
i-sycmd.boot to directly use the 'aldor' executable if it's in the PATH and
$ALDOR_COMPILER is not defined i.e. start FriCAS without the 'fricas'
script?
I have attached a patch in case of interest:
================================
@@ -526,9 +526,8 @@
if not beQuiet then sayKeyedMsg("S2IZ0038A", [path, asharpArgs])
- command :=
- STRCONC(getEnv('"ALDOR_COMPILER"),_
- '" ", asharpArgs, '" ", path)
+ acomp := getEnv('"ALDOR_COMPILER") or '"aldor"
+ command := STRCONC(acomp, '" ", asharpArgs, '" ", path)
rc := OBEY command
if (rc = 0) and doCompileLisp then
==================================
Regards,
__
Greg
PS: If you want to do some quick checks, Aldor X86_64 .deb file produced at
7:00 am today (aldor_1.2.0+20131001_amd64.deb):
https://drive.google.com/file/d/1JA2gVqbBMxNta44H23mSx4LnLgZ2c3pN/view?usp=sharing
You'll probably need to install openjdk-17-jdk since it's what I used to
build and produce this Aldor package.
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/CAHnU2dZfyW42JD81%2Bqk9rwRgs2MDvgECfktnWfFXnOz2OaCKug%40mail.gmail.com.
i-syscmd.boot.patch
Description: Binary data
sieve.as
Description: Binary data
test.input
Description: Binary data
