--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: partitionmanager: FTBFS on hppa - off_t type size
- From: John David Anglin <dave.anglin@bell.net>
- Date: Wed, 21 Oct 2020 22:39:16 +0000
- Message-id: <160331995655.23343.14463935715418327599.reportbug@mx3210>
Package: partitionmanager
Version: 4.2.0-1
Severity: normal
Dear Maintainer,
Configuration fails with following error:
/usr/bin/c++ -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -D_OFFT_IS_64BIT -o CMakeFiles/cmTC_09a8c.dir/src.cxx.o -c /<<PKGBUILDDIR>>/obj-hppa-linux-gnu/CMakeFiles/CMakeTmp/src.cxx
/<<PKGBUILDDIR>>/obj-hppa-linux-gnu/CMakeFiles/CMakeTmp/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/CMakeTmp/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/CMakeTmp/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/CMakeTmp/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/CMakeTmp/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];
By default, off_t is a signed long in glibc. This is 32 bits on 32-bit hppa.
I believe one needs to define _FILE_OFFSET_BITS=64 to ensure a 64-bit typedef
for off_t.
Regards,
Dave Anglin
-- System Information:
Debian Release: bullseye/sid
APT prefers buildd-unstable
APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)
Kernel: Linux 4.14.202+ (SMP w/4 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages partitionmanager depends on:
pn kio <none>
ii libc6 2.31-3
ii libgcc-s4 10.2.0-15
ii libkf5auth5 5.74.0-2
ii libkf5authcore5 5.74.0-2
ii libkf5codecs5 5.74.0-2
pn libkf5completion5 <none>
ii libkf5configcore5 5.74.0-2
ii libkf5configgui5 5.74.0-2
ii libkf5configwidgets5 5.74.0-2
ii libkf5coreaddons5 5.74.0-2
ii libkf5crash5 5.74.0-2
ii libkf5dbusaddons5 5.74.0-2
ii libkf5i18n5 5.74.0-2
ii libkf5iconthemes5 5.74.0-2
pn libkf5jobwidgets5 <none>
pn libkf5kiocore5 <none>
pn libkf5kiowidgets5 <none>
ii libkf5service-bin 5.74.0-2
ii libkf5service5 5.74.0-2
ii libkf5widgetsaddons5 5.74.0-3
ii libkf5xmlgui5 5.74.0-2
pn libkpmcore9 <none>
ii libqt5concurrent5 5.14.2+dfsg-6
ii libqt5core5a 5.14.2+dfsg-6
ii libqt5dbus5 5.14.2+dfsg-6
ii libqt5gui5 5.14.2+dfsg-6
ii libqt5network5 5.14.2+dfsg-6
ii libqt5widgets5 5.14.2+dfsg-6
ii libqt5xml5 5.14.2+dfsg-6
ii libstdc++6 10.2.0-15
partitionmanager recommends no packages.
Versions of packages partitionmanager suggests:
pn btrfs-progs <none>
ii dosfstools 4.1-2
pn hfsplus <none>
pn hfsutils <none>
pn jfsutils <none>
ii ntfs-3g 1:2017.3.23AR.3-3
pn reiser4progs <none>
pn reiserfsprogs <none>
ii xfsprogs 5.6.0-1+b1
--- End Message ---