Re: No Gast on MacOS in Clean3.0?

Camil Staps <[email protected]>
Newsgroups gmane.comp.lang.clean
Message-ID <[email protected]>
Hi Peter,

I don't know why Gast is not included. The problem becomes worse because
on other platforms Clean 3.0 uses Gast from SVN, which is outdated
(https://gitlab.science.ru.nl/clean-and-itasks/gast/issues/15).

I see two clean options:

1. Use Gast from git. Your students would have to run the following to
install Gast and Platform:

> curl https://ftp.cs.ru.nl/Clean/builds/macos-x64/clean-lib-platform-macos-x64-latest.tgz | tar xzv --strip-components=1 -C $CLEAN_HOME> curl
https://ftp.cs.ru.nl/Clean/builds/macos-x64/clean-lib-gast-macos-x64-latest.tgz
| tar xzv --strip-components=1 -C $CLEAN_HOME

Note that the git version has changed compared to that on SVN. You need
to change the import to Gast (with a capital) instead of gast. With that
change I can compile the solution for StdDurationTest, but other modules
may depend on other things in Gast which changed, of course.

To compile, your student needs to also add Platform to the clm
invocation: -I ../lib/Gast -I ../lib/Platform

2. Use Gast from SVN. Your students would have to run:

> svn export https://svn.cs.ru.nl/repos/gast/trunk $CLEAN_HOME/lib/gast

You'll have to workaround the above-mentioned issue with the outdated
version of Gast, but I suppose you already have a solution for that
because the same problem exists on other platforms.

If you have access to the SVN repository you could add the missing
instances before suggesting the svn export call to your students.

Good luck,
Camil

On 9/24/19 2:38 PM, Peter Achten wrote:
> Hi Clean-team,
> 
> One of my students asked the following question (StdDurationTest is a
> module I ask them to implement, it uses Gast):
> 
> ------------------
> 
> /Hello,/
> 
> /I tried to compile StdDurationTest.icl, however I run into troubles/
> 
> /make
> clm -l -no-pie -ms -I ../lib/Gast -I ../lib/ArgEnv -I ../lib/StdLib
> StdDurationTest -o StdDurationTest.o
> Error [StdDurationTest.icl,11]: gast.dcl could not be imported
> make: *** [all] Error 1
> 
> Apparently, there's no folder named 'Gast' in my clean 'lib' directory.
> What is gast and how could I use it?/
> 
> /I am using Clean 3.0 for macOS (10.14.6) therefore I can only use
> command line./
> 
> ------------------
> 
> I don't own a Mac, so I can't answer my student. However, I did notice
> that the Clean 3.0 distribution of the MacOS
> (https://ftp.cs.ru.nl/Clean/Clean30/macosx/clean3.0.zip) does not have a
> Gast folder.
> 
> How should (or shouldn't) MacOS users use Gast?
> 
> Thank you,
> Peter
> 
> 
> 
> _______________________________________________
> clean-list mailing list
> [email protected]
> https://mailman.science.ru.nl/mailman/listinfo/clean-list
>

_______________________________________________
clean-list mailing list
[email protected]
https://mailman.science.ru.nl/mailman/listinfo/clean-list
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEf0FnfPpR0q6KSsR9Spv9T2pBX4MFAl2LEgsACgkQSpv9T2pB
X4OhcA//U9vkJrk2g0lIx/hmKzZqYxKZeYa6OPtzw+4QruBg6mVsii3/tEircg2g
WyJcloXLhk/N9+U1ANVXgSo72yuXIDERIZbJKJsE7KGesud6xv6PjLiMy1YcTN3A
tb1t4tfJERRkOV9NgwgoAxyvThbs/IAl82ZRetB4yPw4T96VRvuc/2oM9t+POpWF
FQC6+1KS6peDUPLIheyGGnpV3ldZteCIYvFMMl6YsvXD3Fcnx9+WyqxZFdDN1Q/P
/8cayP27sLBG5KNdj+OG0vHaMj23SP6mYX5FzDl9SACLd9QwmExkUFBskYIpXHg8
a7Njsj2F4k7m67wcrQ3ZUUCO4UwOkVznjwtn41ik9zRWEXa3/hN8gkcvIuMDMG5j
6mH+JPLHxWCQGhQB9QLcRWc8bYpQN6LVSNYgc63onAXFyvuTEI9ojfIEU/66NES7
yfqO3tIBfxaSEOEgAH0YaUS4Q3cY9hDOxTIDKs/nOVFT/bVXPjyaFmw6Wa4gI2Mm
vshB2PUV9aSUDXKYi5rzay9CTXZUu+DQUkMh9WF7CdwWLIB/iKFuPz7Z5QCiQQF4
lRJbmputIQyDoRQpoKLjQpTv0rd6+jSNuHYtaXfC/mRFeuUy5i8OR7xlAF719xjO
EhCDajD+6TmIYmk5dyZE2qxF+ASWmWyGekiXkDmqC5g1zdfenfI=
=XchI
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.