Public bug reported:

ffcall 2.5-2build1 (no-change rebuild) has been stuck in stonking-
proposed for ~255 days: it fails to build on ppc64el only, where the
vacall test fails. stonking release has 2.5-2 including ppc64el
binaries.

https://launchpad.net/ubuntu/+source/ffcall/2.5-2build1/+build/32794353

  ./minitests > minitests.out
  LC_ALL=C uniq -u < minitests.out > 
minitests.output.powerpc64le-unknown-linux-gnu
  test '!' -s minitests.output.powerpc64le-unknown-linux-gnu
  make[2]: *** [Makefile:310: check] Error 1    (in vacall/)

Reproduced with the ppc64el cross compiler (gcc 15.3) and qemu-user. The
mismatch is in the test that passes 32 ints, which receives the stack-
passed arguments wrongly:

  int f(32*int):(1,2,3,4,5,6,7,8,9,11,12,...)->551
  int f(32*int):(1,2,3,4,5,6,7,8,18,19,20,...)->680

It only happens with LTO: the test fails with -flto at both -O2 and -O3,
and passes without it. With the library built with LTO and the test
program without it, the test passes, so the problem is in how the LTO-
compiled test program calls the vacall entry point. Debian doesn't use
LTO, which is why it builds there.

Fix: disable LTO on ppc64el in debian/rules (DEB_BUILD_MAINT_OPTIONS +=
optimize=-lto), other architectures unchanged. With that, the avcall and
vacall test programs pass under qemu.

Too late in the cycle for lto-disabled-list, hence the source change. It
could move to lto-disabled-list next cycle.

** Affects: ffcall (Ubuntu)
     Importance: Undecided
     Assignee: Sebastien Bacher (seb128)
         Status: Fix Committed


** Tags: ftbfs ppc64el update-excuse

** Tags added: update-excuse

** Tags added: ftbfs

** Tags added: ppc64el

** Changed in: ffcall (Ubuntu)
     Assignee: (unassigned) => Sebastien Bacher (seb128)

** Changed in: ffcall (Ubuntu)
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2170755

Title:
  ffcall FTBFS on ppc64el: vacall test fails when built with LTO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ffcall/+bug/2170755/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to