nfs-ganesha 4.3-8build1 fails to build on armhf

Bug #2061476 reported by Benjamin Drung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nfs-ganesha (Ubuntu)
New
Undecided
Unassigned

Bug Description

nfs-ganesha 4.3-8build1 fails to build on armhf:

```
cd /<<PKGBUILDDIR>>/src/obj-arm-linux-gnueabihf/FSAL/FSAL_GPFS && /usr/bin/cc -DHAS_DOFF -D_GNU_SOURCE=1 -Dfsalgpfs_EXPORTS -I/<<PKGBUILDDIR>>/src/obj-arm-linux-gnueabihf/include -I/<<PKGBUILDDIR>>/src/include -I/<<PKGBUILDDIR>>/src/include/os/linux -I/include -I/usr/include/ntirpc -I/usr/include/dbus-1.0 -I/usr/lib/arm-linux-gnueabihf/dbus-1.0/include -I/<<PKGBUILDDIR>>/src/FSAL/FSAL_GPFS -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/nfs-ganesha-4.3-8build1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=3 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -O2 -g -DNDEBUG -fPIC -MD -MT FSAL/FSAL_GPFS/CMakeFiles/fsalgpfs.dir/file.c.o -MF CMakeFiles/fsalgpfs.dir/file.c.o.d -o CMakeFiles/fsalgpfs.dir/file.c.o -c /<<PKGBUILDDIR>>/src/FSAL/FSAL_GPFS/file.c
In file included from /usr/include/features.h:394,
                 from /usr/include/assert.h:35,
                 from /<<PKGBUILDDIR>>/src/FSAL/FSAL_GPFS/file.c:38:
/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"
      | ^~~~~
```

This is caused by src/FSAL/FSAL_GPFS/file.c:

```
/* _FILE_OFFSET_BITS macro causes F_GETLK/SETLK/SETLKW to be defined to
 * F_GETLK64/SETLK64/SETLKW64. Currently GPFS kernel module doesn't work
 * with these 64 bit macro values through ganesha interface. Undefine it
 * here to use plain F_GETLK/SETLK/SETLKW values.
 */
#undef _FILE_OFFSET_BITS
```

Revision history for this message
Colin Watson (cjwatson) wrote :

$ remove-package -s noble -a armhf -b -m 'Broken with 64-bit time_t on armhf; see bug 2061476' nfs-ganesha nfs-ganesha-gpfs nfs-ganesha-mem nfs-ganesha-nullfs nfs-ganesha-proxy-v4 nfs-ganesha-vfs
Removing packages from noble:
        nfs-ganesha 4.3-8 in noble armhf
        nfs-ganesha-gpfs 4.3-8 in noble armhf
        nfs-ganesha-mem 4.3-8 in noble armhf
        nfs-ganesha-nullfs 4.3-8 in noble armhf
        nfs-ganesha-proxy-v4 4.3-8 in noble armhf
        nfs-ganesha-vfs 4.3-8 in noble armhf
Comment: Broken with 64-bit time_t on armhf; see bug 2061476
Remove [y|N]? y
6 packages successfully removed.

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.