[Debian-med-packaging] Bug#971408: simde: FTBFS when dpkg-buildflags passes -ffile-prefix-map

Vagrant Cascadian vagrant at reproducible-builds.org
Sat Oct 3 17:38:03 BST 2020


On 2020-09-29, Vagrant Cascadian wrote:
> When run with DEB_BUILD_OPTIONS=reproducible=+fixfilepath, simde FTBFS:
>
>   clang: error: unknown argument: '-ffile-prefix-map=/<<PKGBUILDDIR>>=.'
>
> This is because clang 10 is the first version to support
> -ffile-prefix-map, and simde is building with the default clang version
> 9.
>
> The attached patch updates to clang-10 to fix this issue.

Though clang 11 might become the default for bullseye, in which case
this would be a needless change; I haven't tested if simde builds fine
with clang 11.


> Alternately, you could stick with the default gcc, setting in
                                                ^ clang :)
> debian/rules:
>
>   # Remove when switching to clang 10 or newer.
>   export DEB_BUILD_MAINT_OPTIONS=reproducible=-fixfilepath+fixdebugpath

Oops, that should have been:

   # Remove when switching to clang 10 or newer.
   export DEB_BUILD_MAINT_OPTIONS=reproducible=-fixfilepath,+fixdebugpath

Though from a reproducible builds perspective, building with a version
of clang that supports -ffile-prefix-map is still preferable to
disabling the feature.


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20201003/838469fb/attachment.sig>


More information about the Debian-med-packaging mailing list