#1032602 calligra: FTBFS on hppa - please enable LFS

Package:
src:calligra
Source:
src:calligra
Submitter:
John David Anglin
Date:
2023-03-09 20:03:03 UTC
Severity:
normal
Tags:
#1032602#5
Date:
2023-03-09 20:01:34 UTC
From:
To:
Dear Maintainer,

The build fails here:

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_07c80/fast && gmake[2]: Entering directory '/<<PKGBUILDDIR>>/obj-hppa-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-xHX3fY'
/usr/bin/gmake  -f CMakeFiles/cmTC_07c80.dir/build.make CMakeFiles/cmTC_07c80.dir/build
gmake[3]: Entering directory '/<<PKGBUILDDIR>>/obj-hppa-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-xHX3fY'
Building CXX object CMakeFiles/cmTC_07c80.dir/src.cxx.o
/usr/bin/c++ -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_OFFT_IS_64BIT  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -Wformat -Werror=format-security -Wno-deprecated -Wno-deprecated-declarations -Wdate-time -D_FORTIFY_SOURCE=2  -std=c++17 -o CMakeFiles/cmTC_07c80.dir/src.cxx.o -c /<<PKGBUILDDIR>>/obj-hppa-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-xHX3fY/src.cxx
/<<PKGBUILDDIR>>/obj-hppa-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-xHX3fY/src.cxx:7:33: warning: left shift count >= width of type [-Wshift-count-overflow]
    7 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
      |                       ~~~~~~~~~~^~~~~
/<<PKGBUILDDIR>>/obj-hppa-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-xHX3fY/src.cxx:8:23: note: in expansion of macro ‘LARGE_OFF_T’
    8 |   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1];
      |                       ^~~~~~~~~~~
/<<PKGBUILDDIR>>/obj-hppa-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-xHX3fY/src.cxx:7:57: warning: left shift count >= width of type [-Wshift-count-overflow]
    7 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
      |                                               ~~~~~~~~~~^~~~~
/<<PKGBUILDDIR>>/obj-hppa-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-xHX3fY/src.cxx:8:23: note: in expansion of macro ‘LARGE_OFF_T’
    8 |   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1];
      |                       ^~~~~~~~~~~
/<<PKGBUILDDIR>>/obj-hppa-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-xHX3fY/src.cxx:8:89: error: size ‘-1’ of array ‘off_t_is_large’ is negative
    8 |   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1];
      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
gmake[3]: *** [CMakeFiles/cmTC_07c80.dir/build.make:78: CMakeFiles/cmTC_07c80.dir/src.cxx.o] Error 1
gmake[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-hppa-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-xHX3fY'
gmake[2]: *** [Makefile:127: cmTC_07c80/fast] Error 2
gmake[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-hppa-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-xHX3fY'


Source file was:

#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1];
  int main() { return 0; }


dh_auto_configure: error: cd obj-hppa-linux-gnu && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/hppa-linux-gnu -DCMAKE_BUILD_TYPE=Debian -DCMAKE_INSTALL_SYSCONFDIR=/etc -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DBUILD_TESTING=OFF -DBUILD_app_cstester=OFF -DBUILD_app_devtools=OFF -DCALLIGRA_SHOULD_BUILD_UNMAINTAINED=ON .. returned exit code 1
make[1]: *** [debian/rules:13: override_dh_auto_configure] Error 25

Full log is here:
https://buildd.debian.org/status/fetch.php?pkg=calligra&arch=hppa&ver=1%3A3.2.1%2Bdfsg-7&stamp=1678056816&raw=0

Build is successful if LFS is enabled, "future=+lfs" option. I had a successful
build with it:
https://buildd.debian.org/status/fetch.php?pkg=calligra&arch=hppa&ver=1%3A3.2.1%2Bdfsg-7&stamp=1678349115&raw=0

Regards,
Dave Anglin