-
Notifications
You must be signed in to change notification settings - Fork 108
DOC: pure Fortran fpm build method? #231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes, that is planned:
#123
…On Sat, Nov 7, 2020, at 4:36 PM, Michael Hirsch wrote:
Is there / will there be a way to build the pure Fortran + curl fpm
itself without needing to install Haskell first? Would this be doable
at least via a Makefile or is there generated source for fpm itself?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#231>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAFAWBJTPDSMRWAPKVGJNTSOXKXTANCNFSM4TN6GDMA>.
|
Bootstrapping fpm once with the Haskell version is currently required, but the Fortran fpm implementation should be able to bootstrap itself afterwards. We are working towards a first release and a way to provide binaries as a rolling release (#218). |
Yes, if you are ok with using an |
If I understand correctly the end goal is to have the capability to build fpm from scratch with a Fortran compiler + CMake (among other methods). This would be great. |
Yes, correct.
…On Sun, Nov 8, 2020, at 12:13 PM, Michael Hirsch wrote:
If I understand correctly the end goal is to have the capability to
build fpm from scratch with a Fortran compiler + CMake (among other
methods). This would be great.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#231 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAFAWB7CE2L4HKKTPR3OP3SO3UT3ANCNFSM4TN6GDMA>.
|
Well, since the Fortran version does not have any C dependencies at this point it will actually build as a single Fortran file.
If you run that with the bootstrap |
i changed the wget http://www.urbanjost.altervista.org/REMOVE/ffpm.f90 and just compile the single file and if it builds the theory is it should be able to bootstrap a pull of the fpm/fpm Fortran directory without having to install anything on a machine except |
@urbanjost I did a bit of testing with all my available compiler toolchains on three different machines (Manjaro, RedHat, OpenSuse). GCC works nicely for me, tested 7.5, 8.4, 9.2, 10.1 and 10.2 so far. Intel is the same, compiles with 18.0, 19.0 and 19.1, but the resulting binary might be non-functional. PGI doesn't work since NAG fails on a logical formatter in M_CLI2 (see urbanjost/M_CLI2#1), but |
I took a try at this. To make fpm build purely from CMake, I would need to add FetchContent (CMake feature) to retrieve and build toml-f and M_CLI2. The goal of this is to partially address #123 by making fpm build from nothing more than CMake and Fortran compiler, without needing bootstrap fpm. Would this be useful? |
@scivision I'm sometimes building fpm with meson myself. So I'm certainly not against adding another build system (cmake/meson/...) to this repository as it makes some tasks way easier. From #123 I suspect that a
|
Is there / will there be a way to build the pure Fortran + curl fpm itself without needing to install Haskell first? Would this be doable at least via a Makefile or is there generated source for fpm itself?
(I would like to start using fpm across my Fortran projects as it seems Fortran submodules are/will be soon supported. I couldn't use fpm until Fortran submodules are supported.)
The text was updated successfully, but these errors were encountered: