From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#24290: ImageMagick optimized for the host processor type on x86_64 and i686 Date: Mon, 22 Aug 2016 22:00:20 -0400 Message-ID: <20160823020020.GA961@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bc11Z-0007bK-7c for bug-guix@gnu.org; Mon, 22 Aug 2016 22:01:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bc11U-0008Ow-Ih for bug-guix@gnu.org; Mon, 22 Aug 2016 22:01:09 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bc11S-0008Nd-A3 for bug-guix@gnu.org; Mon, 22 Aug 2016 22:01:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bc11S-0004Qe-2d for bug-guix@gnu.org; Mon, 22 Aug 2016 22:01:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bc113-0007Jk-Tf for bug-guix@gnu.org; Mon, 22 Aug 2016 22:00:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bc10z-0008Ep-E8 for bug-guix@gnu.org; Mon, 22 Aug 2016 22:00:37 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:41285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bc10w-0008BD-JC for bug-guix@gnu.org; Mon, 22 Aug 2016 22:00:33 -0400 Received: from localhost (c-73-188-17-148.hsd1.pa.comcast.net [73.188.17.148]) by mail.messagingengine.com (Postfix) with ESMTPA id 57B9FCCE78 for ; Mon, 22 Aug 2016 22:00:21 -0400 (EDT) Content-Disposition: inline List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 24290@debbugs.gnu.org When building ImageMagick on i686 and x86_64, the '-mtune' GCC option [0] is automatically set to optimize the output for the host processor [1]. My understand of the GCC documentation is that the binaries will still run on other processor types, which is why we haven't noticed any related problems with ImageMagick so far. But, this definitely makes the ImageMagick package non-reproducible. Potential solutions: * Set '-mtune=generic' when building on x86_64 and i686. * Patch the build system to not try setting this flag at all. I'm not sure how to achieve this, but I'm sure it's possible. * Your great idea here :) These are the two files that contain the string '-mtune' in the ImageMagick source tree: http://git.imagemagick.org/repos/ImageMagick/blob/ImageMagick-6/m4/ax_gcc_archflag.m4 I recommend *not* opening this file in your browser. It's very long and might crash your browser. Try cloning the Git repo instead. hXXp://git.imagemagick.org/repos/ImageMagick/blob/ImageMagick-6/configure [0] https://gcc.gnu.org/onlinedocs/gcc-4.9.4/gcc/i386-and-x86-64-Options.html#i386-and-x86-64-Options [1] http://hydra.gnu.org/build/1441619/log#line-2626 [...] checking whether C compiler accepts -mtune=haswell... yes checking for gcc architecture flag... -mtune=haswell [...]