On Thu, Jan 04, 2024 at 10:10:23PM +0800, Qian Yun wrote:
> Using the native Clozure CL binary
> https://github.com/Clozure/ccl/releases/download/v1.12.2/ccl-1.12.2-windowsx86.zip
> to build FriCAS in MSYS2/MingW64, there's an error about permission
> denied to write fasl in C:/.
> 
> That's because "trim-directory-name" called by "get-current-directory"
> called by "relative-to-absolute" called by "fricas_compile_file",
> it returns NIL, causing "fricas_compile_file" to write output
> to "/xxx.fasl" which is C:/.
> 
> The reason is that CCL on windows doesn't have feature :win32,
> it has :windows instead.
> 
> I see no reason to do such feature testing in "trim-directory-name" and
> "pad-directory-name".

Well, not having ':win32' is likely to cause trouble in other places.
Quick fix is to add ':win32' to featurs (we do similar thing on one
of BSD-s).  Or maybe update all tests for more varied features
(but I would prefer to use small feature set if possible).

Concerning 'trim-directory-name' and 'pad-directory-name': there
is system dependency here and IMO it makes sense to guard it
with feature test.  In such case 'trim-directory-name' should
have error clause in case of not satisfied feature test.

-- 
                              Waldek Hebisch

-- 
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/ZZh6PpKQSXeZcImf%40fricas.org.

Reply via email to