Comment 2 for bug 23789

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 12 Oct 2005 12:01:03 +0300
From: Riku Voipio <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: [FTBFS] perl fails on arm with -O2

--45Z9DzgjV8m4Oswq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: perl
Version: 5.8.7-5
Severity: serious
Justification: no longer builds from source

Perl fails to build on arm/armeb with -O2 optimization and current gcc4.
with -01, perl compiled fine and pass testsuites withoout a problem. By
using the following patch instead of the current 63_debian_ppc_opt..
patch, this (gcc) issue can be worked around.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: arm (armv4l)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages perl depends on:
ii libc6 2.3.5-6 GNU C Library: Shared libraries an
ii libdb4.2 4.2.52-19 Berkeley v4.2 Database Libraries [
ii libgdbm3 1.8.3-2 GNU dbm database routines (runtime
ii perl-base 5.8.7-3 The Pathologically Eclectic Rubbis
ii perl-modules 5.8.7-5 Core Perl modules

Versions of packages perl recommends:
pn perl-doc <none> (no description available)

-- no debconf information

--45Z9DzgjV8m4Oswq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=63_debian_arm_optim

Don't need to downgrade optimisation on ppc with gcc 4.0

diff -Naur --exclude=debian perl-5.8.7.orig/hints/linux.sh perl-5.8.7/hints/linux.sh
--- perl-5.8.7.orig/hints/linux.sh 2005-04-05 06:08:31.000000000 +1000
+++ perl-5.8.7/hints/linux.sh 2005-10-11 11:00:00.000000000 +0000
@@ -90,7 +90,7 @@
 '')
     optimize='-O2'
     case "`uname -m`" in
- ppc*)
+ arm*)
             # on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy
      # with -O2 ; so downgrade to -O1.
             optimize='-O1'

--45Z9DzgjV8m4Oswq--