[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1019166: marked as done (pd-lib-builder: bogus build-flags on armel and armhf)



Your message dated Sun, 04 Sep 2022 22:48:53 +0000
with message-id <E1oUyQ9-005xvZ-Nl@fasolo.debian.org>
and subject line Bug#1019166: fixed in pd-lib-builder 0.6.0-3
has caused the Debian Bug report #1019166,
regarding pd-lib-builder: bogus build-flags on armel and armhf
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1019166: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019166
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: pd-lib-builder
Version: 0.6.0-2
Severity: important

Dear Maintainer,

pd-lib-builder adds some optimization flags, depending on which target
architecture it detects.
unfortunately there are a couple of flaws:

- armv6 is detected with 'ifeq ($(shell uname), armv6l)' which i think cannot
  work at all (instead if should call $(shell uname -m)
- this obviously fails when cross-compiling, and is not overridable
- the other check for arm ('ifeq ($(target.arch), arm)') is also too generic,
  as it will wrongly match the 'armel' architecture (presumable *also* because
  of the broken uname-check above), which does not like the '-mfloat-abi=hard'
  flag and will fail (when including pthread.h) with 
  > fatal error: gnu/stubs-hard.h: No such file or directory
- it seems that it also breaks on 'armhf', as the resulting binaries throw a
  bus-error...

the full optimization flags injected for "arm" (as found in the GNU-triplet)
are '-march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard'


probably we could use the following to narrow down the arm-architecture:
> gcc -march=native -Q --help=target|egrep "^[[:space:]]*-march="

this gives on the armdahl.debian.org:
| Debian architecture | -march     |
|---------------------|------------|
| armel               | armv5te    |
| armhf               | armv7-a+fp |
| arm64               | armv8-a    |

or simply use some combination of DEB_HOST_ARCH, `dpkg-architecture
-qDEB_HOST_ARCH` and `dpkg --print-architecture`.

-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.0-3-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pd-lib-builder depends on:
ii  puredata-dev  0.52.2+ds0-1+exp1

pd-lib-builder recommends no packages.

pd-lib-builder suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: pd-lib-builder
Source-Version: 0.6.0-3
Done: IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>

We believe that the bug you reported is fixed in the latest version of
pd-lib-builder, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1019166@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org> (supplier of updated pd-lib-builder package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 05 Sep 2022 00:29:57 +0200
Source: pd-lib-builder
Architecture: source
Version: 0.6.0-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Changed-By: IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Closes: 1019166
Changes:
 pd-lib-builder (0.6.0-3) unstable; urgency=medium
 .
   * Add patch to drop optimization flags (Closes: #1019166)
   * Add patch to honour CFLAGS via envvars
   * autopkgtest: build (and run) a trivial external w/o Debian flags
Checksums-Sha1:
 d764fb061ecec2696ef05ddbd24596eda51bb954 2255 pd-lib-builder_0.6.0-3.dsc
 f1c35871c91bbd438ef810f1fc7436d5adc80e77 5268 pd-lib-builder_0.6.0-3.debian.tar.xz
Checksums-Sha256:
 efbd58faf8912d046dcf885f56da75f68856f42413c2173d85b48c5273bb2731 2255 pd-lib-builder_0.6.0-3.dsc
 e9122c55b00ad37d2f09a4f0b7514c35205d93e8c0eaee1d06d6742ad5ff20ca 5268 pd-lib-builder_0.6.0-3.debian.tar.xz
Files:
 2dea8e97aef81e7d8e82e2e11607183d 2255 devel optional pd-lib-builder_0.6.0-3.dsc
 85ea4db4ece56b512412d1d3808af3f6 5268 devel optional pd-lib-builder_0.6.0-3.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQJKBAEBCAA0FiEEdAXnRVdICXNIABVttlAZxH96NvgFAmMVKRIWHGZvcnVtQHVt
bGFldXRlLm11ci5hdAAKCRC2UBnEf3o2+AQ0D/wLl1Y4qumTx9uNFKGWHIDU4SjE
VsyYwpJgF0gzz4yUpX7oSA9rCkYU3Nl/qe87hpgIAJhY8Cpcdf9clDJrUorRZZpn
8u+uLRctvbhxd8BL9/ApUJUkOqO6hV+hZDuFVgjisYzPVoRHQ52XS9EeV0yc3+DJ
jzbDVFC2EHCtWllkw+C2jKbeD+keeJ8F21RIUjHYazorA2UEIC5jTPHXW9BQZ8WD
oxvHAk7BO1i6NkiW8FO/kYCfThUEh4uQGAelfArJThFSB1DGUd5V7JrWlLEibBmS
nH9mX+dakthwHDMxa8q0aYffC+qR50NOXmd/dTEWMYrdnFeekihKypEz2VSC6Rxc
c/mB5nLmKzQP2kZOI8JILTSm/Qlk3qqEgAFMG9XEgxmvmJG5ze6wW5y1sXumg67b
DHsN1n9izyADa+Ppg6nXKXs1jhzg9HPYG3Kp0BIypMyNSzdwCge/bofVok32g4HZ
i1lu9P1mgIURV5AC33IWtgobepiKt2udGQ6L3dAGokbP/aYuGhRPCJeOjxocZks2
X6xir4MzSZCpWUQygXnnVbCdYapZJztd6xzX2C8y7M+I3BQPs/rnqp8RhB2Ewh4B
sxH4PWVcvAJktJnWc32GhTFubG+aeGIqN7bET8i9xD3WNSRXv803LbzJ2TkGPLcp
XyVCJOiEKQiyMtk00w==
=fKV8
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: