-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Unable to build thrift-0.9.2 on Yosemite #34194
Comments
This seems to be a known-ish issue that was allegedly fixed in 0.9.1: https://issues.apache.org/jira/browse/THRIFT-2266 |
Unless the situation has changed, you may need to patch the tr1 stuff. It has caused issues before on newer systems. There seems to be an upstream patch here, which may still work, as well as additional patches for a version back here. Check to see what's still relevant, what has been merged, etc and rebase accordingly. |
Yea, I optimistically read that comment to mean that all the patches would be unnecessary once 0.9.2 is released. I'll figure out what combination is still necessary and try to get a working PR together. Thanks. |
Ah, if only things were that cooperative, heh. No worries. Feel free to shout if it drives you too crazy. |
Interestingly enough, this seems to be limited to the tests -- So I think it's close, but still need to figure out why that test file is trying to get built despite the flag to |
If it's just the one test element, you could always kill that particular file and see what the |
When you say "kill them off for now", are you suggesting adding a step to I'll have some more time to look at this issue this weekend. |
Yeah, essentially. If something should be behaving a certain way in the configure script, but some file is blocking that, it isn't necessary a no-go just to axe that troublesome file temporarily if it solves the problem, with
If it doesn't work, It doesn't work, but if it does Homebrew isn't always anti-merging something like that until upstream have a fuller fix/grip on the recurring issue. In those situations as long as there's an upstream bug report linked above the rm it's easy enough for future updaters to monitor over time. |
Or you could try completely commenting out those troublesome lines in that file with an inreplace or a patch, and seeing if the configure process builds successfully with those lines commented out. |
Opened an issue on Thrift here: https://issues.apache.org/jira/browse/THRIFT-2827 to make sure I'm not going about this totally the wrong way. |
Got the first issue resolved and merged into master. Uncovered another issue: https://issues.apache.org/jira/browse/THRIFT-2799 that seems to be fixable by patching the Makefile.am as mentioned in the ticket. Now getting this when installing with my formula:
Which, when I drop into a shell, shows:
However I can build fine from the command line (e.g. without homebrew) and I'm a little out of my element with the interactions of clang and c++11 and boost, which seems to be the issue. Fairly sure I could hack around it by not trying to compile the tests, but I'm learning more as I dig in and feel there is probably a reasonable solution that includes building the tests. Will dig in some more tomorrow. |
Nice one 👍. After the last
And then building. |
Tried that, same error. Seems like it should build under clang (and does when I do the |
@sectioneight Do you have a working formula for installing 0.9.2 on yosemite? I'm in the same boat and was going to tackle updating it myself, but looks like you've gotten most of the way there. Do you have something you could share? |
@cambridgemike It's not fully working but it's getting there: https://github.com/sectioneight/homebrew/commits/update-thrift Basically there is a single piece that is not working well: ProcessorTest.cpp. If you run my branch with I'm pretty inexperience with clang and boost so I'm not sure the best way to fix this one... one option is to "patch" the makefiles to not try to build this file at all (since it's just a test) but the engineer in me gets sad giving up like that. Thoughts? |
Hm, the patch data didn't apply cleanly
Maybe it's fallen out of sync? |
Weird. thrift-0.9.2 should be frozen at the release... I just wiped my cache and tried again and it applied fine. Also the sha1sum is saved in the formula. Maybe I'm taking crazy pills. |
|
Huh... yeah, IDK, I guess it was me. I checked out 0.9.2 from the thrift repo and made the same changes to Makefile.am and generated a patch, it looked just like yours, but I got the same errors. Some googling indicated it has to do with line endings. shrug I removed the hunks that were failing and compiled, ignoring the errors.. Seems like it's working. So thanks! |
Fixed in #34433 |
Greetings. I'm trying to update the thrift formula to 0.9.2 (from 0.9.1) since it contains many useful changes (https://github.com/apache/thrift/blob/master/CHANGES)
I started with a
brew edit thrift
and munged the URL and SHA1 of thestable
block. I ended up adding adepends_on "bison" => :build
to the stable block as well to squash errors about bad bison versions (although that seems like it should not be necessary due to the--without-tests
exclusion...).Here are my gist logs trying to build it: https://gist.github.com/7c9a718147444505a313
It appears to error-out at tr1/functional, which seems to be a c++11 issue? I'm more of a Python/Ruby guy myself so I'm not very helpful here, but I'd like to see if I can help contribute a working 0.9.2 formula.
Any tips?
The text was updated successfully, but these errors were encountered: