Source: tomsfastmath
Version: 0.13.1-1
Severity: important
Tags: ftbfs
Justification: FTBFS
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: rrr-no-as-default-issue

Dear maintainer,

During a test rebuild for building packages with
`Rules-Requires-Root: no` as the default in `dpkg`,
tomsfastmath failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
libtool: link: (cd ".libs" && rm -f "libtfm.so.1" && ln -s "libtfm.so.1.0.0" "libtfm.so.1") libtool: link: (cd ".libs" && rm -f "libtfm.so" && ln -s "libtfm.so.1.0.0" "libtfm.so") libtool: link: ar cr .libs/libtfm.a ./src/addsub/fp_add.o ./src/addsub/fp_add_d.o ./src/addsub/fp_addmod.o ./src/addsub/fp_cmp.o ./src/addsub/fp_cmp_d.o ./src/addsub/fp_cmp_mag.o ./src/addsub/fp_sub.o ./src/addsub/fp_sub_d.o ./src/addsub/fp_submod.o ./src/addsub/s_fp_add.o ./src/addsub/s_fp_sub.o ./src/bin/fp_radix_size.o ./src/bin/fp_read_radix.o ./src/bin/fp_read_signed_bin.o ./src/bin/fp_read_unsigned_bin.o ./src/bin/fp_reverse.o ./src/bin/fp_s_rmap.o ./src/bin/fp_signed_bin_size.o ./src/bin/fp_to_signed_bin.o ./src/bin/fp_to_unsigned_bin.o ./src/bin/fp_toradix.o ./src/bin/fp_toradix_n.o ./src/bin/fp_unsigned_bin_size.o ./src/bit/fp_cnt_lsb.o ./src/bit/fp_count_bits.o ./src/bit/fp_div_2.o ./src/bit/fp_div_2d.o ./src/bit/fp_lshd.o ./src/bit/fp_mod_2d.o ./src/bit/fp_rshd.o ./src/divide/fp_div.o ./src/divide/fp_div_d.o ./src/divide/fp_mod.o ./src/divide/fp_mod_d.o ./src/exptmod/fp_2expt.o ./src/exptmod/fp_exptmod.o ./src/misc/fp_ident.o ./src/misc/fp_rand.o ./src/misc/fp_set.o ./src/mont/fp_montgomery_calc_normalization.o ./src/mont/fp_montgomery_reduce.o ./src/mont/fp_montgomery_setup.o ./src/mul/fp_mul.o ./src/mul/fp_mul_2.o ./src/mul/fp_mul_2d.o ./src/mul/fp_mul_comba.o ./src/mul/fp_mul_comba_12.o ./src/mul/fp_mul_comba_17.o ./src/mul/fp_mul_comba_20.o ./src/mul/fp_mul_comba_24.o ./src/mul/fp_mul_comba_28.o ./src/mul/fp_mul_comba_3.o ./src/mul/fp_mul_comba_32.o ./src/mul/fp_mul_comba_4.o ./src/mul/fp_mul_comba_48.o ./src/mul/fp_mul_comba_6.o ./src/mul/fp_mul_comba_64.o ./src/mul/fp_mul_comba_7.o ./src/mul/fp_mul_comba_8.o ./src/mul/fp_mul_comba_9.o ./src/mul/fp_mul_comba_small_set.o ./src/mul/fp_mul_d.o ./src/mul/fp_mulmod.o ./src/numtheory/fp_gcd.o ./src/numtheory/fp_invmod.o ./src/numtheory/fp_isprime.o ./src/numtheory/fp_isprime_ex.o ./src/numtheory/fp_lcm.o ./src/numtheory/fp_prime_miller_rabin.o ./src/numtheory/fp_prime_random_ex.o ./src/sqr/fp_sqr.o ./src/sqr/fp_sqr_comba.o ./src/sqr/fp_sqr_comba_12.o ./src/sqr/fp_sqr_comba_17.o ./src/sqr/fp_sqr_comba_20.o ./src/sqr/fp_sqr_comba_24.o ./src/sqr/fp_sqr_comba_28.o ./src/sqr/fp_sqr_comba_3.o ./src/sqr/fp_sqr_comba_32.o ./src/sqr/fp_sqr_comba_4.o ./src/sqr/fp_sqr_comba_48.o ./src/sqr/fp_sqr_comba_6.o ./src/sqr/fp_sqr_comba_64.o ./src/sqr/fp_sqr_comba_7.o ./src/sqr/fp_sqr_comba_8.o ./src/sqr/fp_sqr_comba_9.o ./src/sqr/fp_sqr_comba_generic.o ./src/sqr/fp_sqr_comba_small_set.o ./src/sqr/fp_sqrmod.o
libtool: link: ranlib .libs/libtfm.a
libtool: link: ( cd ".libs" && rm -f "libtfm.la" && ln -s "../libtfm.la" "libtfm.la" )
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make -f makefile.shared stest
make[2]: Entering directory '/<<PKGBUILDDIR>>'
libtool --mode=compile --tag=CC cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -W -Wshadow -Isrc/headers -O3 -funroll-all-loops -fomit-frame-pointer -Wl,-z,relro -Wl,-z,now -o demo/stest.o -c demo/stest.c libtool: compile: cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -W -Wshadow -Isrc/headers -O3 -funroll-all-loops -fomit-frame-pointer -Wl,-z,relro -Wl,-z,now -c demo/stest.c -fPIC -DPIC -o demo/.libs/stest.o libtool: compile: cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -W -Wshadow -Isrc/headers -O3 -funroll-all-loops -fomit-frame-pointer -Wl,-z,relro -Wl,-z,now -c demo/stest.c -o demo/stest.o >/dev/null 2>&1 libtool --mode=link --tag=CC cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -W -Wshadow -Isrc/headers -O3 -funroll-all-loops -fomit-frame-pointer -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -o stest demo/stest.o libtfm.la libtool: link: cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -W -Wshadow -Isrc/headers -O3 -funroll-all-loops -fomit-frame-pointer -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/stest demo/stest.o ./.libs/libtfm.so
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
./stest
TFM Ident string:
TomsFastMath v0.13.1

Sizeofs
        fp_digit = 8
        fp_word  = 16

FP_MAX_SIZE = 8704

Defines:  FP_64BIT

mul passed
mul passed
mul passed
sqr passed
sqr passed
sqr passed
mont passed
mont passed
mont passed
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_testroot -O--parallel
   dh_prep -O--parallel
   debian/rules override_dh_auto_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_install -- -f makefile.shared GROUP=root USER=root LIBPATH=/usr/lib/aarch64-linux-gnu dh_auto_install: warning: Compatibility levels before 10 are deprecated (level 9 in use) make -j8 install DESTDIR=/<<PKGBUILDDIR>>/debian/tmp AM_UPDATE_INFO_DIR=no -f makefile.shared GROUP=root USER=root LIBPATH=/usr/lib/aarch64-linux-gnu
make[2]: Entering directory '/<<PKGBUILDDIR>>'
install -d -g root -o root /<<PKGBUILDDIR>>/debian/tmp/usr/lib/aarch64-linux-gnu install: cannot change owner and permissions of ‘/<<PKGBUILDDIR>>/debian/tmp/usr/lib/aarch64-linux-gnu’: Operation not permitted
make[2]: *** [makefile.shared:95: install] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_install: error: make -j8 install DESTDIR=/<<PKGBUILDDIR>>/debian/tmp AM_UPDATE_INFO_DIR=no -f makefile.shared GROUP=root USER=root LIBPATH=/usr/lib/aarch64-linux-gnu returned exit code 2
make[1]: *** [debian/rules:35: override_dh_auto_install] Error 255
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:22: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-18T17:48:12Z

-------------------------------------------------------------------------------


The above is just how the build ends and not necessarily the most
relevant part. If required, the full build log is available here:

https://people.debian.org/~nthykier/rrr-no-as-default/logs/1048380.gz

You can find common solutions at
https://people.debian.org/~nthykier/rrr-no-as-default/docs/solutions.md

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

If this package is listed in
https://people.debian.org/~nthykier/rrr-no-as-default/docs/static-ownership.list,
then please just set `Rules-Requires-Root: binary-targets` to the source
stanza of `debian/control` as a fix to this bug.

If this package is listed in
https://people.debian.org/~nthykier/rrr-no-as-default/docs/maybe-misbuilds.list,
then the package was deemed at risk for misbuilding (having wrong
ownership) but had a FTBFS problem we tested it. Please test whether the
package works with `Rules-Requires-Root: no` validating that the
resulting deb has the correct ownership for all paths in the deb.

The goal is to have the default changed in `dpkg` either in `Trixie` or
`Forky`, depending on progress and feasibility with the release schedule
for Trixie.

For more information on this bug filing, please see:
https://lists.debian.org/debian-dpkg/2024/11/msg00016.html

Thanks,


PS: The builds were performed in mid-November. If you fixed the problem
between between then and this bug being filed, then please just close
the bug with the version it was fixed in.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to