• Bug#265193: incorrect optimizations on alpha, possibly others cause SIG

    From Steve Langasek@1:229/2 to All on Thu Aug 12 07:10:08 2004
    From: [email protected]

    This is a multi-part MIME message sent by reportbug.

    Package: fftw3
    Version: 3.0.1-9
    Severity: grave
    Tags: patch

    The fftw3 configure script sets -mcpu settings based on the type of host
    system it's being built on. This is inappropriate for Debian packages,
    as it results in binaries that may not run on all processors of the architecture in question.

    Alpha is one of these architectures, and in fact the fftw3 package
    currently in the archive was built on an ev67 alpha (lully.debian.org)
    -- both my alpha and the backup build daemon for Debian (escher) are
    ev56 machines, which means that in addition to making fftw3 completely unusable, it causes FTBFS errors for any octave-related packages.

    The attached patch will force subarch-specific optimization *off* for
    all architectures that aren't also special-cased in the rules.

    Thanks,
    --
    Steve Langasek
    postmodern programmer

    -- System Information:
    Debian Release: 3.1
    APT prefers unstable
    APT policy: (500, 'unstable')
    Architecture: alpha
    Kernel: Linux 2.4.26-1-generic
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8

    Versions of packages fftw3 depends on:
    ii libc6.1 2.3.2.ds1-15 GNU C Library: Shared libraries an

    -- no debconf information

    diff -u fftw3-3.0.1/debian/changelog fftw3-3.0.1/debian/changelog
    --- fftw3-3.0.1/debian/changelog
    +++ fftw3-3.0.1/debian/changelog
    @@ -1,11 +1,3 @@
    -fftw3 (3.0.1-9.1) unstable; urgency=low
    -
    - * Non-maintainer upload.
    - * Ditch config.guess in favor of values from dpkg-architecture, to
    - avoid over-optimized mis-builds of the package.
    -
    - -- Steve Langasek <[email protected]> Wed, 11 Aug 2004 14:07:05 -0700
    -
    fftw3 (3.0.1-9) unstable; urgency=low

    * m68k still doesn't work properly with optimatzion turned on.
    diff -u fftw3-3.0.1/debian/rules fftw3-3.0.1/debian/rules
    --- fftw3-3.0.1/debian/rules
    +++ fftw3-3.0.1/debian/rules
    @@ -1,15 +1,6 @@
    #!/usr/bin/make -f

    ARCHITECTURE=$(shell dpkg --print-architecture)
    -export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
    -
    -ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
    - archconfflags = --build $(DEB_HOST_GNU_TYPE)
    -else
    - archconfflags = --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_