bugGNU Astronomy Utilities - Bugs: bug #57899, Gnuastro on MinGW (Windows)

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #57899: Gnuastro on MinGW (Windows)

Submitter:  Mosè Giordano <giordano>
Submitted:  Wed 26 Feb 2020 01:47:06 AM UTC
   
 
Category:  Installation Severity:  3 - Normal
Item Group:  Crash Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Wed 26 Feb 2020 11:10:18 AM UTC, comment #5: 

Thanks for the nice summary Mose, I am happy to hear that the dependencies generally work!

Since there isn't any major urgency, for now we can stop working on this, but indeed, we'll keep the bug open. I also changed the title/summary of the bug to be more clear in the whole bug list.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Wed 26 Feb 2020 10:50:45 AM UTC, comment #4: 

So far I've been able to cross-compile Gnuastro for the following platforms without issues (apart from i686-linux-musl, but that was a known issue with the toolchain I'm using):

  • i686-linux-gnu
  • x86_64-linux-gnu
  • aarch64-linux-gnu
  • arm-linux-gnueabihf
  • powerpc64le-linux-gnu
  • i686-linux-musl
  • x86_64-linux-musl
  • aarch64-linux-musl
  • arm-linux-musleabihf
  • x86_64-apple-darwin14
  • x86_64-unknown-freebsd11.1


If you're curious, this is the tool I'm using to cross-compile: https://binarybuilder.org/

> Generally, are the Gnuastro dependencies install-able on Windows (on MinGW?). If they are, it is worth considering, by a professional Windows user.


I'm using the following dependencies (am I missing something?):

  • CFITSIO,
  • GSL,
  • JpegTurbo,
  • Libtiff,
  • LibGit2,
  • WCSLIB.


All of them can be compiled for Windows with MinGW.  CFITSIO and WCSLIB require some special treatment because of names clashing.  `wcsset` is not the only function clashing: CFITSIO uses a macro called `TBYTE`, which is also a macro in MinGW.  BTW, also Gnuastro uses `TBYTE`.

I think I'll give up building Gnuastro for Windows for the time being.  We can keep this issue open in case you want to reconsider support for Windows.  I'd be happy to test compilation with MinGW, if you need to

Mosè Giordano <giordano>
Group Member
Wed 26 Feb 2020 10:32:34 AM UTC, comment #3: 

Thanks for bringing this up Mose. I don't use Windows myself and haven't heard of anyone trying to install Gnuastro on it either! I think I read that the GNU Portability Library (which Gnuastro heavily relies on) also doesn't support Windows.

I must say that I don't use macOS either, but there are many people using macOS, so we have invested the time and energy to make Gnuastro portable there too.

Generally, are the Gnuastro dependencies install-able on Windows (on MinGW?). If they are, it is worth considering, by a professional Windows user.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Wed 26 Feb 2020 02:11:57 AM UTC, comment #2: 

On a related note, are you aware of Gnuastro being compiled for Windows?  Seeing a fair share of issues -- not all of them directly coming from Gnuastro -- I'm starting to doubt that anyone ever tried it :-)

Mosè Giordano <giordano>
Group Member
Wed 26 Feb 2020 01:51:23 AM UTC, comment #1: 

Well, it doesn't have the tm_gmtoff field either

Mosè Giordano <giordano>
Group Member
Wed 26 Feb 2020 01:47:06 AM UTC, original submission:  

Ok, I promise this is a real bug in Gnuastro :-)

MinGW doesn't have tm_zone field in the tm struct, this is used in fits.c.  Note that autoconf has a macro to check this: `HAVE_STRUCT_TM_TM_ZONE`, see https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Structures.html

Mosè Giordano <giordano>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Posted a comment)
  • -email is unavailable- added by giordano (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-26 makhlaghi CategoryFits Installation
        Item GroupSource code Crash
        SummaryMinGW doesn't have tm_zone field in tm Gnuastro on MinGW (Windows)
    2020-02-26 giordano SummaryMinGW MinGW doesn't have tm_zone field in tm

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code