nauty FTBFS on armhf

Bug #2059155 reported by Pushkar Kulkarni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nauty (Ubuntu)
New
Undecided
Unassigned

Bug Description

Nauty fails to build from source on armhf. See [1].

----------

In file included from nauty.c:73:
nauty.h:63: warning: "_FILE_OFFSET_BITS" redefined
   63 | #define _FILE_OFFSET_BITS 0
      |
<command-line>: note: this is the location of the previous definition
In file included from /usr/include/features.h:394,
                 from /usr/include/arm-linux-gnueabihf/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from nauty.h:107:
/usr/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
   26 | # error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
      | ^~~~~
In file included from nautil.c:66:
nauty.h:63: warning: "_FILE_OFFSET_BITS" redefined
   63 | #define _FILE_OFFSET_BITS 0
      |
<command-line>: note: this is the location of the previous definition
In file included from /usr/include/features.h:394,
                 from /usr/include/arm-linux-gnueabihf/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from nauty.h:107:
/usr/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
   26 | # error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
      | ^~~~~
In file included from nausparse.h:26,
                 from nausparse.c:33:
./nauty/nauty.h:63: warning: "_FILE_OFFSET_BITS" redefined
   63 | #define _FILE_OFFSET_BITS 0
      |
<command-line>: note: this is the location of the previous definition
In file included from /usr/include/features.h:394,
                 from /usr/include/arm-linux-gnueabihf/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from ./nauty/nauty.h:107:
/usr/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
   26 | # error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"

----------

[1] https://launchpadlibrarian.net/721244324/buildlog_ubuntu-noble-armhf.nauty_2.8.8+ds-2ubuntu1~ppa2_BUILDING.txt.gz

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

"_TIME_BITS=64 can be defined only when _FILE_OFFSET_BITS=64 is also defined." [1]

[1] https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

nauty.h defines _FILE_OFFSET_BITS to 0.

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

From a scan, it looks like fseek() and ftell() are the only two largefile functions used by nauty.

Revision history for this message
Doug Torrance (profzoom) wrote :

This is fixed in nauty 2.8.8+ds-5, which I just uploaded to Debian unstable.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.