bugGNU Astronomy Utilities - Bugs: bug #51501, Compiling arithmetic-binary...

 
 

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

bug #51501: Compiling arithmetic-binary library memory problems on `sh4' architecture

Submitted by:  Mohammad Akhlaghi <makhlaghi>
Submitted on:  Tue 18 Jul 2017 09:49:05 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Item Group: CrashStatus: Postponed
Privacy: PublicAssigned to: None
Open/Closed: Open

Tue 18 Jul 2017 09:49:05 PM UTC, original submission:

Following the correction of bug #51476, Gnuastro 0.3.33 now builds successfully on all Debian architectures, except for `sh4'.

Looking at the log, the problem is apparently due to the compiler's memory.

As you can see from arithmetic-binary.c, this file in particular heavily uses macros to deal with binary operations of many different types (all signed and unsigned integer types and floats). Since compiling all these types takes a lot of time, we have defined configure time options to avoid compiling all of them if the user is in a rush to build.

But for Debian (and generally for packaging as described in the book link above), we are compiling for all types. This is because the user just downloads the compiled binaries the processing can be much faster for an arbitrary type of data.

One fast solution to this problem will probably be to disable all types for the `sh4' architecture (if it is possible in Debian, we'll have to ask). But this is not an elagant solution! It is strange for me that more than 2Gb of memory are necessary to compile Gnuastro.

Alternatively, since we are now building in parallel, probably this issue is caused because `arithmetic-binary.c' is being compiled simultaneously with arithmetic-onlyint.c (which also heavily uses macros). So an alternative solution may be to disable parallel building on `sh4' systems.

But generally, the most elegant solution would be to find a way to implement the code that this problem is not caused in the first place (if its possible).

I can't work on this now, so any contribution would be welcome. Fortunately the `sh4' architecture is not a main Debian architecture (is colored gray in the build logs). So this isn't a major issue.

Mohammad Akhlaghi <makhlaghi>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by makhlaghi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1