Bug 196188 - graphics/ImageMagick: On i386 bogus -march=penryn is appended behind -march=core2
Summary: graphics/ImageMagick: On i386 bogus -march=penryn is appended behind -march=c...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: i386 Any
: --- Affects Some People
Assignee: Koop Mast
Depends on:
Reported: 2014-12-22 09:21 UTC by Mikhail T.
Modified: 2016-01-17 15:33 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (kwm)


Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail T. 2014-12-22 09:21:04 UTC
I think, this is an upstream bug -- and I reported it there:


But meanwhile something needs to be done about it -- the port was miscompiled here and crashing (from SIGILL) because it tried to use the SSE-instructions, which my CPU does not have.

My workaround was to run `make configure' and then edit the generated files to remove the bogus flag from CFLAGS. But I'm not sure, what other unasked-for values are added -- it may not be just the penryn...
Comment 1 Bugzilla Automation freebsd_committer 2014-12-22 09:21:04 UTC
Auto-assigned to maintainer kwm@FreeBSD.org
Comment 2 Koop Mast freebsd_committer 2014-12-22 11:01:20 UTC
Do you have the SIMD option enabled by chance? If so can you try to disable that as a work around for now?
Comment 3 Mikhail T. 2014-12-22 15:15:37 UTC
(In reply to Koop Mast from comment #2)
> Do you have the SIMD option enabled by chance? If so can you try to disable
> that as a work around for now?

Yes, indeed. Turning this option off fixes the problem. The description of the autofoo macro impementing the --with-gcc-arch feature says:


>> The main emphasis here is on recent CPUs, on the principle that doing high-performance computing on old hardware is uncommon.

I'd recommend removing the SIMD-option from the port entirely -- FreeBSD already allows one to specify the CPUTYPE (in /etc/make.conf) and that, at least, will come with no surprises...

Comment 4 commit-hook freebsd_committer 2014-12-30 21:48:48 UTC
A commit references this bug:

Author: kwm
Date: Tue Dec 30 21:48:39 UTC 2014
New revision: 375859
URL: https://svnweb.freebsd.org/changeset/ports/375859

  Update ImageMagick to 6.9.0-2.

  Disable SIMD option, the --with-gcc-arch only takes recent cpus into account.
  And doesn't propperly check the host cpu for the flags. [1]

  PR:		196188 [1]
  Submitted by:	mi@ALDAN.algebra.com

Comment 5 Koop Mast freebsd_committer 2014-12-30 22:13:01 UTC
Keeping this open as a reminder for myself that I would like a proper SIMD option..