Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

pixman fails to build on 10.11 #41056

Closed
shaneburrell opened this issue Jun 24, 2015 · 16 comments
Closed

pixman fails to build on 10.11 #41056

shaneburrell opened this issue Jun 24, 2015 · 16 comments

Comments

@shaneburrell
Copy link

pixman-mmx.c:100:20: error: constraint 'K' expects an integer constant expression
: "y" (__A), "K" (__N)
^~~

This is noted elsewhere on the web as issue.

GIST LOG

https://gist.github.com/84d27d46b06d29704b25

@shaneburrell
Copy link
Author

--disable-mmx seems to get it to compile.

@jacknagel
Copy link
Contributor

Can you report it to the pixman devs (if it hasn't been already)?

@shaneburrell
Copy link
Author

I had submitted to there dev list. May want to change formula to disable mmx if clang. That seems to compile and was previously in the formula.

Sent from my iPhone

On Jun 24, 2015, at 8:51 PM, Jack Nagel notifications@github.com wrote:

Can you report it to the pixman devs (if it hasn't been already)?


Reply to this email directly or view it on GitHub.

@shaneburrell
Copy link
Author

Mail bounced back from thier list. There is no other contact info I can to submit the issue upstream. At one time the formula was disabling mmx which solves the issue. I've edited my local pixman.rb to revert that change.

@jacknagel
Copy link
Contributor

Due to a recent breaking change in clang. This nacl thread explains it nicely. https://code.google.com/p/nativeclient/issues/detail?id=4201

@shaneburrell
Copy link
Author

Actually it would appear Clang is correct and it just slipped by before and changes will have to be made in upstream code, patch, or disable mmx in the formula.

@jacknagel
Copy link
Contributor

Yes, it is both correct and a breaking change (code that compiled before no longer compiles).

@jacknagel
Copy link
Contributor

We can't take any action here until there is a trackable upstream bug report, per our policy.

@shaneburrell
Copy link
Author

For me it's fixed by adding the disable-mmx option. I tried to submit to the list shown at pixman.org but both attempts I've sent have bounced back. There are three contacts in the file in question but it appears they may not have worked on it since 2005.

@shaneburrell
Copy link
Author

I sent an email to the last person to edit the file in the pixman git repo, detailing the problem.

@shaneburrell
Copy link
Author

Got in touch with upstream and joined there mailing list (only way to submit issues). So I guess they are aware in the meantime anyone else needing this just add --disable-mmx.

@shaneburrell
Copy link
Author

It appears this issue has been an issue for some time. Should the formula just disable mmx if clang like it has in the past by default? There has been a bug submission to the upstream list and its a problem that has been identified in the past and referenced in this post from 2014.

http://lists.freedesktop.org/archives/pixman/2012-February/001769.html

@shaneburrell
Copy link
Author

#41075 Pull Request submitted to just disable mmx again.

@shaneburrell
Copy link
Author

Fix applied. Notified upstream.

@ranma42
Copy link

ranma42 commented Oct 10, 2015

I started a thread on the pixman mailing list: http://lists.freedesktop.org/archives/pixman/2015-October/004080.html

@ranma42
Copy link

ranma42 commented Oct 10, 2015

Ah, the label might be misleading: it's likely related to the Xcode version rather than to 10.11. I reproduced the problem on 10.10 using

$ clang --version
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

sdroege pushed a commit to GStreamer/cerbero that referenced this issue Dec 2, 2015
More details here : Homebrew/legacy-homebrew#41056

We don't really care about MMX, more targets will have better
alternatives anyway (SSE, ...).
bradtgmurray added a commit to pebble/homebrew-pebble-fw that referenced this issue Feb 16, 2016
Without this homebrew will just end up using the internal version of pixman that's included as a submodule, but that version doesn't like to build on OS X (see Homebrew/legacy-homebrew#41056).
@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants