PATCH: Win32/64 build system types

12 views
Skip to first unread message

Grégory Vanuxem

unread,
Apr 14, 2020, 4:18:21 AM4/14/20
to fricas...@googlegroups.com
Hello here,

On Windows different configurations can be used to build an application.

I explain, MSYS2 provides a minimal Unix-like shell environment.
You can add if you want gcc, make, perl etc. via the 'pacman' package manager (it comes from Arch Linux).

You can use others compilers etc. if you want. The one in my MSYS2 configuration is actually buggy I think (MinGW by msys2 team). So sometimes I use other compilers and/or configurations.

If I let MSYS2 choose the compiler the build system type differs :
checking build system type... x86_64-pc-msys
checking host system type... x86_64-pc-msys
checking target system type... x86_64-pc-msys

If I choose myself, the default configuration in fact via the msys2 installation, the build system becomes:
checking build system type... x86_64-w64-mingw32
checking host system type... x86_64-w64-mingw32
checking target system type... x86_64-w64-mingw32

To build FriCAS on Windows we need an emulation of Windows filesystem conventions.The problem comes from the fact that when the $top-src-dir is defined only mingw is taken into account and not msys. The two need `pwd -W` to have the pwd correctly initialized.

Attached is a patch I would like to be applied. In this form or another but which takes account msys. A pain sometimes "oh, I have to modify and begin another time" :-).
__
Greg

PS : not tested '||' in the switch
PS2 : On Windows when you have a good config, you keep it... It's Windows after all.


configure.ac.patch

Waldek Hebisch

unread,
Apr 14, 2020, 9:08:59 AM4/14/20
to fricas...@googlegroups.com
I would very much prefer version using '|' in condtion (attached).
It is pain to keep various redundant pieces for years due to
fear of breaking things...

--
Waldek Hebisch
conf_ac.diff

Grégory Vanuxem

unread,
Apr 23, 2020, 3:35:21 AM4/23/20
to fricas...@googlegroups.com
Hi Waldek, *,

I totally agree.
Thanks for the hint.
__
Greg



--
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 fricas-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/20200414130854.GA21013%40math.uni.wroc.pl.
Reply all
Reply to author
Forward
0 new messages