[Bug 2061476] [NEW] nfs-ganesha 4.3-8build1 fails to build on armhf

Benjamin Drung 2061476 at bugs.launchpad.net
Mon Apr 15 12:57:36 UTC 2024


Public bug reported:

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
```

** Affects: nfs-ganesha (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to nfs-ganesha in Ubuntu.
https://bugs.launchpad.net/bugs/2061476

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

Status in nfs-ganesha package in Ubuntu:
  New

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
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-ganesha/+bug/2061476/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list