Bug 197201 - x11/pixman: fails to build with clang 3.6.0
Summary: x11/pixman: fails to build with clang 3.6.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks: 197395
  Show dependency treegraph
 
Reported: 2015-01-30 17:24 UTC by Dmitry Marakasov
Modified: 2015-02-07 15:59 UTC (History)
1 user (show)

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


Attachments
Fix (726 bytes, patch)
2015-01-30 17:24 UTC, Dmitry Marakasov
no flags Details | Diff
Full build log (31.02 KB, text/plain)
2015-01-30 17:30 UTC, Dmitry Marakasov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov freebsd_committer freebsd_triage 2015-01-30 17:24:52 UTC
Created attachment 152380 [details]
Fix

I'm testing ports building on experimental projects/clang360-import branch (and clang 3.6 will end up in HEAD in some time), and pixman fails there:

---
pixman-mmx.c:100:20: error: invalid type 'const int8_t' (aka 'const signed char') in asm input for constraint 'K'
        : "y" (__A), "K" (__N)
                          ^~~
---

The cause of this (llvm commit [1]) is still discussed in llvm maillist ([2]) and may be considered a regression, so this bug is not to be resolved immediately, but to gather more info about this problem and to discuss it for now. However, I have a fix based on one from pkgsrc ([3]), modified to not affect systems with older clang at all, which I'd like to commit.

[1] http://llvm.org/viewvc/llvm-project?view=revision&revision=225244
[2] http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20150112/121309.html
[3] https://github.com/jsonn/pkgsrc/blob/trunk/x11/pixman/patches/patch-pixman_pixman-mmx.c
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-01-30 17:24:52 UTC
Auto-assigned to maintainer x11@FreeBSD.org
Comment 2 Dmitry Marakasov freebsd_committer freebsd_triage 2015-01-30 17:30:18 UTC
Created attachment 152384 [details]
Full build log
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-02-03 19:09:26 UTC
A commit references this bug:

Author: kwm
Date: Tue Feb  3 19:09:01 UTC 2015
New revision: 378365
URL: https://svnweb.freebsd.org/changeset/ports/378365

Log:
  Fix the build with clang 3.6.

  PR:		197201
  Submitted by:	amdmi3@

Changes:
  head/x11/pixman/files/patch-pixman_pixman-mmx.c