Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linux Compiling
#10
(08-13-2020, 02:15 PM)Admin Wrote: Some responses:

- I agree that Code:Blocks is not an ideal solution in various ways. It has a GUI, which can be nice, but it also has some quirks. The major objective was to get away from the Lahey compiler that Bill was using and the Code::Blocks approach is at least one option. We had tried some other approaches, but we were not able to finish them. Also, if files are added/removed from the source code, you just have to adjust them in C::B. That is a quick change (most of the time consuming aspect is the setup and internal options which remain).

- On that note, a few people tried to use Makefiles, but were not successful (hence C::B is the default approach today). But if you able to come up with a Makefile, then that is exactly what we need, so thanks!

- Regaring Cean's attempt (https://www.mystran.com/forums/showthread.php?tid=38), there was a time when we removed BANDIT was removed from the code (since it needed to be touched up). Later, Bill reworked it we added it back into the source code. So it may be that it was not part of the code at all when Cean worked on it.

- In any case, we can use all the help/options we can get. So if you are successful, we can add the processes and/or adjust the source code as necessary. Ideally, we would like a non C::B option for Windows as well, but something for Linux would be great. We haven't had any developers interested on the Linux side yet, but it seems are few more are interested now. Also, we are lacking a Linux 11.0 build, so it would be good to add that for end users.

Some good news then: I think I have produced a working CMakeLists.txt from Cean's. It generates a valid Makefile that can compile MYSTRAN all the way, just a "cmake && make" and you're all set. The resulting binary works; I ran some models, results are produced as expected, and albeit I don't have my Windows machine on me right now to visually check the results, they seem to be correct.

There are lots of warnings, though; probably because this source tree wasn't originally meant to be compiled with gfortran, but this is very promising. The only thing I'm not confident in are my changes to the READ_CL subroutine's GETARG calls -- I have very little experience with Fortran --, but that was the only way that file could ever compile under gfortran, since GETARG is a compiler extension added for F77 compatibility, and takes only two arguments. Silently suppressing the STATUS value is hacky at best, and a better solution would be checking iargc() to set STATUS before even calling GETARG. Personally, I'd get rid of compat/extension calls entirely and replace them with F95-introduced alternatives in the long run.

Anyway, I'll touch up the listfile, add a proper .gitignore, put together a fork, sort my changes into a commit or two, and link a pull request here later today.

If you like what you see, we can get a Linux x86_64 automated build going on very soon!
Reply


Messages In This Thread
Linux Compiling - by O_Stodieck - 08-06-2020, 08:58 AM
RE: Linux Compiling (CMake) - by borges - 08-11-2020, 12:02 PM
RE: Linux Compiling - by drbillc - 08-11-2020, 06:41 PM
RE: Linux Compiling - by borges - 08-11-2020, 08:50 PM
RE: Linux Compiling - by drbillc - 08-12-2020, 03:35 PM
RE: Linux Compiling - by borges - 08-13-2020, 12:18 PM
RE: Linux Compiling - by Admin - 08-12-2020, 07:43 PM
RE: Linux Compiling - by Admin - 08-13-2020, 02:15 PM
RE: Linux Compiling - by borges - 08-13-2020, 03:00 PM
RE: Linux Compiling - by Admin - 08-13-2020, 05:54 PM
RE: Linux Compiling - by borges - 08-13-2020, 07:17 PM
RE: Linux Compiling - by Admin - 08-13-2020, 08:22 PM
It works! - by borges - 08-14-2020, 02:31 AM
RE: Linux Compiling - by Admin - 08-14-2020, 06:05 AM
RE: Linux Compiling - by ceanwang - 08-14-2020, 11:15 PM
RE: Linux Compiling - by borges - 08-17-2020, 01:20 PM
RE: Linux Compiling - by borges - 08-17-2020, 02:59 PM
RE: Linux Compiling - by ceanwang - 08-19-2020, 06:19 AM
Linux Compiling - by Admin - 08-06-2020, 10:40 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)