On Sat, Jul 23, 2022 at 09:16:11PM +0800, Qian Yun wrote:
>
> >>ECL fails to build on macOS with git HEAD.
> >
> >Could you say more about this? Main change is that
> >FriCAS now generates extern declarations for C
> >functions that we call via FFI. That is supposed
> >to replace Sage patch (which IMO is problematic).
>
> Glad to know you are trying to fix this issue.
> I'm attaching the failure log and generated
> fricas-lisp.c.
AFAICS to trigger error it is enought to set ECL
C compiler options like:
(setf c:*user-cc-flags* "-Werror -Wimplicit-function-declaration")
With such setting I got error also on Linux. I have now
commited fix for the problem. However, IMO '-Werror' is
inapropriate for portable programs. C compilers generate
warnings for a lot of reasons, some serious (like the
implict declaration problem), some more of sort 'look
at this code, maybe you want to rewrite it'. If program
is tied to specific compiler version, then one can tune
warning options to disable unwanted ones. But that
is inpractical if code is supposed to compile with
wide range of compilers...
--
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/20220723202048.GA14186%40fricas.math.uni.wroc.pl.