Bug#847397: libimager-perl FTBFS on mips/mipsel: Failed 10/66 test programs

gregor herrmann gregoa at debian.org
Fri Dec 9 00:01:01 UTC 2016


On Fri, 09 Dec 2016 01:14:23 +0200, Niko Tyni wrote:

> TL;dr: this is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78176

Oh.
 
> > > Otherwise a backtrace for a -g build from the crash would be handy:
> > >   perl Makefile.PL OPTIMIZE=-g
> It goes away without the default optimization level -O2.
> 
> On eller.debian.org, mipsel chroot, with OPTIMIZE="-g -O2":
[..]

I think a want to book a workshop "gdb for harmless perl packagers"
:)
 
> Unfortunately gcc doesn't seem to have a targeted option to disable this
> optimization. Building with -O0 on mips and mipsel is probably the best
> workaround we have (-O1 isn't enough.)

I now cam up with the following change to d/rules:

+# #847397
+DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
+NOOPT = mips mipsel amd64
+ifneq (,$(filter $(DEB_HOST_ARCH), $(NOOPT)))
+export DEB_CFLAGS_MAINT_STRIP:=-O2
+export DEB_CFLAGS_MAINT_APPEND:=-O0
+endif

(committed and pushed). Does this make sense (if I remove the
debugging amd64 again, or course)?


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at/ - Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Bessie Tucker: Fryin' pan skillet blues
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20161209/9f7881a1/attachment-0001.sig>


More information about the pkg-perl-maintainers mailing list